importing an old c library

  • Thread starter Thread starter CJ Taylor
  • Start date Start date
C

CJ Taylor

Hey how do I import an old C library that doesn't expose COM or anything
like that? Would I do it like an API declaration?

I have a function in a tbl.dll file such that...

tbl_get() no params.


Thanks,
CJ
 
Yes.

Declare Sub tbl_get lib "libname.dll" ( )

Actually, if it's returning something (which, by the name, seems to be the
case), you'll have to use Declare Function instead, and specify the return
type. After declaring the external function, you should be able to call it
anywhere in your program.

-Rob
 
* "CJ Taylor said:
Hey how do I import an old C library that doesn't expose COM or anything
like that? Would I do it like an API declaration?

I have a function in a tbl.dll file such that...

tbl_get() no params.

Which convention is used to export the functions?
 
Back
Top