Page 1 of 1

Problem with WindowCallback()

Posted: Mon Mar 31, 2025 12:50 pm
by Lord
Hi!

What is wrong with this piece of code found on RSbasic WinAPI Library:
Running that snippet quits with this message
[13:43:37] Warte auf den Start des Executable...
[13:43:37] Executable-Typ: Windows - x64 (64bit, Unicode, Thread)
[13:43:37] Executable gestartet.
[13:43:38] [ERROR] Zeile: 40
[13:43:38] [ERROR] SetWindowCallback(): Die in '@ProcedureName()' angegebene Prozedur hat nicht das benötigte Argument bzw. den Rückgabetyp.
Line 40 contains

Code: Select all

SetWindowCallback(@WindowCallback())
What went wrong? Any Help appreciated.

Re: Problem with WindowCallback()

Posted: Mon Mar 31, 2025 12:57 pm
by HeX0R
There are two problems:

Code: Select all

Structure ODSBTEXT
  szText.i
  clrFront.l
  clrBack.l
EndStructure

Define EventID
Define osbt.ODSBTEXT

Procedure WindowCallback(hWnd, uMsg, wParam, lParam)

Re: Problem with WindowCallback()

Posted: Mon Mar 31, 2025 3:17 pm
by Lord
Hi HeX0R!

You answer helps a lot.
Problem solved.
Thank you!