Page 1 of 1

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

Posted: Sat Dec 20, 2008 5:01 pm
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

Posted: Mon Dec 22, 2008 9:33 pm
by Progi1984
Any news ?

Posted: Tue Dec 23, 2008 11:13 pm
by ABBKlaus
your example is missing the @ :

Code: Select all

TB_DebugError(@"Division by zero!")