Got some experiences on Windows/Linux coding, but this palm programming is 
totally different. On Windows, we can use ShellExecute(); on Linux, we can use 
execXXX. On Palm, what functions can we use? Some APIs in exchange manager do 
not seem to be the right one (could be my wrong understanding). Search through 
the knowledgebase and the forum and have not found the answer yet.

Here is one part of code that may be close:

void MyLaunchApplication( const Char *sFileName )
{
    ExgSocketType   exgSocket;
    Err             eError = errNone;
    char            sTest[] = "dude dude";
    UInt32          dwSize = StrLen( sTest ) + 1;

    if( NULL == sFileName )
    {
        return;
    }

    MemSet( &exgSocket, sizeof(exgSocket), 0 );
    exgSocket.description = (char*) "my testing";
    exgSocket.name = (char*) "?_send:test.txt";
    exgSocket.type = (char*) ".txt";

    if( 0 == ( ExgPut( &exgSocket ) ) )
    {
        ExgSend( &exgSocket, (char*) sTest, dwSize, &eError );
        ExgDisconnect( &exgSocket, eError );
    }
}

My question is:

1. Is this the way to launch the application that registers to work on *.txt?

2. If test.txt is already there on the device, why do I need to declare a 
buffer <sTest> to send the data over? Or test.txt is the file that the default 
application will be used to save the data in?

My test device is treo650.

Thank you.
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to