|
-
Oct 18th, 2004, 06:28 PM
#1
Thread Starter
Hyperactive Member
Function declare for use of function as param
Ok if I declare my functions in a class as.
SetEvent(long tEvent,void *funcname);
MSVC lets me do
void SomeFunc();
void SomeotherFunc(int, int);
....
SomeClass someobject;
....
someobject.SetEvent(1,SomeFunc);
someobject.SetEvent(1,SomeotherFunc);
However Ming32 errors on both.
I have to cast it which I dont want to do.
What is the correct way to declare a function that takes a function as a parameter. Or is it possible?
packetvb
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
|