473,395 Members | 1,558 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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
Jul 3 '08 #1
1 1556
On Fri, 04 Jul 2008 00:02:51 +0200, franckspike <fr*********@gmail.com>
wrote:
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
Jul 3 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John E. Hadstate | last post by:
Please forgive the heavy cross-posting and feel free to delete inappropriate groups when you reply. I am really at a loss and hope someone has an answer for my problems. Environment: Redhat...
1
by: Drew Lettington | last post by:
I want to launch an installation (setup.exe) from a Web Server using via a URL. I currently accomplish this by passing the URL to IE: System.Diagnostics.Process ieProcess = new...
3
by: Mttc | last post by:
Have a way to have two version of EXE file with same name in one directory
4
by: ptass | last post by:
Does anyone know what causes and how to prevent getting System.IO.FileLoadException everytime you launch a new version of an .exe via a href. ? The error reads...An exception...
9
by: Josh Mayfield | last post by:
Note: There is considerable background detail here, but I do have three questions, which are clearly marked and appear right before the sample code. I have a legitimate need to launch an EXE...
0
by: Scott Zabolotzky | last post by:
I'm using the following code to launch SIGNCODE.EXE to sign a CAB provisioning file from an ASP.NET app. When I run the code the exit code comes back as -1. I have not been able to determine what...
1
by: John A. Bailo | last post by:
Excuse the novice aspects of this question, but: What techniques are available to me for launching one c# application ( console .exe) from another? For example, I know there is the Process and...
0
by: ee_stevek | last post by:
hi guys, here is my problem: i have to maintain a web vb.net application developped some times ago. The application was developped on Windows2000 SP3 with Visual Studio 2003 (7.1). and the...
0
by: vol30w60 | last post by:
Hi folks, I am having a problem using PHP to launch an application on the server. All the basics work, but I cannot launch more than 4 instances of the application. This application functions as...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.