Re: Trust me ... I know ...
From: Bruce Eitman \(eMVP\) (beitmannospam_at_nospam.neo.rr.com)
Date: 06/03/04
- Next message: Paul G. Tobey [eMVP]: "Re: getsockopt function failes"
- Previous message: Gernot Frisch: "Re: item menu check-uncheck?"
- In reply to: Auburnate: "Trust me ... I know ..."
- Next in thread: Auburnate: "File Transfer TCP"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 3 Jun 2004 10:20:20 -0400
We work for free, and our goal is to help you without writing your code. If
you want consulting, contact me privately we can work something out.
Casting does not change data, it only changes the way data is interpreted.
So you had a value, let's say it was 40. You cast it as a char *, so now
what do you have? You have a pointer to the address 40 so then you printed
the value at address 40. You need a string with value "40". Consider
sprintf or wsprintf, there are certainly other ways, but this should do what
you need for debugging and be covered in your books in detail.
-- Bruce Eitman (eMVP) Senior Engineer
- Next message: Paul G. Tobey [eMVP]: "Re: getsockopt function failes"
- Previous message: Gernot Frisch: "Re: item menu check-uncheck?"
- In reply to: Auburnate: "Trust me ... I know ..."
- Next in thread: Auburnate: "File Transfer TCP"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|