Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / October 2004

Tip: Looking for answers? Try searching our database.

VC++ project file generation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sparc - 20 Oct 2004 19:13 GMT
Hi,
I have a software with the source code for windows. It can't be compiled in
vc++ easily. Is it possible to set the break points in the source code using
vc++ or atleast create the project file to browse the source.
William DePalo [MVP VC++] - 20 Oct 2004 20:15 GMT
> I have a software with the source code for windows. It can't be compiled
> in
> vc++ easily. Is it possible to set the break points in the source code
> using
> vc++ or atleast create the project file to browse the source.

To be honest I don't understand your question.

However, if you want to generate a breakpoint at runtime then insert a call
to DebugBreak() in your source. If your application has not installed an
exception handler then the default exception handler will try to make use of
a Just-In-Time (JIT) debugger. The JIT debugger is specified in the registry
key

   HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\Current Version\AeDebug

VC++'s installation sets this key. You may need to set it by hand if
DebugBreak() does not work because your IDE does not set the key.

If the application you are trying to debug has set up an exception handler
it may try to discard the debug signal. In that case, you'd need to invoke
the default exception handling mechanism:

__try
{
 DebugBreak();
}

__except( UnhandledExceptionFilter( GetExceptionInformation() ) )
{
}

Regards,
Will

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.