Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Win API / February 2007



Tip: Looking for answers? Try searching our database.

How do I use a C++ lib file in VB6

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Preben - 09 Feb 2007 11:57 GMT
Hi
I have a VB6 application and now need to add communication with a USB 2.0
device. Unfortunately, I only have access to a C++ .lib file and not the
corresponding DLL. How can I use the .lib file or is it possible to convert
the lib to a dll

Preben
Mark Yudkin - 18 Feb 2007 13:24 GMT
I assume this is an object library rather than an import library (An import
library needs a DLL, as the LIB merely describes the DLL's exported
symbols). Object libraries can only be used by code compiled using the same
compiler that created the LIB in the first place, as code in an import
library is merged with your object code (you have no runtime library setup
or other ILC functionality). As a result, very little code is distributed in
object libraries, as such distribution is essentially pointless. A noted
case is the Microsoft OpenGL GLU/GLUT, for which your best bet is to create
a DLL / import library (I have done this) using MS C++.

> Hi
> I have a VB6 application and now need to add communication with a USB 2.0
[quoted text clipped - 4 lines]
>
> Preben
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.