Page 1 of 1
[DONE] Tailbite and Import
Posted: Fri Jul 18, 2008 10:26 am
by Polo
Hey !
In my lib, I need to use some functions from a .lib file, I use ImportC to get the functions in a usual Purebasic program, though will this work if I compile my library with Tailbite ?
cheers,
polo
Posted: Fri Jul 18, 2008 10:36 am
by ts-soft
Libs in CDECL a included in UserLib, Libs in StdCall not, but you can put in
...\PureBasic\PureLibraries\Windows\Libraries\
greetings
Thomas
Posted: Fri Jul 18, 2008 10:46 am
by Polo
it is CDECL, but I do not want to make a purelibrary out of it, I want to use its function in a Tailbite purelibrary and to have the .lib included in that library

Posted: Fri Jul 18, 2008 11:35 am
by ts-soft
this is what i mean with cdecl
Use ImportC and Tailbite includes the static lib in the UserLib
Code: Select all
ImportC "bla.lib"
test()
EndImport
ProcedureDLL MyTest()
ProcedureReturn test()
EndProcedure
Posted: Fri Jul 18, 2008 3:32 pm
by Polo
Sorry I didn't understand
Cheers, I'm gonna try that !