It is currently Sat May 25, 2013 5:10 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: [done] Problem with creating of three procedures
PostPosted: Sat Nov 20, 2010 8:44 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Oct 11, 2008 9:07 pm
Posts: 214
Location: Germany, Berlin > member German forum
Hi,

i have a question to Tailbite and PB 4.51 x86. I want to make three different procedures but Tailbite think these are one procedure with variable arguments
and the lib cant be created. Is it possible to make three procedures or must i use a differnt name like Catch32Font, Catch8Font and CatchFont?

Thanks for help,
Michael

Code:

ProcedureDLL CatchFont32(FontNumber.l, MemoryID, Length)
   
  ProcedureReturn 1
 
EndProcedure

ProcedureDLL CatchFont8(FontNumber.l, MemoryID, Length)
   
  ProcedureReturn 2
 
EndProcedure

ProcedureDLL CatchFont(FontNumber.l, MemoryID, Length, XSize, YSize)
 
  ProcedureReturn 3

EndProcedure


_________________
Working on - MP3D Library -


Top
 Profile  
 
 Post subject: Re: Problem with creating of three procedures
PostPosted: Sat Nov 20, 2010 10:11 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 4715
Location: Berlin - Germany
use tailbite manager, save the source, change the desc and recompile with librarymaker


Top
 Profile  
 
 Post subject: Re: Problem with creating of three procedures
PostPosted: Sun Nov 21, 2010 5:29 am 
Offline
Addict
Addict

Joined: Sun May 15, 2005 5:15 am
Posts: 1024
Location: Australia
yes, it appears you will have to rename your functions (simply adding an underscore to the end works fine)
If you dont want to change the names however, you will need to use the /DONT parameter to tailbite.exe, or use TBManager and check the 'Don't build library, only source files.' checkbox (and possibly the 'Keep source files after making the library.' one (/KEEP to tailbite.exe), I'm not sure)

then you'll need to edit the .Desc file in the tailbite library sources folder.
you'll want something like this: (remove "| UNICODE | THREAD" if you don't compile with the multilib option)
Code:
ASM
;
1
KERNEL32
;
LIB
;
0
;
mpz.chm
;
CatchFont32, Long, Long, Long (FontNumber.l, MemoryID, Length)
Long | StdCall | UNICODE | THREAD
;
CatchFont8, Long, Long, Long (FontNumber.l, MemoryID, Length)
Long | StdCall | UNICODE | THREAD
;
CatchFont, Long, Long, Long, Long, Long (FontNumber.l, MemoryID, Length, XSize, YSize)
Long | StdCall | UNICODE | THREAD
;
mpz_Init
InitFunction | StdCall | UNICODE | THREAD
;

then use the batch file (check that 'generate build batch file' is selected in tb manager if using manager to compile) to compile and install the lib
(make sure to run it as admin if your pb directory is in program files and on vista or 7)

_________________
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!


Top
 Profile  
 
 Post subject: Re: Problem with creating of three procedures
PostPosted: Sun Nov 21, 2010 6:45 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Oct 11, 2008 9:07 pm
Posts: 214
Location: Germany, Berlin > member German forum
Thanks you,

now i understand and think i can use it very well...

Greetings Michael

_________________
Working on - MP3D Library -


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 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:  

 


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