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...
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...