Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

program to import C header information into VB

Posted on 2004-03-20
6
184 Views
Last Modified: 2013-11-25
I would like to access two DLLs from Visual Basic.  There are a very large number of functions to 'declare', so I'm looking for an automated solution - a program which reads header files, and generates a VB .BAS file.  Any suggestions?
0
Comment
Question by:rls1234
6 Comments
 
LVL 6

Expert Comment

by:___XXX_X_XXX___
ID: 10642218
How these header files look like ?
0
 
LVL 5

Expert Comment

by:Xentor_
ID: 10644508
As XXX said, a sample would be nice... A piece of that file that illustrates the exact syntax for your declarations, and where they're located in the .h file.
0
 
LVL 15

Accepted Solution

by:
unknown_routine earned 500 total points
ID: 10644977
Try transformin dlls to ATL DLLS in c++. then you do not need to declare functions
0
 
LVL 15

Expert Comment

by:unknown_routine
ID: 10644984
0
 
LVL 28

Expert Comment

by:Ark
ID: 10645599
IMHO, in this case the better way is don't declare these functions at all - call them by their names.
See my sample at http://www.freevbcode.com/ShowCode.Asp?ID=1863

Regards
Ark
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question