This is the mail archive of the
mailing list for the Cygwin project.
Re: Calling gcc built DLL from .NET (Visual Basic)
- From: "Max Bowsher" <maxb at ukf dot net>
- To: "Thomas X. Hoban" <thoban at verbalogic dot com>,<cygwin at cygwin dot com>
- Date: Tue, 3 Jun 2003 22:33:42 +0100
- Subject: Re: Calling gcc built DLL from .NET (Visual Basic)
- References: <DLEPIMCBMLJEPMIPNAEDMEEACAAA.email@example.com>
Thomas X. Hoban wrote:
> Does anyone have a good example that shows how to create a DLL using
> cygwin/gcc and call it using VB .NET? I am specifically interested in an
> example that shows how to pass a String variable. In the example that I
> show below, I am able to call a C function. I can successfully pass a
> integer. But the string that I pass shows garbage in the called function.
> As I mentioned, I am able to pass integers successfully, but strings don't
> seem to get marshaled to (char *). I recognize that the .NET String
> implementation is different, but thought the .NET marshaling would take
> of conversion. A simple working example would be extremely helpful.
There is nothing Cygwin-specific to this. You should ask about this in a
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html