Solved

Compiling 16bit with Delphi2

Posted on 1997-11-01
12
286 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
  • 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
indy tidtcpclient threading issue 8 63
How to fill array with TArray.Create? 14 77
Dev Express grid collapse 2 39
Firemonkey webbrowser scrollbars ? 1 29
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

932 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

11 Experts available now in Live!

Get 1:1 Help Now