delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/03/20:27:15

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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: <20030604002658.26174.qmail@web14604.mail.yahoo.com>
Date: Tue, 3 Jun 2003 17:26:58 -0700 (PDT)
From: Biju G C <bijumaillist AT yahoo DOT com>
Subject: Re: Calling gcc built DLL from .NET (Visual Basic)
To: cygwin AT cygwin DOT com
In-Reply-To: <006201c32a17$ce2520e0$78d96f83@pomello>
MIME-Version: 1.0

--- Max Bowsher <maxb AT ukf DOT net> wrote:
> 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.

Nice to hear somebody using VB.NET want to create DLL using cygwin/gcc 
I dont think he will get answer for this Question from a VB.NET forum
They will advice to use only MS products.

May be a gcc forum will be able to help him.
Or a MinGW forum, see http://www.mingw.org/index.shtml

To solve ur issue U can also ask, 
How to create COM/DCOM objects using gcc?

You may also look at Harold's site
http://www.msu.edu/~huntharo/portfolio/vb-for-idl/vb-for-idl.html
There is some thing like this with VC and VB

Finaly if you are able to do it with cygwin, please let us know.
We can add it as another use of cygwin

Cheers
Biju


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019