473,226 Members | 1,683 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,226 software developers and data experts.

Debug information in the .dll and .exe

I am trying to port a program from Visual Studio C++ 6 to Visual Studio 2005.
The program I am trying to port over interacts with another program call UI.
UI opens up the .exe reads in the DOS header, Windows NT header and the
debuging symbols that used to be in the .exe but are now in the .pdb. Is
there a way for me to force the information UI used to read from the .exe in
to a program compiled with Visual Studio 2005?
--
Ashish Tripathi
Jun 14 '06 #1
5 3603
"Ashish Tripathi" <As************@discussions.microsoft.com> wrote in
message news:12**********************************@microsof t.com...
I am trying to port a program from Visual Studio C++ 6 to Visual Studio
2005.
The program I am trying to port over interacts with another program call
UI.
UI opens up the .exe reads in the DOS header, Windows NT header and the
debuging symbols that used to be in the .exe but are now in the .pdb. Is
there a way for me to force the information UI used to read from the .exe
in
to a program compiled with Visual Studio 2005?


No. Embedded debug information hasn't been supported since VC6.

-cd
Jun 14 '06 #2
I realize that the Embedded debug information is no longer supported but I
was wondering if there was a way in which I can force the information back in
because then basicly I will not be able to run my program.
--
Ashish Tripathi
"Carl Daniel [VC++ MVP]" wrote:
"Ashish Tripathi" <As************@discussions.microsoft.com> wrote in
message news:12**********************************@microsof t.com...
I am trying to port a program from Visual Studio C++ 6 to Visual Studio
2005.
The program I am trying to port over interacts with another program call
UI.
UI opens up the .exe reads in the DOS header, Windows NT header and the
debuging symbols that used to be in the .exe but are now in the .pdb. Is
there a way for me to force the information UI used to read from the .exe
in
to a program compiled with Visual Studio 2005?


No. Embedded debug information hasn't been supported since VC6.

-cd

Jun 15 '06 #3
>> > The program I am trying to port over interacts with another program
> call
> UI.
> UI opens up the .exe reads in the DOS header, Windows NT header and the
> debuging symbols that used to be in the .exe but are now in the .pdb.
> Is
> there a way for me to force the information UI used to read from the
> .exe
> in
> to a program compiled with Visual Studio 2005?
No. Embedded debug information hasn't been supported since VC6.

I realize that the Embedded debug information is no longer supported but I
was wondering if there was a way in which I can force the information back
in
because then basicly I will not be able to run my program.


Maybe you could embed the pdb file as a resource?
Not that you will be able to use it for debugging or anything, but it will
be in the exe.

And in any case, i doubt that you could use it the same way as you did
before and you would have to adapt UI.exe
If you have to do that, you could just as easily adapt it to read in a
separate
pdb file that you redistribute it with your application.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Jun 15 '06 #4
I would very much like to update UI.exe to use the .pdb rather than the .exe
to parse the Code View/debug information it needs to function. Unfourtantaly
I do not have access to the source code of UI.exe. It is distributed by a
different group and interacts with our program. So I was wondering if there
was a way to compile with Microsoft Visual 2005 and retro fit it to the .exe
produced by my older version of Microsoft Visual.
--
Ashish Tripathi
"Bruno van Dooren" wrote:
> The program I am trying to port over interacts with another program
> call
> UI.
> UI opens up the .exe reads in the DOS header, Windows NT header and the
> debuging symbols that used to be in the .exe but are now in the .pdb.
> Is
> there a way for me to force the information UI used to read from the
> .exe
> in
> to a program compiled with Visual Studio 2005?

No. Embedded debug information hasn't been supported since VC6.

I realize that the Embedded debug information is no longer supported but I
was wondering if there was a way in which I can force the information back
in
because then basicly I will not be able to run my program.


Maybe you could embed the pdb file as a resource?
Not that you will be able to use it for debugging or anything, but it will
be in the exe.

And in any case, i doubt that you could use it the same way as you did
before and you would have to adapt UI.exe
If you have to do that, you could just as easily adapt it to read in a
separate
pdb file that you redistribute it with your application.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"

Jun 16 '06 #5
>I would very much like to update UI.exe to use the .pdb rather than the
.exe
to parse the Code View/debug information it needs to function.
Unfourtantaly
I do not have access to the source code of UI.exe. It is distributed by a
different group and interacts with our program. So I was wondering if
there
was a way to compile with Microsoft Visual 2005 and retro fit it to the
.exe
produced by my older version of Microsoft Visual.


No, but if you have the sources to the VC6 application, you could perhaps
write a dll in VC2005,
and call that dll from within the VC6 application.
That way, the VC6 app would act as a wrapper around the functionality in you
VC2005 dll.

I understand that this is a less than ideal solution, but I can think of no
other solution for you.
maybe you could have a meeting with that other group, and explain why it
would be a good idea to adapt UI.exe to use pdb files.
that would probably not be a short term solution, but maybe it would set
things in motion so that you can avoid these problems in the future.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Jun 16 '06 #6

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

Similar topics

12
by: nospam | last post by:
All the documentation says that leaving an ASP.NET application in debug mode has a big performance hit. I can't detect any difference between debug and non-debug modes. Am I missing something or is...
9
by: dee | last post by:
Hi I'm about to upload my site and I have switched to release version. Is that enough or do I still need to disable <compilation defaultLanguage="vb" debug="true" /> the debug="true" in the .pdb...
10
by: Brett | last post by:
For some reason when I step into the code below, it jumps out on the second iteration at the line I have marked below. Nothing else happens - no errors. Dim tcpClient As New...
8
by: ST | last post by:
Hello everyone, Can anyone help me with this error above when I debug my web app project in vstudio.net?? I can't figure it out! It was working fine for months, and now all of a sudden it's not!!...
6
by: pauldepstein | last post by:
To help me debug, I am writing a lot of information into a stream which I call debug. However, because of the large amount of time taken to print this information, I only want this printed while...
10
by: Joe Befumo | last post by:
When I tried debugging for the first time, I pop-up asked me if I wanted to set the project to enable debugging. Now I'm ready to release and can't find anyplace to set the build to 'release'. A...
2
by: newscorrespondent | last post by:
I have compiled in DEBUG mode but don't get the debug information from StackFrame class. Is there a specific setting I need to use so that information is included for a debug build. Thanks Tom
3
by: Arman Sahakyan | last post by:
Hi, I'm an MFC programmer and know little about .NET programming. Now, for some reasons, I'm developing an ASP .NET application... What I need to know is how to output into VS's Output Window...
7
by: =?Utf-8?B?SmltIFdhbHNo?= | last post by:
I'm new to working with mixed assemblies. All of my previous experience has been with VC++/MFC in native, unmanaged applications. When I create a mixed assembly in which one or more of the files...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.