|
-
Jun 22nd, 2002, 04:10 PM
#1
Thread Starter
PowerPoster
Using a CALLBACK function
I am writing a winsock class and for now I the class user to give me a certain CALLBACK function and then I call that function (by name) from my class with specific parameters. It's just like WndProc function you write yourself and then you pass the address of WndProc to WNDCLASSEX which is then called by windows containing a certain message.
How would I implement that in my own application?
-
Jun 23rd, 2002, 05:23 PM
#2
Frenzied Member
In your class (or structure), declare the variable as MYFUNC. Now, put this at the top of your header:
Code:
typedef LRESULT CALLBACK MYFUNC(HWND param1, UINT param2, LPCTSTR param3, ...);
MicroBasic
Dragon Shadow Trainer
There is no good or evil in the world...only programmers and fools .
-
Jun 23rd, 2002, 06:05 PM
#3
Thread Starter
PowerPoster
Great, thanks. I'll try that.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|