HI,
I could not get the following code snipper to work in my Marmalade project. (taken from http://api.shephertz.com/app42-docs/user-management-service/)
-
userService->CreateUser(userName, pwd, emailId,this,app42callfuncND_selector(Sample_Class::onUserRequestCompleted));
-
void Sample_Class::onUserRequestCompleted(App42CallBack *sender, void *response)
Specifically, I have a type mismatch error for the pTarget argument ("this"). If I pass a NULL value, the line executes but does not create a user.
userService->CreateUser(userName, pwd, emailId,NULL, SEL_App42CallFuncND(MainMenu::onUserRequestCompleted));
Can someone send me working C++ code snippet that uses the above API call?