Re: linking wrong crt, regardless of compiler switch setting

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Sharon

You may be linked to a static lib that was written in VC6.

"SLC" <dotnetchic@xxxxxxxxx> wrote in message
news:1149863075.351384.304000@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I'm using VS2005 and I have a project that keeps giving me an error
System.BadImageFormatException, among other strange behavior during
debug session. This app was recently ported from VC++6.0, and is
currently compiled with /clr switch.

I'm trying to make sure that all the projects link to the same CRT, but
while investigating this, I notice that even though my project settings
indicate a link to the dll via Multi-threaded DLL (/MD), a dumpbin on
the output file shows that I'm linking to MFC80D.DLL and MSVCR80D.dll,
the debug versions. How do I change this?

TIA,
Sharon



.



Relevant Pages

  • Re: linking wrong crt, regardless of compiler switch setting
    ... SLC wrote: ... debug session. ... I'm trying to make sure that all the projects link to the same CRT, ... indicate a link to the dll via Multi-threaded DLL, ...
    (microsoft.public.vc.mfc)
  • linking wrong crt, regardless of compiler switch setting
    ... debug session. ... This app was recently ported from VC++6.0, ... I'm trying to make sure that all the projects link to the same CRT, ... indicate a link to the dll via Multi-threaded DLL, ...
    (microsoft.public.vc.mfc)
  • Re: Protection Error in DShow
    ... I'm trying to test/debug my app when the current capture device is in use. ... When I run either app as the "second app" to use the same camera I get a ... and I can't contine the debug session. ... If I don't used Visual Studio to run the apps they work fine (but obviously ...
    (microsoft.public.win32.programmer.directx.video)