Demonstration - Client Code
hr=CoCreateInstance(CLSID_Server,NULL,
IID_IServer,(void **)&pServer)))
if (SUCCEEDED(hr=pServer->Hello((unsigned char *)"Hello from the client")))
MessageBox("Client: Server printed the message");
wsprintf(szBuffer,"Hello() method failed: 0x%lX.\n",hr);
wsprintf(szBuffer,"Unable to create a server: 0x%lX.\n",hr);