IonicWind Software

IWBasic => General Questions => Topic started by: Andy on January 31, 2016, 06:16:40 AM

Title: Library files
Post by: Andy on January 31, 2016, 06:16:40 AM
When you create a lib file in IWB, can other programmers use it in a different language?

With the include file, you can see the what parameters you need to pass for each function.

Given that, could someone writing in C for example use the lib file?

Just a question.

Curious.
Title: Re: Library files
Post by: aurelCB on January 31, 2016, 07:15:23 AM
probably LarryMc know better but i think that is not possible
if you create DLL in IWB then this new DLL can be used in any other compiler but
just even is created as CDCL standard
Title: Re: Library files
Post by: LarryMc on January 31, 2016, 10:12:17 PM
IWBasic uses nasm and outputs standard COFF format object files, and the static libraries should work with any linker that uses COFF format. 
That's the best answer I can give you.  You do need to heed Aurel's note about the calling convention used in calling your subroutines and how variables are passed (strings/udts) may cause problems with some other languages.
Title: Re: Library files
Post by: Andy on January 31, 2016, 10:29:47 PM
Thanks to both of you for that.

I was simply curious as the lib file I have made is the first one for me.

Andy.