🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #25

C 32 bit and 16 bit DLL

#25
From: Luca Priorelli
Date: Wed, 28 Oct 1992 12:38
21 lines
1354 bytes
Can anybody tell me if it is possible to call a 16 bit DLL from
a 32 bit application?

Specific problem: I use a productive tool for building user interfaces.
This tool uses a proprietary library (DLL) written with MSC 6.
It then generates C code (from what I design) for MSC 6 that calls
the proprietary library. These calls are all _far _pascal and compiled
with -Gs -Alfu -FPc -Zp options. It is expected that the generated
code is compiled with these same options.

Now, I want to try to develop my DLL using a 32 bit compiler. But I think
I cannot call a 32 bit DLL from a main prog. compiled 16 bit. So I want
to compile the main prog. (the generated code) also with 32 bit compiler.

Can I do it with emx ot gcc? If not, can I do it with some other compiler?
If yes, what function prototype should I specify for the funcions in the
16bit DLL?

Hope all this makes some sense.

Luca Priorelli
Technical Details
Message-ID: <1992Oct28.123801.188905@ipgaix.unipg.it>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!rpi!ghost.dsi.unimi.it!ipgaix!dedalo.unipg.it!luca

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!rpi!ghost.dsi.unimi.it!ipgaix!dedalo.unipg.it!luca
From: luca@dedalo.unipg.it (Luca Priorelli)
Subject: C 32 bit and 16 bit DLL
Message-ID: <1992Oct28.123801.188905@ipgaix.unipg.it>
Sender: news@ipgaix.unipg.it (News Distribution System/9999999)
Nntp-Posting-Host: dedalo.unipg.it
Organization: Universita' di Perugia
Date: Wed, 28 Oct 1992 12:38:01 GMT
Lines: 21