View Single Post
  #9  
Old 04-07-2005, 20:46
amigo amigo is offline
Friend
 
Join Date: Dec 2002
Posts: 30
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 1 Time in 1 Post
amigo Reputation: 0
I haven't seen the prog, but I think the key to problem is to find the SAVEAS proc inside the code - if it exists.
1. the standart API is GetSaveFileName so you have to find the proc with this API in the code and this will be probably the correct proc
2. then you have to look how the procs are linked to buttons (this is compiler-related) - reviewing the structure of procs, which work OK (help, about etc)
So you have to find ABOUT proc in code, and then the structure in disassembly where about button ID and ABOUT proc address are together
3. probably to saveas button the empty demo proc is linked
so it must be replaced with proper address

If GetSaveFileName is not used - maybe there is program own dialog in rsrc section (very rare)
If the saveas proc doesn't exist, you can insert the proc from working version, but because RVA of both versions are probably different - this is much bigger work (full disassembly without errors is needed - to enable reassembly)

Regards
amigo
Reply With Quote