Page 39 of 40

Posted: Wed Jul 11, 2007 6:54 pm
by srod
:)

Posted: Fri Jul 27, 2007 11:22 am
by Maxus
How make
constant #KEY=0
in TailBite?

Posted: Fri Jul 27, 2007 11:32 am
by gnozal
Maxus wrote:How make
constant #KEY=0
in TailBite?
You mean create user defined constants ?
Perhaps you should consider creating a resident (the *.res files in %PB%\Residents) ?
Check the PBCompiler /RESIDENT flag.

Posted: Fri Jul 27, 2007 11:50 am
by Maxus

Code: Select all

Procedure.l ipf_bbTurnEntity(e.l,p.f,y.f,r.f,_global.l=0)
   ProcedureReturn bbTurnEntity_(e,p,y,r,_global)
EndProcedure

ProcedureDLL.l bbTurnEntity(e.l,p.f,y.f,r.f,_global.l)
   ProcedureReturn ipf_bbTurnEntity(e,p,y,r,_global)
EndProcedure

ProcedureDLL.l bbTurnEntity2(e.l,p.f,y.f,r.f)
   ProcedureReturn ipf_bbTurnEntity(e,p,y,r)
EndProcedure
This code not work.
Not default parameter _global

Posted: Fri Jul 27, 2007 11:58 am
by gnozal
Iirc, you can't use default values with Tailbite, but something it like this should work :

Code: Select all

ProcedureDLL.l bbTurnEntity(e.l,p.f,y.f,r.f) 
  ProcedureReturn ipf_bbTurnEntity(e,p,y,r, 0) 
EndProcedure

ProcedureDLL.l bbTurnEntity2(e.l,p.f,y.f,r.f,_global.l) 
  ProcedureReturn ipf_bbTurnEntity(e,p,y,r,_global) 
EndProcedure

Posted: Fri Jul 27, 2007 12:08 pm
by Maxus
Thank you!!!

Posted: Tue Aug 21, 2007 2:39 am
by ts-soft
Since the change with optional parameters, i can only use 9 optional
parameters, but before i have used more as this, but changed the desc by
hand. I can't do this anymore :cry:

Posted: Tue Nov 13, 2007 7:52 pm
by X
Any chance to update to support 4.10 series? This may be either a jaPBe issue or Tailbite. However, when Tailbiting from jaPBe, it errors out with numerous errors on any code.

Posted: Tue Nov 13, 2007 7:59 pm
by srod

Posted: Wed Nov 14, 2007 9:14 am
by gnozal
X wrote:Any chance to update to support 4.10 series? This may be either a jaPBe issue or Tailbite. However, when Tailbiting from jaPBe, it errors out with numerous errors on any code.
Did you update jaPBe V3 ?
Tailbiting from jaPBe V3 with PB 4.10 works just fine here.

Posted: Wed Nov 14, 2007 5:07 pm
by X
I have the newest jaPBe installed, but not the newest Tailbite, which must be causing the problem. I'll install the newest tailbite tonight and see if that fixes things.

Posted: Wed Nov 14, 2007 5:14 pm
by gnozal
X wrote:I have the newest jaPBe installed, but not the newest Tailbite, which must be causing the problem. I'll install the newest tailbite tonight and see if that fixes things.
jaPBe V3 already comes with a custom tailbite version wich is used if you select Menu:Project->Tailbite.

Posted: Sat Feb 02, 2008 2:04 pm
by Progi1984
I compile this code in a userlib (Mode Normal & Unicode)

Code: Select all

ProcedureDLL TestFunc()
  CompilerIf #PB_Compiler_Unicode = #True
    ProcedureReturn #True
  CompilerElse
    ProcedureReturn #False
  CompilerEndIf
EndProcedure
Whatelse the mode of compilation of the test file (a simple TestFunc()), that debugs 0.

Posted: Sat Feb 02, 2008 2:57 pm
by ABBKlaus
you have to use subsystems else it will not work.

This is compiled in normal mode :

Code: Select all

; ProcedureDLL TestFunc() 
macro MP0{
_Procedure0:
  PUSH   ebx
  PS0=8                                                                                                                                                                                                                                           
; CompilerIf #PB_Compiler_Unicode = #True 
; ProcedureReturn #False 
  XOR    eax,eax
  JMP   _EndProcedure1
; CompilerEndIf 
; EndProcedure
  XOR    eax,eax
_EndProcedure1:
  POP    ebx
  RET
}
_PB_EOP_NoValue:
  PUSH   dword 0
_PB_EOP:
  CALL  _PB_EndFunctions
  PUSH   dword [PB_MemoryBase]
  CALL  _HeapDestroy@4
  CALL  _ExitProcess@4
_PB_EndFunctions:
  RET
; 
and this is compiled in unicode mode :

Code: Select all

; ProcedureDLL TestFunc() 
macro MP0{
_Procedure0:
  PUSH   ebx
  PS0=8                                                                                                                                                                                                                                           
; CompilerIf #PB_Compiler_Unicode = #True 
; ProcedureReturn #True 
  MOV    eax,1
  JMP   _EndProcedure1
; CompilerElse 
; EndProcedure
  XOR    eax,eax
_EndProcedure1:
  POP    ebx
  RET
}
_PB_EOP_NoValue:
  PUSH   dword 0
_PB_EOP:
  CALL  _PB_EndFunctions
  PUSH   dword [PB_MemoryBase]
  CALL  _HeapDestroy@4
  CALL  _ExitProcess@4
_PB_EndFunctions:
  RET
; 

Posted: Sat Feb 02, 2008 3:12 pm
by Progi1984
I use the tailbitation (*new word :-p) and so subsystems !

but the compilerif doesn't run !