Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

Launching a process (exe) using the same process id as the launcher

Question posted by: franckspike (Guest) on July 3rd, 2008 10:05 PM
Launching a process (exe) using the same process id as the launcher,
how is it possible ?

I want my VCStudio to launch my executable (which is not in
developpement) and this exe will launch the exe module I am currently
developping with the correct arguments, I want to debug it not the
wrapper that launched it

VCStudio starts as debug --A which starts --B which loads -->
C.dll which I want to debug

How can B have the same process id as A ??
or
How can I make VCStudio attach to B without doing it manualy ?

thanx
Boris's Avatar
Boris
Guest
n/a Posts
July 3rd, 2008
10:35 PM
#2

Re: Launching a process (exe) using the same process id as the launcher
On Fri, 04 Jul 2008 00:02:51 +0200, franckspike <franckspike@gmail.com>
wrote:
Quote:
Launching a process (exe) using the same process id as the launcher,
how is it possible ?
>
I want my VCStudio to launch my executable (which is not in
developpement) and this exe will launch the exe module I am currently
developping with the correct arguments, I want to debug it not the
wrapper that launched it
>
VCStudio starts as debug --A which starts --B which loads -->
C.dll which I want to debug
>
How can B have the same process id as A ??
or
How can I make VCStudio attach to B without doing it manualy ?


If you put __debugbreak() into the module which you want to debug you can
attach VC++ to the newly started process rather easily (see
http://msdn.microsoft.com/en-us/library/f408b4et.aspx). And please ask in
a VC++ newsgroup next time if you have a VC++-related question.

Boris

 
Not the answer you were looking for? Post your question . . .
190,179 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors