Solved

Screensaver - joining two programs into one

Posted on 1997-06-16
6
148 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

785 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