?
Solved

generating 16bits and 32bits??

Posted on 1999-01-06
2
Medium Priority
?
149 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 600 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

Question has a verified solution.

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

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…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

762 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