Is there a way to make a program that reads another programs cases?

This is a discussion on Is there a way to make a program that reads another programs cases? within the Windows Programming forums, part of the Platform Specific Boards category; Is there a way to make a program that reads another programs cases? Thanks, August...

  1. #1
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342

    Question Is there a way to make a program that reads another programs cases?

    Is there a way to make a program that reads another programs cases?

    Thanks, August

  2. #2
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    970
    If you're talking about switch-case statements, I don't think so. When your program is compiled, all your control structures are just converted to jump operations in the binary (.exe).

    If you're talking about intercepting WM_XXX messages from a window's window procedure, you can use a program like winspector or winspy++.

  3. #3
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    You where right the second guess, and I have WinSpy++ already, and I can allready activate a programs WM statement, I just want to be read all of the WM statements that are in that program. Could I do that?

  4. #4
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,261
    You wouldn't really be able to find out how the program handles them, no. As Dante has said, when you compile a program all code statements are translated into equivalent machine code, with a modern optimising compiler there isn't usually a 1:1 correlation between machine code fragments and code fragments, so you'd have to just disassemble from the start of the WindowProc function.

    In other words, unless you're prepared to spend months designing and coding a mechanism to do this, no.

  5. #5
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    Okay, thanks anyway.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I need the code of few programs in c++.plzzzzz help...plzzz
    By NAVINKR20 in forum C++ Programming
    Replies: 1
    Last Post: 05-08-2009, 09:13 AM
  2. A very long list of questions... maybe to long...
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-16-2007, 05:36 AM
  3. how to make my program run on windows start up
    By kantze in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 03-24-2007, 11:14 AM
  4. how do you make a program send data to the printer?
    By Sintu in forum C++ Programming
    Replies: 19
    Last Post: 10-20-2005, 07:22 PM
  5. any suggestions on how to make this program smaller?
    By bajan_elf in forum C++ Programming
    Replies: 4
    Last Post: 05-12-2003, 03:24 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21