Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[c++] PcAnywhere OLE

Status
Not open for further replies.

husiana

Programmer
Sep 22, 2003
1
0
0
FR
hi all,

I would like to call a maitre.
I am thus one raise(bring up) who(which) uses a file *.bhf to call a maitre and who(which) would be capable of calling always the meme maitre. The program could thus address of the alone maitre.

BOOL LaunchTCPHost(LPCTSTR lpszAddress)
{
BOOL bReturn = FAUX;
CHostDataManager hostDM;
CHostData hostData;

hostDM.CreateDispatch( _T( "WINAWSVR.BeHostDataManager"));

hostData.AttachDispatch(hostDM.CreateObject("Test", 0));

hostData.SetConnectionType("TCP/IP");
hostData.SetComputerName(lpszAddress);

if (hostData.WriteObject(0))
{
if (hostData.Launch())
bReturn = TRUE;
}
hostData.ReleaseDispatch();
return (bReturn);
}

This program segfault!

please, help!

PS: sorry for this english, i'm french...

 
j'ai la faux avec WriteObject(0)

Je crois que le .tlb n'est pas correct.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top