From: mike7411 on
I noticed that, if I compile a regular C++ DLL in Visual Studio 2005
and try to load it with LoadLibrary in VC++ 6.0, the LoadLibrary call
fails.

GetLastError returns 14001, which is:

ERROR_SXS_CANT_GEN_ACTCTX
14001 This application has failed to start because the application
configuration is incorrect. Reinstalling the application may fix this
problem.

Any ideas why this happens?

Thanks.

From: Ben Voigt on

<mike7411(a)gmail.com> wrote in message
news:1168034101.719615.86240(a)42g2000cwt.googlegroups.com...
>I noticed that, if I compile a regular C++ DLL in Visual Studio 2005
> and try to load it with LoadLibrary in VC++ 6.0, the LoadLibrary call
> fails.
>
> GetLastError returns 14001, which is:
>
> ERROR_SXS_CANT_GEN_ACTCTX
> 14001 This application has failed to start because the application
> configuration is incorrect. Reinstalling the application may fix this
> problem.
>
> Any ideas why this happens?

Are you dynamically linking to the CRT library? If so, you'll need a
manifest and correct installation of the CRT in the WinSXS directory
structure.

>
> Thanks.
>