Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Question about overlays

oracletwooracletwo Posts: 14Member
Greetings. I have a program and the overlay (a unit) it uses in the same directory and it runs fine as long as the overlay stays there with the program. If I join them in DOS with
"copy/b myprog.exe+myprog.ovr" the program gets larger and then runs okay but only if the ovr file is still there. I thought the whole point of this DOS command was to avoid needing separate files. Even my TP7 books say to use that exact command to join an executable and its overlay. Any comments? Thanx.

Comments

  • oracletwooracletwo Posts: 14Member
    I was really having problems attaching an overlay to an executable program so that the program would run without a separate overlay file. I just found out that you first have to compile the program to disk with the 1s initialization being (of course!) OvrInit'myprog.ovr'). THEN you have to compile again, using OvrInit('myprog.EXE'). Then you go to DOS and join them with "copy /b myprog.exe+myprog.ovr". After that myprog.exe will run fine without myprog.ovr being in the neighborhood. It was really irritating that my TP books didn't explain this. You also have to make sure that debugging is turned off.
Sign In or Register to comment.