Connecting Tech Pros Worldwide Help | Site Map

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

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 3rd, 2008, 10:05 PM
franckspike
Guest
 
Posts: n/a
Default Launching a process (exe) using the same process id as the launcher

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

  #2  
Old July 3rd, 2008, 10:35 PM
Boris
Guest
 
Posts: n/a
Default 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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.