Vista, COM Object Creation
Am asha o problema cu urmatorul codExista o aplicatzie care COM Server shi COM Client in acelashi timp, shi vreau sa lucreze fara inregistrare in registru.In XP asta arata cam asha:[[code|c++]]main(){::CoRegisterClassObject(CLSCTX_LOCAL_SERVER, ...)::CoCreateInstance(CLSID_MyClass, CLSCTX_LOCAL_SERVER, ...)}[[endcode]]In vista acest cod returneaza asha o eroare: E_NOINTERFACEDaka de facut [[code|c++]]::CoGetClassObject(CLSID_MyClass, CLSCTX_LOCAL_SERVER, &spClassFactory, ... );spClassFactory->CreateInstance(0, IID_IMyClass, (void**)&spTestClass);[[endcode]]tot intoarce o erroare ceva legat de interfatza, deshi ClassFactory se intoarce corectDaca de inregistrat interfatza in registru, mai bine zis de inregistrat CLSID-ul Proxy/Stub dll-ului aici:HKEY_CLASSES_ROOT\Interface\{}\ProxyStubClsid32\default = {00020424-0000-0000-C000-000000000046}atunci interfatza se creaza tot ok