A
Abubakar
Hi,
Lets say I have a method called "listen_proc" inside "class1". There is
another method called "start" in the same class that has to start the
"listen_proc" inside a new thread. I am using CreateThread but I cannot
manage to pass the right function pointer, the compiler keeps on giving
error that it cant convert my given function to LPTHREAD_START_ROUTINE while
I try to cast it. In a simple c++ non-class file I can easily do it but this
class method prototype mismatch is causing this problem. Can someone plz
write a little example that has a method inside a class that is started in a
seperate thread using CreateThread.
Thanks,
-Ab.
Lets say I have a method called "listen_proc" inside "class1". There is
another method called "start" in the same class that has to start the
"listen_proc" inside a new thread. I am using CreateThread but I cannot
manage to pass the right function pointer, the compiler keeps on giving
error that it cant convert my given function to LPTHREAD_START_ROUTINE while
I try to cast it. In a simple c++ non-class file I can easily do it but this
class method prototype mismatch is causing this problem. Can someone plz
write a little example that has a method inside a class that is started in a
seperate thread using CreateThread.
Thanks,
-Ab.