Possible Duplicate:
Using C# COM in unmanaged C++ project -> First-chance exception at 0x7697C41F (KernelBase.dll)
I have a project that was upgraded from Visual Studio 2005 to Visual Studio 2010 (Project1) and outputs a dll. It is c++ with clr (it interfaces with a c# project).
I am using the dll from another VS2010 project(Project 2) (both have the same c++ target, both debug and both Win 32).
In project2, the dll interface makes use of a class that is used statically.
Here's where the problem occurs. As of now, if I execute functions declared in the .h, but defined in the cpp, I get an error. If the function is declared and defined in the .h, then there are no problems.
This worked prior to the upgrade to VS 2010. Any thoughts?