[DONE] Tailbite and Import

TailBite specific forum

Moderators: gnozal, ABBKlaus, lexvictory

Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

[DONE] Tailbite and Import

Post 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
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post 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
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post 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 ;)
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post 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
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

Sorry I didn't understand :oops:

Cheers, I'm gonna try that !
Post Reply