public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* using MFC with cygwin
@ 2002-08-22  9:51 serj
  0 siblings, 0 replies; 5+ messages in thread
From: serj @ 2002-08-22  9:51 UTC (permalink / raw)
  To: cygwin

Hello,

I have unix console application. I want to use this application as a
back-end for windows GUI application. This GUI application is written
using MFC. I find out that there is no way to use cygwin *.o objects
and *.dll libraries in VC++ projects because of gcc and msvc compiler
uncompatibilities.

So i cannot use cygwin+gcc to compile my back-end and msvc to compile
GUI front-end. Am i right?

I cannot use msvc to compile entire project.

Can i compile MFC GUI application using cygwin+gcc? I tried to do it
but i have some problems:
Compiler cannot find MFC headers and some win32 headers like tchar.h.
I copy tchar.h to cygwin's win32 include directory and use gcc with
-I<path_to_mfc_headers> option.

But i still have problems:

/cygdrive/c/visualstudio/vc98/mfc/include/afx.h:621: variable or field `__fastca
ll' declared void
/cygdrive/c/visualstudio/vc98/mfc/include/afx.h:621: parse error before `('
/cygdrive/c/visualstudio/vc98/mfc/include/afx.h:1523: confused by earlier errors
, bailing out

So can i combine cygwin API functions with MFC?

-- 
Best regards,
 Serj                          mailto:serj@hea.iki.rssi.ru



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: using MFC with cygwin
@ 2002-12-12  8:48 Michael D. Crawford
  0 siblings, 0 replies; 5+ messages in thread
From: Michael D. Crawford @ 2002-12-12  8:48 UTC (permalink / raw)
  To: cygwin

I believe Metrowerks CodeWarrior for Windows comes with MFC.

http://www.metrowerks.com/

CodeWarrior is a much more standards-compliant compiler than VC++ and I think 
even more than g++, but it has a "compatibility mode" that allows it to compile 
a lot of broken VC++ code.

Maybe if you ported MFC, you could distribute a patch instead of your port.

Alternatively, maybe you could help me port ZooLib to Cygwin.  If you succeeded 
(or helped me to) the changes could be folded into the ZooLib distribution and 
everyone would benefit.  ZooLib is open source under the MIT license and is a 
lot nicer API than MFC.

http://zoolib.sourceforge.net/

some documentation can be had at http://www.goingware.com/zoolib/cookbook/

Best,

Michael D. Crawford
GoingWare Inc. - Expert Software Development and Consulting
http://www.goingware.com/
crawford@goingware.com

    Tilting at Windmills for a Better Tomorrow.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: using MFC with cygwin
@ 2002-12-12  7:51 lhall
  0 siblings, 0 replies; 5+ messages in thread
From: lhall @ 2002-12-12  7:51 UTC (permalink / raw)
  To: samuel, cygwin

Hm, someone's been digging around in the email archives! ;-)
Actually, that's good to see.

While I won't argue the slight semantic differences pointed out
here between what I said and this response, I believe we both agree 
it makes the same point, at least in the context of Cygwin.  Anyone
that wants to can try to port MFC to any Win32-based compiler they
want but they will end up with something restricted by the Microsoft
license.

Larry

Original Message:
-----------------
From: Samuel samuel@socal.rr.com
Date: Wed, 11 Dec 2002 20:13:52 -0800
To: cygwin@cygwin.com
Subject: Re: using MFC with cygwin


----- Original Message -----
From: <lhall@pop.ma.ultranet.com>
To: <serj@hea.iki.rssi.ru>; <cygwin@cygwin.com>
Sent: Thursday, August 22, 2002 6:59 AM
Subject: RE: using MFC with cygwin


> No one has ported MFC to any compiler besides VC++.  And while
> it could be done, the benefits are minimal since the Microsoft
> license would prevent you from distributing the result.


MFC was not ported to VC; it did not exist prior to VC.

I am 95% sure that (some) Borland compilers license (include) MFC. You might
be correct that it has not been ported, but Microsoft licenses it. The VC
compiler includes the MFC source code so it would not be too much work to
port (unlicensed). I assume that if source code existed that did the same
thing as MFC then it could be entirely legal.

I think the original question was about a console program that used MFC and
I would probably suggest not using MFC for that.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date: 11/14/2002


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: using MFC with cygwin
  2002-08-22 11:15 lhall
@ 2002-12-11 22:55 ` Samuel
  0 siblings, 0 replies; 5+ messages in thread
From: Samuel @ 2002-12-11 22:55 UTC (permalink / raw)
  To: cygwin

----- Original Message -----
From: <lhall@pop.ma.ultranet.com>
To: <serj@hea.iki.rssi.ru>; <cygwin@cygwin.com>
Sent: Thursday, August 22, 2002 6:59 AM
Subject: RE: using MFC with cygwin


> No one has ported MFC to any compiler besides VC++.  And while
> it could be done, the benefits are minimal since the Microsoft
> license would prevent you from distributing the result.


MFC was not ported to VC; it did not exist prior to VC.

I am 95% sure that (some) Borland compilers license (include) MFC. You might
be correct that it has not been ported, but Microsoft licenses it. The VC
compiler includes the MFC source code so it would not be too much work to
port (unlicensed). I assume that if source code existed that did the same
thing as MFC then it could be entirely legal.

I think the original question was about a console program that used MFC and
I would probably suggest not using MFC for that.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date: 11/14/2002


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: using MFC with cygwin
@ 2002-08-22 11:15 lhall
  2002-12-11 22:55 ` Samuel
  0 siblings, 1 reply; 5+ messages in thread
From: lhall @ 2002-08-22 11:15 UTC (permalink / raw)
  To: serj, cygwin

No one has ported MFC to any compiler besides VC++.  And while
it could be done, the benefits are minimal since the Microsoft
license would prevent you from distributing the result.

I'm not sure what problems you're refering to with regard to VC++
linking against Cygwin-made DLLs/LIBs.  This should be possible so
long as you take some care in not mixing C runtimes.

Larry

Original Message:
-----------------
From:  serj@hea.iki.rssi.ru
Date: Thu, 22 Aug 2002 17:29:02 +0400
To: cygwin@cygwin.com
Subject: using MFC with cygwin


Hello,

I have unix console application. I want to use this application as a
back-end for windows GUI application. This GUI application is written
using MFC. I find out that there is no way to use cygwin *.o objects
and *.dll libraries in VC++ projects because of gcc and msvc compiler
uncompatibilities.

So i cannot use cygwin+gcc to compile my back-end and msvc to compile
GUI front-end. Am i right?

I cannot use msvc to compile entire project.

Can i compile MFC GUI application using cygwin+gcc? I tried to do it
but i have some problems:
Compiler cannot find MFC headers and some win32 headers like tchar.h.
I copy tchar.h to cygwin's win32 include directory and use gcc with
-I<path_to_mfc_headers> option.

But i still have problems:

/cygdrive/c/visualstudio/vc98/mfc/include/afx.h:621: variable or field
`__fastca
ll' declared void
/cygdrive/c/visualstudio/vc98/mfc/include/afx.h:621: parse error before `('
/cygdrive/c/visualstudio/vc98/mfc/include/afx.h:1523: confused by earlier
errors
, bailing out

So can i combine cygwin API functions with MFC?

-- 
Best regards,
 Serj                          mailto:serj@hea.iki.rssi.ru



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-12-12 15:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-22  9:51 using MFC with cygwin serj
2002-08-22 11:15 lhall
2002-12-11 22:55 ` Samuel
2002-12-12  7:51 lhall
2002-12-12  8:48 Michael D. Crawford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).