Ok hehehe that one I don't know too. I always program using console while in school to work on projects and now just shift to win32, it looks like a different language to me.
Type: Posts; User: lakewa
Ok hehehe that one I don't know too. I always program using console while in school to work on projects and now just shift to win32, it looks like a different language to me.
Trying to use the static functioin but without having a complete understanding that is why I run into issue, thank you so much for your explanation.
It writes perfectly to the log file as I check the contents in the file.
Thank you everyone for the input to help me out, very appreciated.
It works fine without &, also Elysia's suggestion also works fine too using the &.
matsp, thanks the error is gone. But may I know why it's necessary to assign it to the object itself.
gPtrMyTest = this;
MyTest *temp = gPtrMyTest;
I'm not worrying about threading right now because I'm not using any also it's out of my scope right now about threading. But I will try your suggestion, and hope it will work. Thanks.
I just add & like you suggested, but when I step through the function function to open the log file, it gives the same error messsage. In the open file function, the name of the file is passed in as...
That is what I thought because using pointer without initialization, but I couldn't think of what to assign to.
It seems I'm unable to accomplish callling class member within a static CALLBACK function, can you please give me suggestion.
class MyTest
{
public:
//Default constructor.
Thanks for pointing that out on the wrapper function. I will try again, but yesterday evening I thought I tried that, but didn't work. Just curious, since I'm writing this code in visual embedded...
If my CALLBACK is static and only can access to static data, then I'm in trouble unless I have to change all the data members to static which I'm not sure if that will affect my other functions as...
thank you for the replies. If I declare my CALLBACK as static member function, will I able to access my class data that are not static?
class myClass
{
public:
myClass();
void...
I have been searching for information how to make the CALLBACK as one of my class methods, and I found your thread, thanks.
However I run into problem because it seems I cant create like your...