Solved

Screensaver - joining two programs into one

Posted on 1997-06-16
6
154 Views
Last Modified: 2010-04-04
This is probably a 'chestnut' but having made 2 programs (a control panel to write data to control.ini and another to read it and draw the patterns, respond to input and bring up password forms etc) how do I join them into a single .exe in Delphi 2 under NT4/W95?
I assume the new .dpr has to be modified and I know about checking for the /s option with paramstring etc, but how is everything joined together and only a single instance run?
Thanks in advance, Catherine.
0
Comment
Question by:mobius
  • 5
6 Comments
 

Author Comment

by:mobius
ID: 1337072
Adjusted points to 150
0
 

Author Comment

by:mobius
ID: 1337073
Edited text of question
0
 

Author Comment

by:mobius
ID: 1337074
Edited text of question
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 2

Accepted Solution

by:
icampbe1 earned 150 total points
ID: 1337075
Hi Catherine,

The easiest way to accomplish the combining of the two programs is to start with one of them (doesn't really matter which one) and then add the Unit (the pas, not the dpr) file of the other one to the first one.  You can use the + speed button.  That unit then becomes part of the first project.  You can then add the unit name of the second unit to the USES claus of the first.

What you do next, depends on what you're trying to accomplish in your program.  This however, will combine the two into one project and therefore one EXE.

Cheers,
Ian C. (Toronto)

0
 

Author Comment

by:mobius
ID: 1337076
Hello Ian, thanks for the quick reply. Perhaps I should have said more in the original question.

I know how to add a .pas to the uses clause as that's how I get the two main programs to call up the password boxes, aboutsaver info etc, as each is an otherwise independent program that's run in showmodal state by createapplication, but what I was after was a way of calling each of the two main programs from some sort of otherwise empty 'shell' which would have them in the uses clause, and then parse the command line to check for the /s option with the params function.

I'd already tried having everything in one large (and rather unwieldy) program and even got the /s parsing OK, so I'm fairly confident about that aspect, but although the new program ran perfectly as a .exe as soon as I changed it to a .scr the display control panel in NT4 kept calling the saver as soon as it was listed rather than when the setup button was pressed, and under W95 I kept getting multiple instances of the saver's control panel that appeared over and over again.

Hope this makes sense,
Regards,
Catherine

0
 

Author Comment

by:mobius
ID: 1337077
Why does the system say I accepted the answer when I didn't?
Also, you seems to have tane 15 points but I advertised 150 and I've been debited that amount for something that doesn't answer the original question.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question