Hi,
If you use VC++6.0 then create a win32 dynamic link library,
in that expose a function i.e export a function x(..) then U can call that function from your exe.
If you want the source code ,send your email id I will send it across to you.
Hi,
Have a dll with only one exported which will take the exe name which you want to launch .
Inside the function use the win32 API ShellExecute(..).
Hope U know how to create a DLL.
Thanks
Hi,
Use the following code
HWND hWnd = GetActiveWindow();
GetWindowText(hWnd,string,lengthofstring);
The string will have the active window caption name check it with your window caption name.
I think this will solve your problem.
Thanks,
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.