Re: DLL's
From: Dennis (Dennis_at_discussions.microsoft.com)
Date: 07/11/04
- Next message: One Handed Man \( OHM - Terry Burns \): "Re: Strings.. Objects or not???"
- Previous message: Cor Ligthert: "Re: HELP! API upgrade problems"
- In reply to: Herfried K. Wagner [MVP]: "Re: DLL's"
- Next in thread: Herfried K. Wagner [MVP]: "Re: DLL's"
- Reply: Herfried K. Wagner [MVP]: "Re: DLL's"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 11 Jul 2004 05:35:01 -0700
Thanks for answer. I now understand that a long in previous VB versions is now an integer in VB.Net and already did know that strings were ANSI vs Unicode also. I'm still a bit confused as to how to pass arrays from vb.net to standard DLL's and how to declare them in both the declare statement for the standard dll function and how to delcare them in the calling function.
-- Dennis in Houston "Herfried K. Wagner [MVP]" wrote: > * =?Utf-8?B?RGVubmlz?= <Dennis@discussions.microsoft.com> scripsit: > > I am trying to call an unmanaged function from vb.net. I have declared the DLL as follows: > > > > Private Declare Function uncompress Lib "zlib.dll" (ByRef dest As Byte(), ByVal destLen As Long, ByRef src As Byte(), ByVal srcLen As Long) As Long > > Your declare is wrong: > > <URL:http://groups.google.de/groups?selm=u3sUJ8QVCHA.2336%40tkmsftngp09> > > BTW: If you are looking for a managed ZIP solution: > > <URL:http://www.icsharpcode.net/OpenSource/SharpZipLib/> > > The VB.NET Resource Kit contains zipping functionality too: > > <URL:http://msdn.microsoft.com/vbasic/vbrkit/> > > It contains ComponentOne Zip for .NET: > > <URL:http://www.componentone.com/products.aspx?ProductCode=1&ProductID=26> > > Using J#'s zip functionality: > > <URL:http://msdn.microsoft.com/msdnmag/issues/03/06/zipcompression/print.asp> > > -- > Herfried K. Wagner [MVP] > <URL:http://dotnet.mvps.org/> >
- Next message: One Handed Man \( OHM - Terry Burns \): "Re: Strings.. Objects or not???"
- Previous message: Cor Ligthert: "Re: HELP! API upgrade problems"
- In reply to: Herfried K. Wagner [MVP]: "Re: DLL's"
- Next in thread: Herfried K. Wagner [MVP]: "Re: DLL's"
- Reply: Herfried K. Wagner [MVP]: "Re: DLL's"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|