so i'm a super beginner with COM.
all i know how to do is make ATL wizard com objects. anyhow, the way i call my COM server interface from a client is by including the header from the COM object so that the interface is defined and i can get a pointer to the interface with Cocreateinstance
now, i guess this is similar to a dll with a lib file, or a dll with a bunch of _declspec(dllimport) lines etc.
i was just wondering if there is a way to get a pointer to the interface and use it without predefining everything . would i just have to make a big typedef for that interface? i think thats how to do it but im really not sure.
i tried to use an IUnknown pointer to use IUnknown->queryinterface with the correct UUID and IID and such, and set it to a void* pointer, but then I cannot access the interface that i recieve's methods. well or i am completely not understanding how this works.
anyhow.... anyhelp or comments or anything or links to tutorials would be appreciated.
OK NEVERMIND
i figured it out, you just have to paste in the interface class prototype thing.
all i know how to do is make ATL wizard com objects. anyhow, the way i call my COM server interface from a client is by including the header from the COM object so that the interface is defined and i can get a pointer to the interface with Cocreateinstance
now, i guess this is similar to a dll with a lib file, or a dll with a bunch of _declspec(dllimport) lines etc.
i was just wondering if there is a way to get a pointer to the interface and use it without predefining everything . would i just have to make a big typedef for that interface? i think thats how to do it but im really not sure.
i tried to use an IUnknown pointer to use IUnknown->queryinterface with the correct UUID and IID and such, and set it to a void* pointer, but then I cannot access the interface that i recieve's methods. well or i am completely not understanding how this works.
anyhow.... anyhelp or comments or anything or links to tutorials would be appreciated.
OK NEVERMIND
i figured it out, you just have to paste in the interface class prototype thing.