Thread: Jumping into C++ Question - Getting EAX Registery value in my program

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by juan.valdez
    On line 15 I have "while ( i != 0 )", but if you notice I have i initialized right above there so not sure where you are going with this line of troubleshooting.
    No, you did not initialise i "right above there". You merely declared i without specifying an initial value before you used it in that loop condition.

    Quote Originally Posted by juan.valdez
    I see the number by just clicking on the exe file created by my compiler at the end of my program on line 73.
    On line 73, you call a function and print its return value to standard output. The "clicking on the exe file created by my compiler" basically means "running your program". As such, you're talking about the output of your program, yet you call it the "eax registry value".

    Quote Originally Posted by juan.valdez
    not sure where you are going with assembly, sounds like high level stuff to me.
    Well, what do you mean by "eax registry value"? What does "eax" mean to you? Did you really mean "registry" rather than "register"?
    Last edited by laserlight; 10-19-2013 at 08:41 AM.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 01-14-2013, 08:35 AM
  2. Registery read/write ?
    By Devil Panther in forum Windows Programming
    Replies: 3
    Last Post: 03-15-2004, 10:29 AM
  3. Windows 98 Registery... ?
    By jawwadalam in forum Tech Board
    Replies: 12
    Last Post: 10-16-2002, 02:37 PM
  4. Ms-Dos commands & The Win Registery
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 06-21-2002, 07:54 AM
  5. Registery with api?
    By ismael86 in forum Windows Programming
    Replies: 1
    Last Post: 05-14-2002, 10:28 AM

Tags for this Thread