[Tailbite PR 1.878][PB 4.30] Problem with TB_DebugError

TailBite specific forum

Moderators: gnozal, ABBKlaus, lexvictory

User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

[Tailbite PR 1.878][PB 4.30] Problem with TB_DebugError

Post by Progi1984 »

Hi all,
When I try to tailbite this code

Code: Select all

   ProcedureDLL MyDiv(a, b)
     ProcedureReturn a/b
   EndProcedure

   ProcedureCDLL MyDiv_DEBUG(a, b)
    If b=0
      TB_DebugError("Division by zero!")
    EndIf
   EndProcedure
I have this error :

Code: Select all

PBCompiler : /COMMENTED /DEBUGGER
******************************************************
PureBasic 4.30 (Windows - x86)
******************************************************
Compiling : C:\Documents and Settings\franklin\Bureau\Sample_DEBUG\Sample_DEBUG.pb
Loading external libraries...
Starting compilation...
Error: Line 7 - Bad parameter type, number expected instead of string.
On line of "TB_DebugError" !

bye
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

Post by Progi1984 »

Any news ?
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post by ABBKlaus »

your example is missing the @ :

Code: Select all

TB_DebugError(@"Division by zero!")
Post Reply