Search:
Type: Posts; User: thumperj
Search:
Search took 0.02 seconds.
-
April 12th, 2010, 02:50 PM
Night Wulfe, our posts passed in the ether. Thanks. I just figured out the solution you suggested.
Thanks again for the help.
-
April 12th, 2010, 02:48 PM
Ok, so this has been a learning experience but I'll share how I've solved the issue in case anyone wanders into this thread. Of course, this is going to be pretty obvious to most people. It's...
-
April 12th, 2010, 01:56 PM
Thanks, Night Wulfe.
So, my original claim was incorrect - the DLL *IS* being compiled with /clr. So, given that, any suggestions how I can just pass a string down to it?
I've posted a zip...
-
April 12th, 2010, 11:17 AM
Thanks, vcdebugger. After your suggestion I've been off reading about MarshalAs. All new to me.
However, unless I've misunderstood or misplaced something, adding that to the code doesn't help...
-
April 11th, 2010, 02:16 PM
Instead of continuing the back and forth, I've created a simple example that demostrates the issue I'm trying to resolve. I've attached it to this thread.
Check out Form1.cs, line 27. Just...
-
April 10th, 2010, 03:35 PM
Yes, ok. The /clr flag is set so it apparently does support CLR.
-
April 10th, 2010, 09:56 AM
Hmmm.... I guess I'm even more confused than I thought I was. I thought I had answered all those questions. Let me try again.
The C++ is unmanaged, which is what I thought meant it was not CLI. ...
-
April 9th, 2010, 10:06 PM
Der... yeah. That would make sense:
Error The best overloaded method match for 'MyClass.MyClassClass.Foo(sbyte*)' has some invalid arguments
Error Argument '1': cannot convert from 'string' to...
-
April 9th, 2010, 08:30 PM
I'm confused. What "important bits" am I missing? I thought I had included all that was needed, else I would have included the rest. Can you be more specific?
Thanks.
-
April 9th, 2010, 05:09 PM
Don't have one.
Why, you ask? Since I have included the DLL as a reference, I didn't think I needed a C# function definition. I'm calling all kinds of other functions from the DLL with no...
-
April 9th, 2010, 02:13 PM
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...
|
Click Here to Expand Forum to Full Width
|