![]() |
【转帖】use Of Dwgdirect In Managed C==
use of dwgdirect in managed c++
use of dwgdirect in managed c++ upon including odacommon.h in a vs 8 managed c++ project the compiler throws the following errors: code: error 2 error c2872: 'iserviceprovider' : ambiguous symbol c:\program files\microsoft visual studio 8\vc\platformsdk\include\servprov.h 93 error 3 error c3699: '*' : cannot use this indirection on type 'iserviceprovider' c:\program files\microsoft visual studio 8\vc\platformsdk\include\servprov.h 93 error 4 error c2371: 'iserviceprovider' : redefinition; different basic types c:\program files\microsoft visual studio 8\vc\platformsdk\include\servprov.h 100 error 5 error c2872: 'iserviceprovider' : ambiguous symbol c:\program files\microsoft visual studio 8\vc\platformsdk\include\servprov.h 117 error 6 error c2872: 'iserviceprovider' : ambiguous symbol c:\program files\microsoft visual studio 8\vc\platformsdk\include\servprov.h 231 error 7 error c2872: 'iserviceprovider' : ambiguous symbol c:\program files\microsoft visual studio 8\vc\platformsdk\include\servprov.h 238 error 8 error c2872: 'iserviceprovider' : ambiguous symbol c:\program files\microsoft visual studio 8\vc\platformsdk\include\urlmon.h 5174 error 9 error c2872: 'iserviceprovider' : ambiguous symbol c:\program files\microsoft visual studio 8\vc\platformsdk\include\urlmon.h 5176 thanks for any help, eric tyrrell can you create a small sample to reproduce the error? the only problem i know of is wchar_t related - you cannot use /zc:wchar_t+ with dd (due to vc8 compiler bug). but i didn't checked if it is true for vc8 sp1, perhapt they fixed it. vladimir thanks for the reply but i have figured out a solution. i must do my includes before "using namespace system;". i do not know exactly why that helps, but it does. also, i can confirm that the /zc:wchar_t+ bug is still in sp1. |
| 所有的时间均为北京时间。 现在的时间是 07:52 PM. |