Solved

program to import C header information into VB

Posted on 2004-03-20
6
186 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
[X]
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
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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

751 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