|
|
Hi,
Thanks for the reply but the link did not help.
-Suraj
Suraj Gupta
|
|
|
|
|
When you run B.exe what happen for A.exe its close?
|
|
|
|
|
You can read detaily from a.exe and use WM_COPYDATA for send this data to B.exe
|
|
|
|
|
If you have handle two A.exe window, you can use GetWindowThreadProcessId .
|
|
|
|
|
Hi,
I don't have the handle of A.exe window.
-Suraj
Suraj Gupta
|
|
|
|
|
Gupta Suraj wrote: I don't have the handle of A.exe window
What do you mean by this. Is that process is windowless ?
|
|
|
|
|
No, Exe is not windowless. Exactly the problem is that "A.exe" which is parent process, it can change mean 'A'can take any name. So i have to identify the name of the application. On that basis logic of my application will be based.
Suraj Gupta
|
|
|
|
|
Gupta Suraj wrote: Exactly the problem is that "A.exe" which is parent process, it can change mean 'A'can take any name. So i have to identify the name of the application
You need some information of process, i.e. name etc. to get its PID.
See if this[^] example helps you?
|
|
|
|
|
Couldn't you just provide them as command line arguments to B, or do you not have any control over how A invokes B?
|
|
|
|
|
I don't have the control, how A invokes B.
Suraj Gupta
|
|
|
|
|
Not sure if you still need help with this... being that I am 12 hours late.
Here is how I would do it using toolhelp32
PROCESSENTRY32 pe32 = {0};<br />
pe32.dwSize = sizeof(PROCESSENTRY32);<br />
DWORD dwMYPID=GetCurrentProcessId();<br />
DWORD PID_parent =0;<br />
HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);<br />
if (Process32First(hSnapshot, &pe32))<br />
{<br />
while (Process32Next(hSnapshot, &pe32))<br />
{<br />
if(pe32.th32ProcessID==dwMYPID)<br />
{<br />
PID_parent=pe32.th32ParentProcessID;<br />
}<br />
}<br />
}
At this point PID_parent contains the PID of the parent process.
You could get the filename of the parent process in another loop by doing something like:
GetFileNameFromPath(pe32.szExeFile);
Best Regards,
-Randor (Dave)
|
|
|
|
|
Thanks for the help..It helped..
Suraj Gupta
|
|
|
|
|
hi all,
i want to give the facility for my users to undo redo multiple times
in a cricheditctrl.
when user opens some project and starts editing the files and if saves the changes then also he should be able to undo the changes untill when he opened the project.
is there any any sample code for multilevel undo redo??
and how much big this task is??
and what will be the right strategy to tackle this problem??
please help me
thanks and regards
Harshal
|
|
|
|
|
Where do i look for webbrowser control to add it to my application?
Thanks in Advance
Z.A
|
|
|
|
|
zubair_ahmed wrote: i look for webbrowser contro
See here.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
To add Microsoft Web Browser Control
If u want to place the Microsoft Web Browser control in a dialog right click and select insert activex control then select Microsoft Web Browser
or you can add it by selecting the menu Project->Add To Project->Components and controls
Rinu Raj
|
|
|
|
|
See here[^] maybe it is some helpful to you
|
|
|
|
|
is someone how can help me with an example on how to implement DoBulkFieldExchange ? (in my class CRecordset) ?
Bravoone
|
|
|
|
|
See here[^] maybe it is some helpful to you
|
|
|
|
|
I need an example on how to fetching records in bulk !?
Bravoone
|
|
|
|
|
how to fetch records in bulk ? This example not help me mutch please help me!
Bravoone
|
|
|
|
|
stop badger WhiteSky and ask a specific question instead. tell what's your problem, where you can't do things.
people here won't do the job for you ; they'll only give you hints.
|
|
|
|
|
how to fetch records in bulk ?
ok?!!!!!!!!!!!!!!!!!!!!!!!??????
Bravoone
|
|
|
|
|
know what ?
shoot yourself in the ass...
|
|
|
|