delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/08/18/23:55:25

From: ebritten AT uci DOT edu (Eric Britten)
Subject: Re: Microsoft Foundation Classes
18 Aug 1997 23:55:25 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <33F893CD.13056BBE.cygnus.gnu-win32@uci.edu>
References: <ww02-BHRal52395 AT netaddress DOT usa DOT net>
Mime-Version: 1.0
X-Mailer: Mozilla 4.01 [en] (Win95; I)
Original-To: gnu-win32 AT cygnus DOT com
X-Priority: 3 (Normal)
Original-Sender: owner-gnu-win32 AT cygnus DOT com


> Is it possible to use MFC 4.1 using gnu-win32?  If so, how?
>

If you can get the source and compile it, I would say yes.  I compiled
OWL 2.0 a few months ago and wrote a simple program that worked.  OWL is
a class library that is different from MFC, however I did cut out the
multithreaded functionallity.  OWL does not use any compiler specific
keywords.  You only need templates and exception handling.

As long as GCC supports all the syntax conventions of MFC you can
compile it.  I know is uses a special keyword called afx_msg; it is used
for window message handling.  I am not sure if there is a work around
for this keyword.  This is your biggest problem to overcome.

You need the source because VC++ and Borland C++ use a different name
mangling conventions.  If you can get the source to compile, you can
then create static and dynamic link MFC libraries.  DLLs with GCC are
hard to create, I have had little luck with them.

> ____________________________________________________________________
> Get free e-mail and a permanent address at http://www.netaddress.com



-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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