|
Retrieves the current directory for the current process.
<br />
DWORD GetCurrentDirectory(<br />
DWORD nBufferLength,<br />
LPTSTR lpBuffer<br />
);<br />
Regards
Programm3r
|
|
|
|
|
<br />
GetModuleFileNameEx()
GetCurrentDirectory()
SetCurrentDirectory()
GetWindowsDirectory()
GetSystemDirectory()
|
|
|
|
|
Hi,
I need send mouse message (click, mouse move...) to child window. I have main dialog and this
have child dialog. Do you know whether exist some automatic message??? Or I must send these messages
to the Child by mean code??
Thanks
|
|
|
|
|
majco333 wrote: Do you know whether exist some automatic message???
What do you mean by this?
you can use SendMessage, given handle to window, for sending messages to that window.
|
|
|
|
|
Whether do not exist some message or switch whitch send messages from parent to child..
I have child window in ActiveX control
|
|
|
|
|
What do you need,exactly?and see SendMessage(...) (WM_LBUTTON*)and do you want to send one message (WM_MOUSEOVER) from main dialog to child dialog,right?
|
|
|
|
|
I need to handle mouse move when is out of child window too...
I handling mouse move in Child window but when I am with mouse out of child window, do not go me message... Do you know how do it?
|
|
|
|
|
majco333 wrote: I need to handle mouse move when is out of child window too...
Why this is required, can you explain ?
You can trck when mouse leave message, but not sure about other.
|
|
|
|
|
|
WM_MOUSELEAVE, when mouse leaves the windows client area
|
|
|
|
|
ON_MESSAGE(WM_MOUSELEAVE,OnMouseLeave) is not function me
|
|
|
|
|
majco333 wrote: ON_MESSAGE(WM_MOUSELEAVE,OnMouseLeave) is not function me
you need to use TrackMouseEvent
Refer this article[^]
You will get idea of using it.
|
|
|
|
|
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
|
|
|
|