![]() |
![]() |
This query returns a C string containing the error message of last command or query.Getting the last error code and string. If you follow PGetLastErrorStr with PGetLastError (or vice versa), only the first query returns a valid error code or message (unless the first query fails). The second query gets the error code or message from the first query. A successful query (or command) automatically resets the parameter block.
No error. If PageMaker did not encounter an error, it returns a single space in the string.
try{
PGetFoo foo;
}
catch (PMErr err) {
PGetLastErrorStr lastErrStr;
cout << (const char *) lastErrStr; // send to console
}
Comments or suggestions? Contact Adobe Developer Support