Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4106
Number of posts: 14016

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Question about overlays Posted by oracletwo on 18 Dec 2012 at 6:50 AM
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.
Report
Re: Question about overlays - Question answered Posted by oracletwo on 18 Dec 2012 at 10:09 AM
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.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.