Hi all,
I am exploring the SyncCallRemoteModule function. I am able to get the
launch code in my palm app, but the DlkControl call in the palm always fails
giving an error code of 3485 (dlkErrParam). Any idea what is going wrong? By
the way, I couldn't find any documentation on DlkControl, or any DLServer
calls. I had to figure it out form the header files (may be I am making some
silly mistakes). Are they left out intentionally?
-Sugho-
Here is the code:
Conduit:
char *sParam = new char[4];
char *sRes = new char[4];
CCallModuleParams Params;
strcpy(sParam, "ZZZ");
Params.m_dwCreatorID = 'tps6';
Params.m_dwTypeID = 'appl';
Params.m_wActionCode = 999; //just a test
Params.m_dwParamSize = sizeof(long);
Params.m_pParam = sParam;
Params.m_dwResultBufSize = 4;
Params.m_pResultBuf= sRes;
lDummy = SyncCallRemoteModule(&Params);
Palm app:
switch (i_nCmd)
{
case sysAppLaunchCmdHandleSyncCallApp:
{
DlkCallAppReplyParamType Reply;
SysAppLaunchCmdHandleSyncCallAppType *pData =
(SysAppLaunchCmdHandleSyncCallAppType *) i_pCmdPB;
pData->handled = true;
MemSet(&Reply, sizeof(DlkCallAppReplyParamType), 0);
Reply.pbSize = sizeof(DlkCallAppReplyParamType);
Reply.resultP = "AAA"; //just a test
Reply.dwResultSize = StrLen(Reply.resultP) + 1;
Reply.dlRefP = pData->dlRefP;
Reply.dwResultCode = 0;
nError = DlkControl(dlkCtlSendCallAppReply, &Reply, NULL);
}
break;
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com