Hi, All,

I am trying to expose functions in native c++ through managed c++/CLI to C#. when I set the Target platform to "Any CPU", I got the error

Unable to load file or assembly,....

Then, I switch Target Platform to x86, I got another different error:

is not a valid win32 application.

My environment is visual studio 2008 under windows 7 64-bit. I suspect it is because some dependency is 64-bit.

But, how can find out what really causes this problem?

Any suggestion will be appreciated. Thanks in advance.