It is currently Thu May 23, 2013 12:09 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: [DONE] Tailbite and Import
PostPosted: Fri Jul 18, 2008 10:26 am 
Offline
Addict
Addict

Joined: Tue May 06, 2003 5:07 pm
Posts: 2257
Location: UK
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 18, 2008 10:36 am 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 4715
Location: Berlin - Germany
Libs in CDECL a included in UserLib, Libs in StdCall not, but you can put in
...\PureBasic\PureLibraries\Windows\Libraries\

greetings
Thomas

_________________
PureBasic 5.11 | Windows 7 SP1 (x64) | Linux Mint 14 (x64) | RealSource

The use of EnableExplicit is free of charge and avoids errors.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 18, 2008 10:46 am 
Offline
Addict
Addict

Joined: Tue May 06, 2003 5:07 pm
Posts: 2257
Location: UK
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 ;)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 18, 2008 11:35 am 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 4715
Location: Berlin - Germany
this is what i mean with cdecl
Use ImportC and Tailbite includes the static lib in the UserLib

Code:
ImportC "bla.lib"
test()
EndImport

ProcedureDLL MyTest()
 ProcedureReturn test()
EndProcedure

_________________
PureBasic 5.11 | Windows 7 SP1 (x64) | Linux Mint 14 (x64) | RealSource

The use of EnableExplicit is free of charge and avoids errors.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 18, 2008 3:32 pm 
Offline
Addict
Addict

Joined: Tue May 06, 2003 5:07 pm
Posts: 2257
Location: UK
Sorry I didn't understand :oops:

Cheers, I'm gonna try that !


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye