Solved

program to import C header information into VB

Posted on 2004-03-20
6
180 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 27

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now