Solved

generating 16bits and 32bits??

Posted on 1999-01-06
2
144 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi XE10 Round Image 2 192
Print Graphic and Text to Epson TM-T88v 12 475
Delphi...Split view - idea? 1 116
Microsoft Access 97 and Delphi XE2 9 73
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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…

733 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