|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
LibrarayHi All,
I have a c++ library that I would like to call from vb6 or vb.net. For instance, the file is called name.lib (and name.h) Is it possible to call the functions in the *.lib from vb6 or vb.net? If so, could you please point me in the right direction? Thanks. (The email address is valid and I check it.) > I have a c++ library that I would like to call from vb6 or vb.net. For In both vb6 and vb.net, you need to make Declare statements which are > instance, the file is called name.lib (and name.h) Is it possible to > call the functions in the *.lib from vb6 or vb.net? If so, could you > please point me in the right direction? analogous to C function prototypes. AMercer wrote:
> > I have a c++ library that I would like to call from vb6 or vb.net. For Thanks for the reply. So I would add the following statement:> > instance, the file is called name.lib (and name.h) Is it possible to > > call the functions in the *.lib from vb6 or vb.net? If so, could you > > please point me in the right direction? > > In both vb6 and vb.net, you need to make Declare statements which are > analogous to C function prototypes. Private Declare Sub DoSomething Lib "name.lib" Alias "DoSomething" (ByVal param As Long) Is this correct? Thanks again "Kent" <unwantedspam@mchsi.com> schrieb: Typically you'd declare the function using 'Lib "name.dll"'. How are the >> > I have a c++ library that I would like to call from vb6 or vb.net. For >> > instance, the file is called name.lib (and name.h) Is it possible to >> > call the functions in the *.lib from vb6 or vb.net? If so, could you >> > please point me in the right direction? >> >> In both vb6 and vb.net, you need to make Declare statements which are >> analogous to C function prototypes. > > Thanks for the reply. So I would add the following statement: > > Private Declare Sub DoSomething Lib "name.lib" Alias "DoSomething" > (ByVal param As Long) functions exported by the DLL? -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
Whats's the problem using a enum like this?
Is It Possible to Retrieve a List of Declared Variables? Converted a solution to VS2005 and it is complaining: Variable 'PF2' is used before it has been assi Detect Concurrent Running Instances setting datagrid column widths in code? Inheritance and function issue FileDownload with WebBrowser Control - disable the Save? Run from Server or Workstation How do I maintain paragraph numbers into a new word document |
|||||||||||||||||||||||