|
But I need Point when I out of Child window... I do not need timer...
|
|
|
|
|
majco333 wrote: But I need Point when I out of Child window... I do not need timer...
What do you mean by this you needed co-ordinates ?
If its an activX,It must have some interfaces to communicate with you can use its interfaces to send required info.
|
|
|
|
|
Yes I need to store co-ordinates..
|
|
|
|
|
hi
Try SetCapture and ReleaseCapture methods. That helps to cature mouse events outside ur window.
If u can Dream... U can do it
|
|
|
|
|
Hi,
I want to limit the available BaudRates in the CommConfigDialog dialog.
Reason: The devices I will communicate with only accepts some different BaudRates. (i.e. 9600,38400)
Question: Is there some way to configure this CommConfigDialog dialog so that it doesn't show all possible BaudRates?
Pseudo code:
COMMCONFIG cfg = { sizeof( COMMCONFIG ), 0 };
cfg.dcb.BaudRate = nValue; //Current value
cfg.SetAvailabelBaudRates = CBR_9600 | CBR_38400; //<---Something like this
CommConfigDialog("COM1",this->GetSafeHwnd(), &cfg ) ){
/Frull
|
|
|
|
|
Hi all,
I'm trying to create a mailslot, that a remote computer can write to ... but the thing is I've tried the following:
<br />
LPTSTR Slot = TEXT("\\computername\\mailslot\\name");<br />
LPTSTR Slot = TEXT("\\domainname\\mailslot\\name");<br />
LPTSTR Slot = TEXT("\\\\.\\*\\mailslot\\name");<br />
Where the computername was the name of the remote computer,
And the domainname the name of the domain, but I keep getting a error code 123 or 3.
Can anyone help??
Thanx in advance
Regards
Programm3r
|
|
|
|
|
Try
LPTSTR slot = _T("\\\\.\\mailslot\\name");
Steve S
Developer for hire
|
|
|
|
|
Thanx Steve for the response,
But the thing is I don't think that statement will work over a network from server to client?
According to MSDN:
<br />
\\.\mailslot\name Retrieves a client handle to a local mailslot <br />
Regards
Programm3r
|
|
|
|
|
Ah. That's what happens when you only read half the question...
Steve S
Developer for hire
|
|
|
|
|
|
Programm3r wrote: ...I've tried the following:
Have you tried:
LPTSTR Slot = TEXT("\\\\computername\\mailslot\\name"); Programm3r wrote: ...but I keep getting a error code 123 or 3.
Error 123 is ERROR_INVALID_NAME . Error 3 is ERROR_PATH_NOT_FOUND .
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I have an application whose shortcut is placed on the desktop. Now whenever i double-click that icon, I want to get the information for that icon like Icon name, Icon target path, Icon working directory. The reason behind this is from one of the functionality the working directory changes for the application. So through Windows API or in C#/C++ I want to change the working directory for the icon which is double-clicked.
Plz guide me soon and at the earliest, if possible.
Regards.
Chilly
|
|
|
|
|
Sgg245 wrote: want to change the working directory for the icon which is double-clicked.
Plz guide me soon and at the earliest, if possible.
Regards.
IShellLink Interface
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Thanks.
But I hav already used IShellLink Interface. My problem is I am clicking an icon on the desktop and I want to know the name of icon using which I can check its existence and if found then change its 'Working Directory'.
1. Also if you can let me know how to get the path of the icon??
2. How to initialize IShellLink object with an existing desktop icon??
Regards
|
|
|
|
|
Hi,
Can anybody help me to get Icon details like its name, target path, working directory whenever it is double-clicked to run the application. This is be using Windows API or in C#.
I have already used IShellLink Interface but its been hard-coded for icon name. Suppose the user changes desktop icon name then also coding should be able to change its working directory. This can be done if I can check the existence of the icon.
|
|
|
|
|
Hi,
I would like to develop an ownerdrawn control, and it should take care of the current Windows theme chosen by the user. How do I get acces to the colors and so ?
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
|
|
|
|
|
|
That is indeed a good starting point, thanks Hans.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
|
|
|
|
|
I use kbhit for suspending program execution but it consumes processor cycles
while(!kbhit()){;}
how to do it without consuming cycles
9ine
|
|
|
|
|
#include <conio.h>
getch();
|
|
|
|
|
One way:
while(!kbhit()){Sleep(100);}
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
bad idea... it will only delay the consume time each 100 milliseconds.
in a general mean, one should avoid the use of sleep-like methods...
|
|
|
|
|
And what does getch() do, while it's waiting for a keystroke?
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
I think both use the interrupts.
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
|
|
|
|
|
keyboard interrupt...
it hibernated the process, until a key is pressed. it doesn't loop (with a sleep call to reduce to proc consume) watching if a key is pressed.
moreover, your method will fail if the key is pressed and released while being in the sleep call.
|
|
|
|