RE: Static v/s Dynamic DLL linking

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Hari (anonymous_at_discussions.microsoft.com)
Date: 02/23/04


Date: Mon, 23 Feb 2004 03:16:06 -0800

See this Link

There are different versions of c/c++ runtime libraries
u can see in ur project settings under link u can see single threaded/multithreaded etc stuff.

The exe and the dll should be compatible with the runtime used..

Also i think even if both the dll and exe linked at runtime with different crt libraries it wont work
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q94/2/48.ASP&NoWebContent=1



Relevant Pages

  • Re: LoadLibrary question
    ... implicit global state, this state will not necessarily be shared between the ... implications of such a load? ... if at all I am to load a dll into an exe which has been statically ... be also statically linked to C runtime libraries or it will be OK if the ...
    (microsoft.public.win32.programmer.kernel)
  • Re: LoadLibrary question
    ... which has been built with a /MD compiler witch into an exe which has ... the dll to be loaded be also statically linked to C runtime libraries ... even required that the two be written in the same programming language. ...
    (microsoft.public.vc.language)
  • Re: LoadLibrary question
    ... from one LIB with the other. ... the DLL in question is fixed-up and loaded into ... Also, since the DLL is not using the same threading model, it's probably ... the dll to be loaded be also statically linked to C runtime libraries ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Using VS7.0 to test an SDK made on VS8.0
    ... runtime libraries when compiling the DLL, ... If you pass CRT/MFC/STL stuff it makes the problem even worser! ... stuff into or out of the DLL! ... linker settings that I should be aware of? ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Tricky question about Microsoft C Runtime Libraries
    ... > There are numerous C runtime libraries a win32 application or DLL may be ... > Is it possible to make a DLL use the runtime library used by application it ... different crt DLL in the path since it doesnt use one! ... However if the DLLs are not linked yet you can get round the compiler ...
    (comp.programming)