Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Need Help: debug code with C

Need Help: debug code with C

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++game-devdebugging
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Patricio Tapia
    wrote on last edited by
    #1

    Hi I have a problem (sorry por my english) I need to make a Debug in C++ or ansi C Details: i have a project to get the "Character Name" from a game, so, i'm just need to apply a Debug Code. A friend give me that ASM Code (and works) 005F60D0 > \8D41 1C LEA EAX,DWORD PTR DS:[ECX+1C] 005F60D3 . 85C0 TEST EAX,EAX 005F60D5 . 74 06 JE SHORT Engine.005F60DD 005F60D7 . 66:8338 00 CMP WORD PTR DS:[EAX],0 005F60DB . 75 02 JNZ SHORT Engine.005F60DF i need to get the EAX value into a char value (from C) so: - how i can make a C code to get into the subprocess (a dll) and get the EAX value ??? google didn't give me a result :( PD: This is my first code debug

    R 1 Reply Last reply
    0
    • P Patricio Tapia

      Hi I have a problem (sorry por my english) I need to make a Debug in C++ or ansi C Details: i have a project to get the "Character Name" from a game, so, i'm just need to apply a Debug Code. A friend give me that ASM Code (and works) 005F60D0 > \8D41 1C LEA EAX,DWORD PTR DS:[ECX+1C] 005F60D3 . 85C0 TEST EAX,EAX 005F60D5 . 74 06 JE SHORT Engine.005F60DD 005F60D7 . 66:8338 00 CMP WORD PTR DS:[EAX],0 005F60DB . 75 02 JNZ SHORT Engine.005F60DF i need to get the EAX value into a char value (from C) so: - how i can make a C code to get into the subprocess (a dll) and get the EAX value ??? google didn't give me a result :( PD: This is my first code debug

      R Offline
      R Offline
      Russell
      wrote on last edited by
      #2

      use __asm to add assembly code in the C function. there, I think, you can type a line like: UINT MyVar; __asm{ ... move EAX MyVar; .... } (not sure on the sintax...take a look on web) :)


      Russell

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups