Using VC++ 6.0, if I comment out the StrToUpdateMode() function it compiles fine, but otherwise I get:
error C2039: '__ctor' : is not a member of 'UpdateMode'
I have no idea what it's talking about?
Code:
namespace UpdateMode
{
enum UpdateMode
{
AddOnly = 0, /**< Only add record if it doesn't already exist. */
UpdateOnly = 1, /**< Only update record if it exists (i.e. don't add). */
AddOrUpdate = 2, /**< Update record if it exists, otherwise add a new record. */
Delete = 3 /**< Delete the record. */
};
bool StrToUpdateMode( const TCHAR* str, UpdateMode::UpdateMode& updateMode ); // error C2039
}