--- Frank Richter <[EMAIL PROTECTED]> wrote:

> On 03.03.2007 13:56, Joris Huizer wrote:
> > 
> >     if( i == 0 )
> >     - memcpy( &lpSpData->dwReserved1,
> returnBuffer,
> >     sizeof(lpSpData->dwReserved1) );
> >     + sscanf(returnBuffer, "%x",
> &lpSpData->dwReserved1);
> > 
> > 
> > 
> > Couldnt you use:
> > strcpy(lpSpData->dwReserved1,returnBuffer);
> 
> Reading a string and interpreting it as a hex value,
> this value then
> being stored in a DWORD, is not quite the same as
> copying the string
> into the memory occupied by the DWORD.
> 
> -f.r.
> 

Ow I'm sorry, then I mis-interpreted what was
happening- sorry for that


 
____________________________________________________________________________________
Looking for earth-friendly autos? 
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/


Reply via email to