Solved

generating 16bits and 32bits??

Posted on 1999-01-06
2
139 Views
Last Modified: 2010-04-04
Hello!!

The question is: can I generate a 16bits AND a 32bits executable from the same source-code??

Thanks,
Marco Remmerde,
WARP11  Cap Gemini Netherlands
0
Comment
Question by:marco71
2 Comments
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 200 total points
ID: 1354812
Yes.

To generate the 16 bit app you will need to compile with Delphi 1 (shipped with all 32 bits versions of Delphi - D2, D3 & D4).

To generate the 32 bit version you will need to use D2, D3 or D4.

Their are a number of problems which will need to be dealt with by using IFDEFs eg:

{$IFDEF WIN32} // its the 32 bit build
// Do the 32 bit specific stuff here
{$ELSE} // its the 16 bit build
// do the 16 bit specific stuff here.
{$ENDIF}

You will notice a number of the components you can download from the net offer support for both 16 bit and 32 bit versions.

However - it is a lot of work and a significant maintenance hassle to do this. Sometimes its easier to do it with two different source trees. Issues like differences between component support for 16/32 bit can make life very sticky.

Cheers,

Raymond.
0
 

Author Comment

by:marco71
ID: 1354813
Thanks for your answer!!
I've already considered your answer by myself, but thanks anyway. I'm affraid that your answer is the only way to generate both a 16 bits and a 32 bits exe...


0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now