msado15.tlh
-
I am porting a COM object from VC6.0 to Visual Studo 2005 and I get the following error: error C2011: 'spcADO::CursorTypeEnum' : 'enum' type redefinition The reason for this is that the file msado15.tlh gets generated in the DebugU directory AND the project directory. Any idea how I can solve this? Thanks, Jerome
-
I am porting a COM object from VC6.0 to Visual Studo 2005 and I get the following error: error C2011: 'spcADO::CursorTypeEnum' : 'enum' type redefinition The reason for this is that the file msado15.tlh gets generated in the DebugU directory AND the project directory. Any idea how I can solve this? Thanks, Jerome
-
Strange, #import doesn't generally do this. Have you tried quitting VS, removing the tlh/tli files, and doing a clean and build?
Steve S Developer for hire
Yes it was weird - I tried that indeed but it did not work. I think it was caused by the fact that two cpp files had the same name. For some unknown reason, the obj files were generated incorrectly. I removed them from the project and re-added and it now works. Touch wood! Thanks for your help anyway!