greetings
i have a big problem with treo600 device. my application uses exchange manager to send data to whatever user chooses. sent data are few text messages (plain/text) and a picture (image/jpeg). for all messages i do the same:
MemSet(&e,sizeof(ExgSocketType),0);
e.description=description;
e.type="text/plain";
if(isref) //user choose how he wants to send it for first object and for others it is the same library as he choosed for first one so he doesn't need to select library again
{
temp[0]=0;
e.libraryRef=*libraryRef;
}
else
StrCopy(temp,exgSendBeamPrefix);
StrCat(temp,filename);
e.name=temp;
e.length=StrLen(buffer);
e.count=1;
e.noGoTo=1;
err=ExgPut(&e);
if(!err)
{
*libraryRef=e.libraryRef;
isref=true;
sent=0;
while((!err) && sent<StrLen(buffer))
sent+=ExgSend(&e,buffer+sent,StrLen(buffer)-sent,&err);
//if there was an error exchange manager will tell it
ExgDisconnect(&e,err);
}
now this works with all devices i tried (m505, palm emulator, tungsten t3) but doesn't work with treo600. treo600 simulator completely ignores than noGoTo is set to 1 and it just launches its mail application and doesn't give me chance to send the rest. How should i deal with it? is there any other way how to tell exchange manager that i want to send more data so it should close my app immediately?
i can't just increment 'count' because messages can have different mime type and names
please help me, i don't have real treo600 device and my application must work on it. and i am completely stuck here...
thanks in advance Michal
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
