User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » Import C Lib into Visual Basic 2008 Page [1]  
pureetofu
All American
2748 Posts
user info
edit post

I'm attempting to write a program in Visual Basic and would like to use a C .lib file (and corresponding DLL).

However, my Google searching abilities are not proving fruitful and I can't find an easy way to import the LIB file.

Any assistance or direction is GREATLY appreciated.

* Side note: This library used to be provided in a COM object but now isn't, hence why I'm so friggin' lost!

8/25/2009 4:14:34 PM

dakota_man
All American
26584 Posts
user info
edit post

http://www.flipcode.com/archives/Interfacing_Visual_Basic_And_C.shtml

?

8/25/2009 4:47:14 PM

LimpyNuts
All American
16859 Posts
user info
edit post

You can't add a reference to a C dll that doesn't have a COM interface, but you can call the methods inside it using PInvoke.

Microsoft has an article on MSDN about doing it in C# (http://msdn.microsoft.com/en-us/magazine/cc164123.aspx). Just do an interweb search.

8/25/2009 6:30:46 PM

 Message Boards » Tech Talk » Import C Lib into Visual Basic 2008 Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.