Hello Antti !!! 1.) The URL you provided doesn't work now. I'm also trying to make an activeX COM client for RDP connections. Can you please upload the code again & send the URL ? 2.) How can we create the instance pointer of IMsTscAx interface class? code:-
void Connect()
{//*pInterface pointer will be used to call the methods to make rdp connection
IMsTscAx *pInterface;
CLSID clsid = __uuidof(MSTSCLib::MsTscAx);
IID iid = __uuidof(MSTSCLib::IMsTscAx);
HRESULT hrInterface=CoCreateInstance(clsid,NULL,CLSCTX_INPROC_SERVER,iid,void**)&pInterface);
/* but here pInterface becomes NULL because clsid = __uuidof(MSTSCLib::MsTscAx)is not a valid value but if I use clsid = __uuidof(MSTSCLib::MsRdpClient2) then clsid comes out to a valid value {CLSID_MicrosoftRDP Client Control (redist)} and interface pointer pInterface also gets filled n initialized, but then after setting all the rdp connection parameters, HRESULT hrConnect = pInterface->Connect() doesn't work though hrConnect gives success message. */
pInterface->PutDomain("spider.net");
pInterface->PutServer("192.168.10.195");
HRESULT hrConnect = pInterface->Connect();
}
Is there any other way(besides done in my code) to fill this interface pointer *pInterface ?? Please help. Regards, Lokesh