.NET Framework Bookmark and Share   
 index > MSBuild > Visual C++ 6.0 vs Visual Studio 2008 C++
 

Visual C++ 6.0 vs Visual Studio 2008 C++

Hi,
I'm facing an issue trying to compile a dll with Visual Studio 2008. Once compiled I'm getting a "R6031 - Attempt to initialize the CRT more than once" error. This error though, does not happen when I compile the same code under Visual Studio 6.0.

I've been trying to find out a solution in the forums but I couldn't find one. Tried many compiler configurations as well but all my efforts were futile.

While this error is not stopping me (as I can still work with Visual Studio 6), it will be great if anybody could bring some light to it, of course I prefer Visual Studio 2008 for working and I use it for developing C# too.

Hope you can help me.

Regards,


A. Stukov.
Aleksander Stukov
Hello,

What if you add below code?
#ifdef _MVC_VER > 1000
#progma once
#endif

I'vechecked the documentation for this error: C Run-Time Error R6031,not sure ifthis article helps:Initialization of Mixed Assemblies

Sincerely,
Wesley

Please mark the replies as answers if they help and unmark them if they provide no help. Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Wesley Yao

You can use google to search for other answers

Custom Search

More Threads

• VS 2005 Solutions Configuration Not Activated
• Store the application return value when using metadata on Exec
• Copy task. Strange bahaviour in project file
• Security Exception Problems
• Use error event handler in a file logger
• Daily or Nightly Build Process with Visual Studio
• Linked Solution. Does this work in 2005
• MSbuild not connecting to vss
• Purpose of debug and release configurations
• bootstrapper - why J# before .NET