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
Solved

generating 16bits and 32bits??

Posted on 1999-01-06
2
143 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
delphi exception 7 68
Delphi XE10, MySQL Query 4 164
Working this component WebCopy with proxy, help 3 92
Print Graphic and Text to Epson TM-T88v 12 375
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

856 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