[Done]Problem with static and PB 520 beta 5/6
Posted: Sat Jul 13, 2013 5:41 pm
Hello,
i found a problem with the function static and PB 5.20 Windows. In the procedure the static variabe is not set to "extrn". I hope you find a solution:
error undefinite_symbol
as code
it is missing
i hope this helps to solve the problem...
Greeting Michael
i found a problem with the function static and PB 5.20 Windows. In the procedure the static variabe is not set to "extrn". I hope you find a solution:
Code: Select all
ProcedureDLL Mytest (Var)
Static *pointer
If Not *pointer
*pointer = 10
EndIf
ProcedureReturn var + *pointer
EndProcedure
error undefinite_symbol
as code
Code: Select all
format MS COFF
Public PB_Mytest
section '.text' code readable executable
PB_Mytest:
PUSH ebx
PS0=8
;
; Static *pointer
;
; If Not *pointer
CMP dword [so_Mytest.p_pointer],0 <- error
Code: Select all
extrn so_Mytest.p_pointer
i hope this helps to solve the problem...
Greeting Michael