Using .LIB that is precompiled in .NET in Visual studio 6.0-Collection of common programming errors

 

Hi,

From the context, it seems that you create a static library in Visual Studio 2005 and want to use it in VC6.0.

If yes, as VC 6.0 runtime library is different from that of Visual Studio 2005, there may be some problems when using it.

If you insist using it, besides including header files, please tell the compiler to link this static library through “#pragma” directive. For example, #pragma comment (lib, “yourlibname.lib”)

For detail information of #pragma directive, you can refer to

http://msdn2.microsoft.com/en-us/library/d9x1s805(vs.71).aspx

If I misunderstood you, please feel free to let me know!

Please remember to mark the replies as answers if they help and unmark them if they provide no help.