[done] Problem with creating of three procedures

TailBite specific forum

Moderators: gnozal, ABBKlaus, lexvictory

mpz
Enthusiast
Enthusiast
Posts: 494
Joined: Sat Oct 11, 2008 9:07 pm
Location: Germany, Berlin > member German forum

[done] Problem with creating of three procedures

Post by mpz »

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: Select all


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

Re: Problem with creating of three procedures

Post by ts-soft »

use tailbite manager, save the source, change the desc and recompile with librarymaker
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Re: Problem with creating of three procedures

Post by lexvictory »

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: Select all

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!
mpz
Enthusiast
Enthusiast
Posts: 494
Joined: Sat Oct 11, 2008 9:07 pm
Location: Germany, Berlin > member German forum

Re: Problem with creating of three procedures

Post by mpz »

Thanks you,

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

Greetings Michael
Working on - MP3D Library - PB 5.73 version ready for download
Post Reply