Demonstration - Server Code
public IServer, public CComObjectRoot, public CComCoClass<CServer,&CLSID_Server>
// . . . Some code omitted for brevity
HRESULT STDMETHODCALLTYPE Hello(unsigned char * pszMessage);
HRESULT STDMETHODCALLTYPE CServer::Hello(unsigned char * pszMessage)
wsprintf(szBuf,"%s",pszMessage);
::MessageBox(0,szBuf,"Server",MB_OK);