program to import C header information into VB

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?
rls1234Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
unknown_routineConnect With a Mentor Commented:
Try transformin dlls to ATL DLLS in c++. then you do not need to declare functions
0
 
___XXX_X_XXX___Commented:
How these header files look like ?
0
 
Xentor_Commented:
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
 
unknown_routineCommented:
0
 
ArkCommented:
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
All Courses

From novice to tech pro — start learning today.