Click here to Skip to main content
16,004,727 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralOverriding right click actions Pin
Lilian Chan-Grant19-Jun-01 7:53
Lilian Chan-Grant19-Jun-01 7:53 
GeneralRe: Overriding right click actions Pin
19-Jun-01 8:13
suss19-Jun-01 8:13 
GeneralRe: Overriding right click actions Pin
Lilian Chan-Grant20-Jun-01 9:08
Lilian Chan-Grant20-Jun-01 9:08 
GeneralGrand Child Pin
19-Jun-01 7:51
suss19-Jun-01 7:51 
GeneralRe: Grand Child Pin
Tomasz Sowinski19-Jun-01 9:01
Tomasz Sowinski19-Jun-01 9:01 
GeneralRedirect Serial Communication Pin
19-Jun-01 7:45
suss19-Jun-01 7:45 
GeneralRe: Redirect Serial Communication Pin
20-Jun-01 2:31
suss20-Jun-01 2:31 
GeneralGeting a proccess filename Pin
Kastellanos Nikos19-Jun-01 7:40
Kastellanos Nikos19-Jun-01 7:40 
I use spawncl(...) to run other applications.
I then get the hWnd of the new application.
(i use a hook to see when a wnd is created/activated/destroyed)

The fuction ::GetWindowText(...) works fine and i get the windows title.
But when i call ::GetWindowModuleFilename(...) i get the filename of
my application, not the new one.

If i run Task manager, i can see the filename of the new application! Hmmm | :|


What can i do? Is there another way to get the filename instead
of ::GetWindowModuleFilename(...) , or i souldn't use spawn(...)
and use CreateProcess(...) or RunWin(...) ?





- - - - - - - - - - - - - - - - - -
Memory leaks is the price we pay \0
01234567890123456789012345678901234
GeneralRe: Geting a proccess filename Pin
Tomasz Sowinski19-Jun-01 8:48
Tomasz Sowinski19-Jun-01 8:48 
GeneralRe: Geting a proccess filename Pin
Kastellanos Nikos19-Jun-01 21:35
Kastellanos Nikos19-Jun-01 21:35 
GeneralRe: Geting a proccess filename Pin
Kastellanos Nikos19-Jun-01 21:35
Kastellanos Nikos19-Jun-01 21:35 
GeneralRe: Geting a proccess filename Pin
19-Jun-01 15:02
suss19-Jun-01 15:02 
GeneralRe: Geting a proccess filename Pin
Kastellanos Nikos19-Jun-01 22:04
Kastellanos Nikos19-Jun-01 22:04 
GeneralHiding a dialog box Pin
RobJones19-Jun-01 7:14
RobJones19-Jun-01 7:14 
GeneralRe: Hiding a dialog box Pin
Tomasz Sowinski19-Jun-01 9:07
Tomasz Sowinski19-Jun-01 9:07 
GeneralRe: Hiding a dialog box Pin
RobJones19-Jun-01 9:21
RobJones19-Jun-01 9:21 
GeneralRe: Hiding a dialog box Pin
Tomasz Sowinski19-Jun-01 9:50
Tomasz Sowinski19-Jun-01 9:50 
GeneralRe: Hiding a dialog box Pin
Carlos Antollini19-Jun-01 9:13
Carlos Antollini19-Jun-01 9:13 
GeneralCTime... Pin
John Uhlenbrock19-Jun-01 6:35
John Uhlenbrock19-Jun-01 6:35 
GeneralRe: CTime... Pin
Carlos Antollini19-Jun-01 6:43
Carlos Antollini19-Jun-01 6:43 
GeneralRe: CTime... Pin
John Uhlenbrock19-Jun-01 6:45
John Uhlenbrock19-Jun-01 6:45 
GeneralRe: CTime... Pin
Carlos Antollini19-Jun-01 6:55
Carlos Antollini19-Jun-01 6:55 
GeneralRe: CTime... Pin
Chris Meech19-Jun-01 7:15
Chris Meech19-Jun-01 7:15 
GeneralRe: CTime... Pin
Vikash Dubey19-Jun-01 10:55
Vikash Dubey19-Jun-01 10:55 
GeneralRe: CTime... Pin
Vikash Dubey24-Jun-01 9:03
Vikash Dubey24-Jun-01 9:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.