implicit conversations are forbidden. explicit conversations are not mystring = (std::string*/char*) MemHandleLock((void *)mhandle); or better yet use static_cast<string*>(MemHandleLock((void *)mhandle));
Ravi -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, July 23, 2007 6:32 PM To: Palm Developer Forum Subject: Using MemHandleLock in C++ I am now using C++ properly thanks to all of your help. However, when I use the following statement, mystring = MemHandleLock((void *)mhandle); it returns the errors, ANSI C++ forbids implicit conversion from 'void *' in argument passing ANSI C++ forbids implicit conversion from 'void *' in assignment When I use... mystring = MemHandleLock(mhandle); I only get the assignment error. I tried enclosing that single statemtent in an extern "C" block, I got all kinds of other errors, so that is out. Is MemHandleLock() just not useable in C++? -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
