Solved

Compiling 16bit with Delphi2

Posted on 1997-11-01
12
291 Views
Last Modified: 2010-04-04
...that is: i've been asked from a friend for an application, but i have Delphi2 on WinNT, and he has Win3.11.

So my questions:

1. how can i compile a 16bit application using Delphi2?

2. which Components am i not allowed to use? (i basically need Standard, Additional, Data Access and Data Controls components)

3. where can i find documentation on this topic?

Thanks, julio
0
Comment
Question by:julio011597
[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
  • 4
  • 2
  • 2
  • +4
12 Comments
 
LVL 5

Author Comment

by:julio011597
ID: 1349276
Edited text of question
0
 

Expert Comment

by:chrb
ID: 1349277
Normally you should have non problem compiling Delphi 1 progs in Delphi 2, but...
0
 
LVL 1

Expert Comment

by:fsanchez
ID: 1349278
Delphi2 only generates 32bit code. In Win3.11 you can use Win32s to execute 32bit applications, but the BDE doesn't work on Win32s. But the Delphi2 CD-ROM comes with a copy complete of Delphi1, which generates 16bit code, so you have to install Delphi1 and work with it.
0
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!

 
LVL 5

Author Comment

by:julio011597
ID: 1349279
Chrb, i intended to develop in Delphi2 and compile for Win3.11.

Fsanchez, thanks, that sounds reasonable, but i seem to remember that it is possible to do the trick from the shell, by invoking the compiler/linker with the right switches... but i cannot tell for sure.

-julio
0
 
LVL 1

Expert Comment

by:efortier
ID: 1349280
Julio,

I also have heard reports that you can use Win32 under Win3.1 and be able to run Delphi 2 compiled programs, but be warned that you must not use any controls on the Win95 or Win32 page, and that you must not make explicit calls to the Win32 API!

I have not tried this myself, but Let me know how it works.
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1349281
What about thunking your Win32 files to a 16bit DLL? Have seen somewhere on the net an article about that.
0
 
LVL 1

Accepted Solution

by:
lowlevel earned 150 total points
ID: 1349282
you can't. delphi2 generates 32-bit code.
delphi2 is bundled with delphi1 so people can write 16bit apps with delphi1.

If you insist on programming in delphi 2 instead of 1, get your friend to upgrade to windows95. It is (almost) impossible to do what you want, and if it isn't impossible you'd have to know a hell of a lot about programming to make it work.
0
 
LVL 1

Expert Comment

by:sassas081597
ID: 1349283
Look an answer for gk question: Compiling DOS programs with Delphi 2. It can help you.
0
 
LVL 5

Author Comment

by:julio011597
ID: 1349284
Thanks sassas, that's very interesting, but i need to compile to 16bit.

Lowlevel, sorry for the delay; i just need a last info: is there any problem in installing Delphi1 on a computer running WinNT where there's already Delphi 2 installed (BDE conflicts or such)?

-julio
0
 
LVL 1

Expert Comment

by:sassas081597
ID: 1349285
Hi julio!
You should not have any problems in installing Delphi1. However, it is not recommended to install it on a mashine with Delphi32 or Delphi 2(3). There might be some problems. Nevertheless, I'm not expert in this problem I know only that D2 and D3 cannot work on the same mashine..
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1349286
Hi julio,

You normally don't have to install D1 on your computer. You can run it directly from CD. But if you need to program a lot in D1, this is maybe not such a good idea.

ZifNab;
0
 
LVL 5

Author Comment

by:julio011597
ID: 1349287
Ok, thanks to you all for your kind help; i'd like i could give you all part of the points...

Cheers, julio
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

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…
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…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

726 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