www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/05/22:50:00

From: Weiqi Gao <weiqigao AT a DOT crl DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DLLs
Date: Sat, 05 Jul 1997 00:58:39 -0500
Organization: Spectrum Healthcare Services
Lines: 38
Message-ID: <33BDE28F.CE67FFF0@a.crl.com>
References: <33B8CD6B DOT 46F AT boat DOT bt DOT com> <33BD610E DOT 2567 AT pluto DOT njcc DOT com>
NNTP-Posting-Host: a116024.stl1.as.crl.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

@.unk wrote:
> Andrew Lord wrote:
> > Can anyone explain simply how to write DLLs in djgpp?
> ditto.

Short answer: Please read the FAQ 3.6 and 22.13 [I said it! :) ]

Long answer: To write a Win32 DLL that is callable from, say, MS Access
95, follow these steps:
1.  Get and install DJGPP v.2.01;
2.  Get and install MS Platform SDK (the Microsoft Web site only offers
the March 1997 version now);
3.  Get and install RSXNTDJ 1.3.1;
4.  Take a look at (and run make in) the
d:\rsxntdj\sample\dll\dll{crt,nrt,rt} directories.

[Note: RSXNTDJ 1.3.1 is released in May 1997, and therefore is not
covered in the FAQ yet.  With my limited experience with the RSXNTDJ
1.3.1 package, almost all the "con" points about (the previous version
of, and the predecessor to) it mentioned in the FAQ (doesn't work with
DJGPP v.2.01, cannot create DLLs, need to download the source from
elsewhere, resource compiler doesn't work, the <windows.h> hassle) are
gone!

The reliance on the MS Platform SDK headers seems problematic.  The ftp
URL mentioned in the RSXNTDJ 1.3.1 help file is no longer valid, and I
have to use the search button from Microsoft web site to find it
(http://www.microsoft.com/msdownload/platformsdk.htm).  And this is not
the same version that RSXNTDJ 1.3.1 expects, as the RSXNTDJ 1.3.1 patch
to the MS platform SDK does not run cleanly.

Two other issues are: the Windows SDK documentation assumes compiler
support of anonymous unions; and Windows 95 still relies on 16-bit DLLs
(e.g., MMSYSTEM.DLL).]

--
Weiqi Gao
weiqigao AT a DOT crl DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019