Using msado15.dll in VC++ Application Which build DLL !
-
Hi all ! I am buill dll application in VC++ with MFC AppWizard(dll). In the file StdAfx.h, I have included the line follows into it's header. #import "C:\Program Files\Common Files\System\ado\msado15.dll" \ no_namespace \ rename( "EOF", "adoEOF" ) I using msado15.dll for accessing the .mdb database. But When I builded my application, I always met some mistake . Example 'LockTypeEnum' : 'enum' type redefinition I really don't known why ? I done well in the normal application but in dll application I can't... pls, help me resolve the problem. Thanks alots
-
Hi all ! I am buill dll application in VC++ with MFC AppWizard(dll). In the file StdAfx.h, I have included the line follows into it's header. #import "C:\Program Files\Common Files\System\ado\msado15.dll" \ no_namespace \ rename( "EOF", "adoEOF" ) I using msado15.dll for accessing the .mdb database. But When I builded my application, I always met some mistake . Example 'LockTypeEnum' : 'enum' type redefinition I really don't known why ? I done well in the normal application but in dll application I can't... pls, help me resolve the problem. Thanks alots
Can you try this: #import rename_namespace("ADO") rename("EOF","ADOEOF")
-
Can you try this: #import rename_namespace("ADO") rename("EOF","ADOEOF")