Re: Frage bzgl. Mischen von DLL-Versionen



Hallo Jochen!


Der sollte eigentlich das Manifest automatisch einbinden, wenn Du Dein Projekt neu via Wizard erzeugt hast. Ansonsten binde folgendes in Deine stdafx.h (oder sonstwo) ein:

#if defined _M_IX86
Das hat geholfen! Danke. Wenn ich ein Projekt neu erstelle ist das Häkchen für dir Commctrl32 gesetzt. Ich hatte das Problem beim Hochziehen von VC6 Projekten. Danke :-)

Zum "Mischen" der DLLs:

In WinSxS gibt es ...CPlusPlusRuntime...\msvcrt.dll und msvcirt.dll, beide in der Version 7.0.2600 (bei mir zumindest). Die msvcrt exportiert die LIBC-Funktionalitäten. Die DLL liegt übrigens auch in \Windows\system32 herum.

Wenn diese DLL (unter W2K) im Anwendungsverzeichnis steht, wird sie benutzt. OK.

Wenn ich jetzt umsteige und ein VC8 Kompilat benutze sollte ich dann *diese* DLL auch kopieren oder die *alte* (aus VC6 Tagen) liegen lassen?

Mein EXE benutzt Datenbank-DLLs, welche die MSVCRT importieren. Könnte es zu Störungen kommen, wenn diese Datenbank-DLLs die 'alten' msvcrt erwarten, aber die neuen vorfinden?

Normalerweise würde ich sagen (und hoffen), dass die Aufrufkonventionen identisch sein sollten und die Ergebnisse passen sollten....
.



Relevant Pages

  • Re: Problem with msvcrt60 vs. msvcr71 vs. strdup/free
    ... Problem with msvcrt60 vs. msvcr71 vs. strdup/free ... > I used to build Python extension modules with mingw. ... > msvcrt, ... > the one malloc, but freea different freefrom the other DLL, ...
    (comp.lang.python)
  • Re: ctypes free memory which is allocated in C DLL
    ... After Python called this function, and done with the returned structure, ... DLL, it works, but calling the libc.free in Python doesn't work. ... each DLL could be using a different version of MSVCRT. ...
    (comp.lang.python)
  • Re: ctypes free memory which is allocated in C DLL
    ... a process may have multiple versions of the MSVCRT DLL (which ... each DLL could be using a different version of MSVCRT. ... with malloc(), that DLL must also provide a function which can be used to ...
    (comp.lang.python)
  • Re: DLLs in HLA
    ... You can use LoadLibrary and GetProcAddress to access an arbitrary DLL: ... w.LoadLibrary ("msvcrt"); ... test (eax, eax); ... w.GetProcAddress (msvcrt, "printf"); ...
    (alt.lang.asm)