I get the following error:
Error 1 error C3867: ‘CHelloproxy::Hello’: function call missing argument list; use ‘&CHelloproxy::Hello’ to create a pointer to member c:\users\uma\documents\visual studio 2008\projects\nproject\nproject\Helloproxy.h 24 Nproject
HRESULT hr = CoCreateInstance(
__uuidof(Hello), // Request Hello object
NULL, // This is not an aggregate
CLSCTX_INPROC_SERVER, // COM object in client’s address space
__uuidof(IHello), // Request IHello interface pointer
(void **) &pIHello);
The Compiler docs say:
“You tried to take the address of a member function without qualifying the member function with its class name and the address-of operator.”
http://msdn.microsoft.com/en-us/library/b0x1aatf%28v=vs.80%29.aspx
Are you passing the name of a member function as a parameter accidentally?