|
-
Nov 27th, 2002, 01:08 PM
#11
Thread Starter
Addicted Member
No, thats just it I don't want to pass the data to a function IN my class. I want to pass the data to a function THAT ISN'T in my class.
For example the name of my class = MyClass
It has 1 function: SetFunction()
Now the user wants to use my class, the users code:
#include <Myclass.h>
int ParseData(char Data)
{
// parse the data
}
void main()
{
SetFunction()
}
What i want to do is:
I want to call the "ParseData" function from my class when i recieve data. And with the "SetFunction" function i want to tell my class that it is the "ParseData" function that I should call.
You can compare it with multithreading. You say to CreateThread function to call a function by passing a pointer to that function.
Is it making any sense to you?
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
|