Hi!
I'm writing a program that can send messages(texts) from one palm device to
another. But it seems that I have problem registering the type of data that
I want to receive!
I'm using ExgMrg and Here's the section of code straight from my
app:
UInt32 PilotMain(UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags)
{
EventType event;
Err err = 0;
switch (cmd)
{
case sysAppLaunchCmdSyncNotify:
ExgRegisterData('I191', exgRegExtensionID, "txt"); //I191 is the
CreatorID
break;
case sysAppLaunchCmdExgReceiveData:
GetMessage((ExgSocketType *) cmdPBP);
break;
case sysAppLaunchCmdNormalLaunch:
FrmGotoForm(MainForm);
do {
UInt16 MenuError;
EvtGetEvent(&event, evtWaitForever);
if (! SysHandleEvent(&event))
if (! MenuHandleEvent(0, &event, &MenuError))
if (! AppHandleEvent(&event))
FrmDispatchEvent(&event);
} while (event.eType != appStopEvent);
break;
default:
break;
}
return(err);
}
I have two palm devices, both are Sony Clie PEG-NX70V with Palm OS 5. The
palm that I use to sending out the message seemd worked fine! I've pointed
out the target to send to is 'I191' in the sending program. But the other
palm that is used to receive exchange datas always displays an alert box
stating: "Cannot find application for data received".
Can anyone help me and tell me what may be happening!?
PLEASE....Many Thanx...
Angela Chang
==========================================================
收到帳單後最擔心的事
http://edm-prg.epaper.com.tw/click.php?ad_code=25227
==========================================================
PChome線上購物週年慶:抽汽車、DV天天送
http://shopping.pchome.com.tw/
==========================================================
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/