;//// From included file 1
!EXTRN _PB_Gadget_RegisterGadget@16
;//// From included file 2
!EXTRN _PB_Gadget_RegisterGadget@16
;---> error message : symbol already defined
Is it possible to add a new constant for this case ? #PB_ASM_Symbol
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Import "Gadget.lib"
CompilerIf #PB_Compiler_Unicode
PB_Gadget_RegisterGadget(a,b,c,d) As "_PB_Gadget_RegisterGadget_UNICODE@16"
CompilerElse
PB_Gadget_RegisterGadget(a,b,c,d) As "_PB_Gadget_RegisterGadget@16"
CompilerEndIf
EndImport
Import "Gadget.lib"
PB_Gadget_Objects
EndImport
Debug PB_Gadget_Objects
If OpenWindow(0, 0, 0, 322, 150, "EditorGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
EditorGadget(0, 8, 8, 306, 133)
TextGadget(1,0,0,0,0,"")
For a = 0 To 5
AddGadgetItem(0, a, "Line "+Str(a))
Next
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.