[FONT="Arial Narrow"]Hi ,
I am a newbie to this,I was trying to format a string using Format(I read its the equivalent to the sprintf).But some where i got an error. Please guide me to solve this error, while looking to the code. Whether I had any mistake in its method.[/FONT]
while compiling I got one errorCode:typedef struct _PARSEGPGGA { TUint satTime; TReal64 latitude; TChar latDir; TReal64 longitude; TChar longDir; TInt8 gpsQuality; TInt8 noOfSat; TInt8 hzonDilution; TReal32 altitude; TChar altUnit; TReal64 ellisoidSep; TChar ellipUnit; } PARSEGPGGA; PARSEGPGGA ggaData; ........................ .......... _LIT(KGPGGA,"$GPGGA,%u,%f,%c,%f,%c,%d,%d,%d,%f,%c,%f,%c,,,\n"); ......... ........ TBuf8<200> GpsBuff; GpsBuff.Format(KGPGGA,ggaData.satTime,ggaData.latitude,ggaData.latDir, gaData.longitude,ggaData.longDir,ggaData.gpsQuality, ggaData.noOfSat,&ggaData.hzonDilution,&ggaData.altitude, ggaData.altUnit,ggaData.ellisoidSep,ggaData.ellipUnit); ......... .........
1245700729296 error: no matching function for call to `TBuf8<200>::Format(const TLitC<47>&, TUint&, TReal64&, TChar&, TReal64&, TChar&, TInt8&, TInt8&, TInt8*, TReal32*, TChar&, TReal64&, TChar&)'
Please help me to solve this.
Thanks in advance
Geo

Reply With Quote



