C interface?

Windows specific questions.
Post Reply
guidance
Posts: 7
Joined: May 31, 2005 2:36

C interface?

Post by guidance »

I'm a newbie. I feel FreeBASIC has capability to interface to any C library (DLL), right? the .bi file is just similar with .h header file in C? Any document refer this as detail info to read? Thanks!
v1ctor
Site Admin
Posts: 3804
Joined: May 27, 2005 8:08
Location: SP / Bra[s]il
Contact:

Post by v1ctor »

FB supports many "features" used by some C libs like pointers, bitfields, inner udt's, udt's passed by value or returned from functions, variable-arguments and so on, but the languages aren't the same, so the headers must be translated from C to FB.

I've a translator that was used in most of the include files that come with the FB 0.13 distribution, but it's not finished and the translation isn't simple, in most cases, hand editon is needed, so you must know C and FB enough to not do any mistake.
Post Reply