Re: DLL's

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Dennis (Dennis_at_discussions.microsoft.com)
Date: 07/11/04


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


Relevant Pages

  • Re: .NET equivalent for CRectTracker
    ... > functionality. ... Commercial component: ... Herfried K. Wagner [MVP] ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Checking for A Blank String
    ... Herfried K. Wagner [MVP] wrote: ... contain an empty string: ... For all the new features and functionality ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Open Form Issue
    ... > In form A i've created Menu buttons and i would like to declare an on click ... > Dim FormB As New Form ... Herfried K. Wagner [MVP] ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: C++ Library conversion
    ... have a look at the documentation for 'Declare' and ... 'DllImportAttribute'. ... Herfried K. Wagner [MVP] ...
    (microsoft.public.dotnet.languages.vb)
  • Re: fso.deletefolder and recycle bin
    ... Herfried K. Wagner [MVP] wrote: ... all subdirectories. ... Why not use similar functionality from 'My.Computer.FileSystem.*' or ... M S Herfried K. Wagner ...
    (microsoft.public.dotnet.languages.vb)