R Luna wrote:

you wrote
Don't forget to allocate memory for HelStr somewhere.


I'm Working in CW 9
how to allocate memory for HelStr, please help me with this
I hate a "Invalid Pointer" Message @_@
I not StrCopy and Strcat, nothing, why??????
Look Please

You might want to try allocating memory with MemPtrNew().
Or you can allocate it when you declare your string by declaring it as an array rather than a string.
In either case, you might want to learn some of the basics of C before you try working with Palm databases.




void Mack()
{
    Char *RowTableIp
    //open Bd
    Selection (1,RowTableIp);
}


void Selection (UInt32 TotRow,Char *TabDatosP) {

  MemHandle RecordHandle;
  Char *PuntReg ;


RecordHandle = DmQueryRecord(DBTransIP,TotRow);//Workin ok if (RecordHandle == NULL) //Workin ok return 0; PuntReg = MemHandleLock(RecordHandle); //Workin ok StrCopy(TabDatosP,PuntRegistro); <- THIS NOT WORKING read the error(**) StrCat(TabDatosP,"@"); return 0; }

-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to