Solved

program to import C header information into VB

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

821 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