Jump to content
  • Advertisement
Sign in to follow this  
sewar711

source code

This topic is 4084 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

The window positioning is probably part of the exe, as part of the resources, compiled with the code. If it is a standard Microsoft Window (not some custon in-game window), Using a window spy could be the solution. I'm not sure if this will allow you to modify the binary itself.

It can also be that the window position is dynamic, and adapts to screen resolution, and the window placement is dynamically computed in the code. That way, you will have no way of changing that.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by sewar711
This reply is for all the nice people how answere my question


lol.

If you can program, take a look at msdn at the windows hooks api.

Share this post


Link to post
Share on other sites
I usually find a barf bag to be a handy accessory when
viewing C++ code. Also a hammer to hit myself over the
head with.

Share this post


Link to post
Share on other sites
You're going to need to learn assembly and pick up a program like Soft iCE. But get a few years of programming experience under your belt before you try this.

What you want to do is _very_ hard.

-me

Share this post


Link to post
Share on other sites
Quote:
Original post by Palidine
You're going to need to learn assembly and pick up a program like Soft iCE.

Using SoftICE (or any kernel debugger, for that matter) would be cracking this nut with an asteroid. A user-mode debugger such as OllyDbg would be better-suited.

But before you get into disassembling anything, try to find out what language or tool compiler and linker the program was created with. If it's something mainstream, then there will probably be a tool already out there that's capable of extracting and modifying the resource script/tree.

I'd recommend you get hold of a copy of PeID. It's free, and it has a huge database of PE fingerprints that can tell you what assembler, compiler or other was used to build the executable. From here, you'll be far better-equipped to mess around with the dialog parameters. Report back with your findings and anything else you know about the target, and we can direct you further.

Edit: I just realised we're talking C++.

Admiral

Share this post


Link to post
Share on other sites
I downloaded the Peid..It was nice
And when I loaded the exe (empiresx.exe) I got the following info.
Microsoft Visual C++ 6.0
Entrypoint: 00128F78
File Offset:00128F78
First Bytes: 55,8B,EC,6A
Linker Info: 6.0
Subsystem :Win32 GUI
Now where do I go from here?

Share this post


Link to post
Share on other sites
Quote:
Original post by Palidine
You're going to need to learn assembly and pick up a program like Soft iCE. But get a few years of programming experience under your belt before you try this.

What you want to do is _very_ hard.

-me


Any link to download softice for xp
Regards

Share this post


Link to post
Share on other sites
If it was linked using Visual Studio 6, then the dialogs may well use standard ActiveX scripts. Have a look at Resource Hacker. It's a freeware .rsrc viewer and editor, capable of modifying such scripts. Fire it up with the target executable and have a look in the Dialogs branch. If the dialog you're looking for is in there, changing it to your liking should be childsplay.

If Resource Hacker is no help, then it's likely that the dialogs are created dynamically in code. In this case you will have to get your hands dirty with a debugger.

Edit:
Quote:
Original post by sewar711
Any link to download softice for xp?

First, see my comment regarding SoftICE earlier. It's difficult enough to learn to use a friendly debugger such as OllyDbg, let alone a car-crash of a kernel debugger*.

Second, note that SoftICE isn't free. In fact, it is part of a very expensive driver development suite.

Third, understand that SoftICE is barely compatible with Windows XP, and simply having it installed causes many applications to refuse to run. I regularly have nightmares about installing SoftICE.

Admiral

* Perhaps that's not fair. SoftICE is very good in the light of its competition. It's the best of a bad bunch, I guess.

Share this post


Link to post
Share on other sites
Quote:
Original post by TheAdmiral
If it was linked using Visual Studio 6, then the dialogs may well use standard ActiveX scripts. Have a look at Resource Hacker. It's a freeware .rsrc viewer and editor, capable of modifying such scripts. Fire it up with the target executable and have a look in the Dialogs branch. If the dialog you're looking for is in there, changing it to your liking should be childsplay.

If Resource Hacker is no help, then it's likely that the dialogs are created dynamically in code. In this case you will have to get your hands dirty with a debugger.


The Resource tools of PE Explorer are top notch. That tool also identifies the compiler used to build the exe.

@sewar711, if you weren't able to find the dialog resource using PE Explorer, it could be that window that pops up isn't a dialog window at all but a ordinary window with child windows etc. If that's the case, you'll probably need to hook that window in order to move it. To do that you need to identify the window class using a window spy tool, like WinSpy++. In fact, WinSpy++ will let you move any window, so you won't need to write a hook program at all. That tool won't permanently move the window. It will reappear in the same place the next time you run the program. If it turns out that the window isn't a window at all but simply a message box (ie the results of a call to MessageBox), WinSpy++ will be able to move that too, because message boxes are windows too.


Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!