delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/31/14:47:46

Newsgroups: comp.os.msdos.djgpp
From: rd5718 AT irix DOT bris DOT ac DOT uk (Rich Dawe)
Subject: Re: windows32api package vs rsxntdj1
Message-ID: <E4vsFv.13H@fsa.bris.ac.uk>
Sender: usenet AT fsa DOT bris DOT ac DOT uk (Usenet)
Organization: University of Bristol, England
References: <32f02570 DOT 1410427 AT news DOT deepsouth DOT co DOT nz>
Date: Fri, 31 Jan 1997 16:28:43 GMT
Lines: 45
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Kurt Hausler (kurt AT deepsouth DOT co DOT nz) wrote:
: Hi.  I have got both rsxntdj1 and the package windows32api-0.1.2 of
: the net in the last few days and I want to know the following:
: What are the advantages and disadvantages of each?

	You can distribute programs written with RSXNTDJ for free (i.e.
without source code), but those written with the GNU Win32 API are covered
under the GNU GPL (General Public Licence?). I think this means you have
to distribute your source code with the program, but it's best to see the
GNU site (http://www.gnu.org/). If you want to use RSXNTDJ to write
commercial programs, you need a licence.

	You need a compiler capable of compiling and linking Win32
programs, so you can't use the Win32 API by itself.

: Are they supposed to work together?

	I don't think they were specifically written to work together, but
they do. I've been using Winsock functions using Win32's Sockets.h. You
may need to hack a couple of the include files from RSXNTDJ to define the
types WINBOOL and something else I can't remember.

: I have got windows apps to compile under rsxntdj but I am unsure of
: how to set up the windows32-api package as it looks like it needs a
: UNIX style shell to run the setup script.  Any advice on this matter?

	Just unzip it, and chuck the include files in a directory that's in
your include path. You'll then need to generate import libraries for the
Win32 DLLs, which can be done using one of RSXNTDJ's utilities (it's
documented in the help file). Then you need to link this in, so that the
compiler can resolve the functions declared in the include files.

	Cheers,

	Rich Dawe

-- 
==============================================================================
 "You don't have to find the solution, you've got to understand the problem,
    and don't go hoping for a miracle." - 'Slight Return' by the Bluetones

              Rich Dawe - 2nd year Physicist @ Bristol Uni, UK
E-mail: rd5718 AT bristol DOT ac DOT uk        Web pages: http://irix.bris.ac.uk/~rd5718/
==============================================================================

- Raw text -


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