|
Please help me by telling how can i hide the tabs in a Tab controlsg?But pages should be displayed as i'm clicking on respective tabs whenever i click on a menu item or other buttons for each tab.
Kindly help me.
|
|
|
|
|
ssingh725 wrote:
Please help me by telling how can i hide the tabs in a Tab controlsg
I sounds like you don't need to use a tab control
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
Hi everybody
If can anybody help me with checking the "Change" in the Status register of the Parallel Port, i want to use it to check a clock from an external device periodically, also i want to know if i can stop the interrupt to the Microprocessor while i'm using the parallel Port
Thank you everybody and have a nice day
|
|
|
|
|
A Knight of Islam wrote:
If can anybody help me with checking the "Change" in the Status register of the Parallel Port
I don't believe the PC architecture supports generating an interrupt on a status change for the parallel port. You'll have to use polling.
A Knight of Islam wrote:
also i want to know if i can stop the interrupt to the Microprocessor while i'm using the parallel Port
Only by writing a device driver. But be very careful. As soon as you do disable interrupts, everything in the system will grind to a halt until you reenable them.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Thank you for answering me Ryan, but i think that my question was not clear..
I want to detect a clock from another computer, i want to send data from one port to another, when data is there, one of the bits in the status register in the receiving computer will be changed by the sending computer, i want to get the data on the port when this register bit is high
I want to send a sequence of data from one computer to another through parallel port as an experiment to apply it on a wireless device (setting registers, clocking, and detect clocking to receive data)
I want to detect the change to see if there's new data or no..
About the Interrupt
I know that that system will stop doing anything while interrupt, is there some C++ codes or tools used to stop the interrup to the computer by anyother device?!
Thank you for Your Help very much Ryan
|
|
|
|
|
A Knight of Islam wrote:
one of the bits in the status register in the receiving computer will be changed by the sending computer, i want to get the data on the port when this register bit is high
So read the status register repeatedly until the bit is high, and then read the data port.
A Knight of Islam wrote:
I want to send a sequence of data from one computer to another through parallel port as an experiment to apply it on a wireless device
I'm not sure what the problem is here... Send the first byte, then the second, then the third etc... Or am I totally missing the point?
A Knight of Islam wrote:
is there some C++ codes or tools used to stop the interrup to the computer by anyother device?!
To disable a interrupt from a device, you have to disable the CPU's interrupt handling, unless you want to reprogram the interrupt controller chip - not a fun thing to do. I've done this before, but many years ago so I can't remember how and don't have access to my information. Google should help though.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Can someone help me do this. I can do it using a doubly linked list but have no clue how to do it with a singly. Thanks alot.
|
|
|
|
|
Rocreprezent wrote:
Can someone help me do this. I can do it using a doubly linked list but have no clue how to do it with a singly. Thanks alot.
what u use comfortably with doubly link list and not with sigly link list,pls explain
-----------------------------
"I Think It will Work"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
How can I see when the computer is being shutdown. Is there a message sent somewhere and tell that the windows station is being shut down?
please tell me how can I know when my computer is being shut down programatically
gabby
|
|
|
|
|
The WM_QUERYENDSESSION message is sent when the user chooses to end the session or when an application calls the ExitWindows() function. If any application returns zero, the session is not ended. The system stops sending WM_QUERYENDSESSION messages as soon as one application returns zero.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
euacela wrote:
How can I see when the computer is being shutdown. Is there a message sent somewhere and tell that the windows station is being shut down?
Very Simple system post WM_QUERYENDSESSION message
in MFC You Handle this Message
DECLARE_MESSAGE_MAP(youclassname,you classbaseclassname)<br />
ON_WM_ENDSESSION() <br />
END_MESSAGE_MAP()<br />
<br />
and it handling Function name is<br />
afx_msg BOOL OnQueryEndSession( );
euacela wrote:
please tell me how can I know when my computer is being shut down programatically
USe Application Craeted By ME
http://www.codeproject.com/useritems/ShutDownAlarm.asp
-----------------------------
"I Think It will Work"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Hello,
for a vector, overloading the operator [] is easy, you return the data of the position given to the function operator[].
i'm trying to find out how to do it with a matrix.
i found the () approach here:
<url=http: www.parashift.com="" c++-faq-lite="" operator-overloading.html#faq-13.8="">http://www.parashift.com/c++-faq-lite/operator-overloading.html#faq-13.8
to sum it up,there you overload the (), and you access the matrix by doing for example mat(3,3)=2;
I want an implementation that works with mat[3][3]=2;.
i found this <url=http: www.devhood.com="" tutorials="" tutorial_details.aspx?tutorial_id="502">http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=502 , but i don't understand how it works.
i just need an answer of how it works. i need to answer a question, not to make some code work.
i'll really appreciate your help.
thanks!
|
|
|
|
|
Matrix::operator[] returns a different type of C++ object, a row. That's what you get from mat[3] . Then the row class also overloads operator[] and returns a value from the row.
--Mike--
Personal stuff:: Ericahist | Homepage
Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt
CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ
----
"Linux is good. It can do no wrong. It is open source so must be right. It has penguins. I want to eat your brain."
-- Paul Watson, Linux Zombie
|
|
|
|
|
This article[^] which is a matrix calss overrides operator[] and a pseudo operator[][]
take a look.
If you vote me down, my score will only get lower
|
|
|
|
|
thanks roger, nice article
|
|
|
|
|
Hi there,
I want to receive shell notifications regarding copying, moving, drag & drop
operation on specific folders and files. I will use predefined callback
functions in a app where i will collect notifications (Blocking)
Should I use shell extensions, filter driver (to file system driver) or
something else. This need to be done using C++ ,Win-Api only.
Pls provide me appropriate guideline to that.
Thanks and Regards.
Abhi....
|
|
|
|
|
|
Hi Ravi,
I have tested above classes. Though they provides notification but
i need to make Shell operation blocking i.e. say If someone is copying
some files to a folder(watched by my App), My app will be notified via callback but actual operation of copying should not be completed untill app done with processing notification.
Do U think we need to install some hook or need to put a filter driver.
Thanks.
Abhi....
|
|
|
|
|
Read about shell copy hook handlers.
It is a type of COM object that can block file copies, like when explorer pops up and asks "Do you want to delete the program file?" or "Do you want to delete the read-only file?" etc. The shell hook handler can block the file copy, move, or delete operation as long as it goes through the user interface.
If a separate process uses DeleteFile() API call, then your handler will not be notified.
|
|
|
|
|
Hi all,
I want to make a control such as a button that can be resized and moved around in a VB form while the VB application is running.
something similar to designing the form but only difference is that it should be at runtime.
for example:
I have an application with a toolbar with various components in it, I select a component from it, and add it to my container, I should be able to move the component and resize it. similar functionality that the VB IDE provides.
I want to know how to create such components, does the container have to support some special features or I can implement such functionality directly into my component..
1.if my component can provide such functionality then how do I go about it.
2.if the container should support it then how do the container and the object communicate.
Thanks and Regards
Virat
|
|
|
|
|
Virat Gohil wrote:
VB
You might like to try the VB forum...
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
hi all
i've a loop in my program. since message loop must run for my program not to hang, i decided to implement it by using PostMessage. i did, but my program still hangs. i don't like to have more than one message loop in my program!
i wrote a test program. a button in a dialog posts a special custom message to the dialog. the message handler sets a static ctrl's text to an auto-incremental value and posts the same message again.
note that i don't use SendMessage, but it still stops responding. for example when i drag the dialog box's title, it doesn't move. it seems that it doesn't receive mouse events while it does receive the custom message and works.
what's the problem and how can i resolve it?
thanx
|
|
|
|
|
Even PostMessages are processed immediately as soon as the current message handler finishes, even before _PAINT and _TIMER messages (paint is delayed until the last posted message is gone)
(the main message loop is just a "get message, process message", so with a message posting itself, the application is completely busy)
The closest solution would be to replace the custom message with a SetTimer(0 ms)
Another option would be a worker thread, but you should do some derious reading on that topic before trying to get by with something you figured out.
we are here to help each other get through this thing, whatever it is Vonnegut jr.
sighist || Agile Programming | doxygen
|
|
|
|
|
|
Mike, I keep getting the feeling you've got some kind of macro thingy you run called SeeTheFAQ . It pops up a list of FAQ section titles, you pick one, and click Submit.
Software Zen: delete this;
|
|
|
|