[comp.sys.ibm.pc] Are Turbo Pascal

jku@kolvi.hut.fi (Juha Kuusama) (04/11/88)

I Have a large application that is CRYING to get the user interface of 
a widows application. The problem is that it is written in Turbo Pascal
(version 4.0) and, as you know, the language for Windows is C.

The question: can a windows application be written in turbo pascal?

I rather not to buy the MS Windows Developers Toolkit to find out that the
answer is a definitely NO. I asked the finns already and got three types of
answers: YES, since TP 4 can link in external code; NO, since windows must
be programmed in C; and MAYBE.

So, if anybody KNOWS for sure, I would like to know. (Just for my peace of
mind: if yes, what special steps are involved in linking and other stages;
if no, why?)

Thanks.
--
Juha Kuusama, jku@kolvi.UUCP ( ...!mcvax!tut!kolvi!jku )

pmjc@ur-tut (Pam Arnold) (04/14/88)

In article <117@kolvi.hut.fi> jku@kolvi.UUCP (Juha Kuusama) writes:
>The question: can a windows application be written in turbo pascal?

I've done some Windows development, and I would say that the answer
is almost certainly NO. It's not just a question of linking in with
external libraries. Some Windows functions (such as those for dialog
boxes) have some special code inserted into the object modules by
the compiler, and only compilers that are totally 'Windows-aware'
can do this. Even with Microsoft C, a special compiler switch is
necessary to get this done.