how can i change "no_namespace" ?
-
i want to apply ado to access database. i put following in my stdafx.h #import "c:\Program Files\Common Files\System\ADO\msado15.dll" no_namespace rename("EOF", "adoEOF") but when i compile ,there are "error C2011: 'LockTypeEnum' : 'enum' type redefinition". what should i change no_namespace into?
-
i want to apply ado to access database. i put following in my stdafx.h #import "c:\Program Files\Common Files\System\ADO\msado15.dll" no_namespace rename("EOF", "adoEOF") but when i compile ,there are "error C2011: 'LockTypeEnum' : 'enum' type redefinition". what should i change no_namespace into?
the bit at the end that says rename ("EOF", "adoEOF") could possibly also be used to rename LockTypeEnum ( I don't know for sure ). Or you could check where the clash is and fix it at the other end ( the other place that defines LockTypeEnum ). Or you can remove it entirely, which means that ADO will be imported within a namespace. Christian Graus - Microsoft MVP - C++