Code: Select all
Procedure DropCallback(Handle, Status, Format, Action, x, y)
ProcedureReturn #True
EndProcedure
OpenWindow(0, 0, 0, 300, 300, "D&D", #PB_Window_SystemMenu)
EditorGadget(0, 5, 5, 290, 290)
EnableGadgetDrop(0, #PB_Drop_Files, #PB_Drag_Copy)
SetDropCallback(@DropCallback())
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
[ERROR] SetDropCallback(): The Procedure specified in '@DropCallback()' does not have the required argument or returntype.
Happens in both x64 compilers, the two x86 compilers work fine.


