Re: Trust me ... I know ...

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Bruce Eitman \(eMVP\) (beitmannospam_at_nospam.neo.rr.com)
Date: 06/03/04


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


Relevant Pages

  • Re: Ginko Biloba
    ... have been writing in this thread, ... have diabetics taking strange substances without ... consulting their GP first. ...
    (uk.people.disability)
  • Re: Extract data from Tables in Word documents to Access
    ... your rates for consulting or writing up the code. ... Prev by Date: ...
    (microsoft.public.word.vba.beginners)
  • Re: Extract data from Tables in Word documents to Access
    ... your rates for consulting or writing up the code. ... Prev by Date: ...
    (microsoft.public.word.vba.beginners)
  • Re: creating/copying files..
    ... with FileOutputStream and writing no bytes. ... http://mindprod.com Java custom programming, consulting and coaching. ... Prev by Date: ...
    (comp.lang.java.help)
  • need help to append data in an m file
    ... i need to read an m file and change data in few places of the existing ... i need to pick up the value 0.8(this i can pick using fseek) in ... any ideas in this regard will be highly beneficial for me ... ... i tried writing like this: ...
    (comp.soft-sys.matlab)