Looks to me like it's probably the third arg.  "bytes" is a UInt32 * and the
Palm OS Ref says it should be a UInt32:
Prototype UInt32 ExgSend (ExgSocketType *socketP,

const void *bufP, UInt32 bufLen, Err * err)

Dennis Leas
-------------------
[EMAIL PROTECTED]


----- Original Message -----
From: "Adrian Morales" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, January 16, 2003 1:22 PM
Subject: illegan implicit convertion from unsigned long * to unsigned long


>   Hi.
>
> I have two function  to send information from palm to palm
>
> when I want to create the prc  generated this error;
>
> Error: illegan implicit convertion from unsigned long * to unsigned long
> Line ExgSend( (ExgSocketType *) exgSocket, buffer, bytes, &error);
>
> can anybody help me?
>
> Thank.
>
>
> static Err WriteDatabase(const void *buffer, UInt32 *bytes, void
> *exgSocket){
>
>     Err error;
>
>     file://Realiza el envio de los datos
>     ExgSend( (ExgSocketType *) exgSocket, buffer, bytes, &error);
>
>     return error;
>
> }
>
> static Err SendDatabase(Char *dbName,Char *ext){
>     file://Variables de sockes
>     ExgSocketType exgSocket;
>     Err error;
>     Char name[36];  file://maximo de caracteres permitidos para el nombre
del
> archivo
>
>     file://Inicializa los sockets en memoria
>     MemSet(&exgSocket, sizeof(exgSocket),0);
>     file://Inicializa los datos del nombre de la DB
>     StrCopy(name,dbName);
>     file://Se agrega la extenci�n .prc o . pdb
>     StrCat(name, ext);
>
>     file://Inicializa los socket con los datos del nombre de la aplicacion
>     exgSocket.name =  name;
>     exgSocket.description = dbName;
>
>     file://Realiza la conexi�n para enviar el PRC o PDB
>     error = ExgPut(&exgSocket);
>
>     file://Verifica si existe error al realizar la conexion
>     if (! error){
>
>         file://Comienza la transmision de los datos
>         error =  ExgDBWrite(WriteDatabase, &exgSocket, dbName, NULL, 0);
>         file://Se desconecta para que no vaya a causar error
>         error = ExgDisconnect(&exgSocket, error);
>
>     }
>
>     file://Regresa el status de la operaci�n
>     return error;
>
> }
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>


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

Reply via email to