Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <006201c32a17$ce2520e0$78d96f83@pomello> From: "Max Bowsher" To: "Thomas X. Hoban" , References: Subject: Re: Calling gcc built DLL from .NET (Visual Basic) Date: Tue, 3 Jun 2003 22:33:42 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Cam-ScannerAdmin: mail-scanner-support AT ucs DOT cam DOT ac DOT uk X-Cam-AntiVirus: Not scanned X-Cam-SpamDetails: 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 long > 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 care > of conversion. A simple working example would be extremely helpful. There is nothing Cygwin-specific to this. You should ask about this in a VB.NET forum. Max. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/