Question about VB calling API with header files(.H files) 
Author Message
 Question about VB calling API with header files(.H files)
Hi all,
we are doing a call center project with some devices with API functions
and header files(.h files) supplied by a company.But I use VB as our
development tool, I wonder how I can include the header files
,especially constants defined in header files, in my VB source code?
Thanks in advance,
Xia,
05/20/1999


Mon, 05 Nov 2001 03:00:00 GMT
 Question about VB calling API with header files(.H files)

Xia,
Unless the calls are to an ActiveX .dll (M$ Com component), I don't think
the constants will be visible to VB. VB reads the typelib (.tlb) file to
retrieve public constants and enums, and as with standard Windows API calls,
standard dlls frequently don't include a typelib. You best bet might be to
copy the constant declarations from the headers and reformat them for VB.
The header file is also a good place to look for function parameters in case
the documentation for the dlls is lacking but you'll need to translate C
datatypes into compatible VB types. Good luck.

Oscar Bowyer

Quote:

>Hi all,
>we are doing a call center project with some devices with API functions
>and header files(.h files) supplied by a company.But I use VB as our
>development tool, I wonder how I can include the header files
>,especially constants defined in header files, in my VB source code?
>Thanks in advance,
>Xia,
>05/20/1999



Mon, 05 Nov 2001 03:00:00 GMT
 
 [ 2 post ] 

 Relevant Pages 

1. C header files for data types and sql calls to access 2.0

2. Reading File Header Info (Binary Files)

3. API calls to zip files....

4. header file for C to VB 4

5. VFP5: Calling Windows API to send text file to LPT1

6. API calls to ini files with IBM-DOS

7. ODBC API Calls Text file

8. ODBC API headers for VB

9. VB 6, Btrieve API and error 3 on opening a file

10. Programming using btrieve api and ddf files - very lame question

11. Calling .sql file from another .sql file

12. Calling an external batch file or executable from VB


 
Powered by phpBB® Forum Software