|
-
April 9th, 2010, 02:13 PM
#1
C# System.String parameter passed into an unmanaged C++ DLL
Lost..... How do I call an unmanaged C++ DLL class member function from C# code? I can change any and all of these definitions. I just need to get a string from the C# world to the C++ world without pulling out the rest of my hair.
Using VS 2008
Unmanaged C++ Code in a DLL:
class MyClass
{
public:
bool Foo( char* str);
}
C# code that won't compile:
System.String test = "Hi there!";
MyClass c = new MyClass();
c.Foo( test );
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|