Problem with WindowCallback()

Just starting out? Need help? Post your questions and find answers here.
User avatar
Lord
Addict
Addict
Posts: 907
Joined: Tue May 26, 2009 2:11 pm

Problem with WindowCallback()

Post 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.
Image
User avatar
HeX0R
Addict
Addict
Posts: 1218
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Problem with WindowCallback()

Post 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)
User avatar
Lord
Addict
Addict
Posts: 907
Joined: Tue May 26, 2009 2:11 pm

Re: Problem with WindowCallback()

Post by Lord »

Hi HeX0R!

You answer helps a lot.
Problem solved.
Thank you!
Image
Post Reply