G
Guest
Hi,
In C++/CLI (with VS2005 beta2) I wrote a little wrapper around a native dll
(to which I headers and .lib). Wrapper was a ref class with some methods
calling native functions from native dll. It all compiled and linked fine
giving me an assembly dll. Sweet.
Then I created C# project and added a reference to my wrapper. In C# I
created intance of a wrapper class and called some of its methods. Again it
compiled with no problem. Veery sweet I thought... and I was wrong.
As soon I as ran C# project I got FileLoadException thrown. The message was:
A procedure imported by [my wrapper assembly name] could not be loaded.
So here I am. Standing suprised, not knowing what's wrong with my assembly.
Any ideas?
In C++/CLI (with VS2005 beta2) I wrote a little wrapper around a native dll
(to which I headers and .lib). Wrapper was a ref class with some methods
calling native functions from native dll. It all compiled and linked fine
giving me an assembly dll. Sweet.
Then I created C# project and added a reference to my wrapper. In C# I
created intance of a wrapper class and called some of its methods. Again it
compiled with no problem. Veery sweet I thought... and I was wrong.
As soon I as ran C# project I got FileLoadException thrown. The message was:
A procedure imported by [my wrapper assembly name] could not be loaded.
So here I am. Standing suprised, not knowing what's wrong with my assembly.
Any ideas?