Qt-interest Archive, February 2007
Qt and MFC with Mainsoft
Pages: Prev | 1 | 2 | Next
Message 1 in thread
Hi ,
Has anyone tried backporting QT with MFC windows applications on UNIX
using Mainsoft ?
Does it work ?
Thnx
Prateek
Message 2 in thread
Prateek Tiwari wrote:
>
> Has anyone tried backporting QT with MFC windows applications on UNIX
> using Mainsoft ?
> Does it work ?
>
I'm not quite sure what you mean by "backporting" in this case. Do you
mean Qt itself or your app?
If it's in reference to your app, there are hundreds of applications
that used to be written in MFC and have been successfully ported to Qt.
These ported apps are then instantly crossplatform :) Infact, porting
MFC apps is one of the things that the company I work for (ICS) does
quite often.
MainWin by MainSoft is an implementation of MFC on X11. Which means that
you effectively have an MFC app that works on windows and happens to
work on X11 with the MainWin libs.
If you mean porting Qt/Windows to X11 using the MainWin libs, then that
would be pointless since you should use Qt/X11 ;)
--Justin
begin:vcard
begin:vcard
fn:Justin Noel
n:Noel;Justin
org:ICS;Engineering
adr:;;54B Middlesex Trpk;Bedford;MA;01730;USA
email;internet:justin@xxxxxxx
title:Sr. Consulting Engineer / Certified Qt Instructor
tel;work:(617) 621-0060
url:http://www.ics.com
version:2.1
end:vcard
Message 3 in thread
let me clarify my question.
Suppose you have a MFC application on windows and to use that app on
UNIX you port it using mainsoft.
Now you want to write a plugin dll for that application in QT.
The Qt/MFC migration framework allows us to do so.
What I want to ask is will this MFC application and QT dll, which is
written on windows,
be ported back to UNIX using mainsoft ? or how will this combo work for
UNIX ?
Thnx
Prateek
-----Original Message-----
From: Justin Noel [mailto:justin@xxxxxxx]
Sent: Wednesday, February 07, 2007 7:37 PM
To: QtList
Subject: Re: Qt and MFC with Mainsoft
Prateek Tiwari wrote:
>
> Has anyone tried backporting QT with MFC windows applications on UNIX
> using Mainsoft ?
> Does it work ?
>
I'm not quite sure what you mean by "backporting" in this case. Do you
mean Qt itself or your app?
If it's in reference to your app, there are hundreds of applications
that used to be written in MFC and have been successfully ported to Qt.
These ported apps are then instantly crossplatform :) Infact, porting
MFC apps is one of the things that the company I work for (ICS) does
quite often.
MainWin by MainSoft is an implementation of MFC on X11. Which means that
you effectively have an MFC app that works on windows and happens to
work on X11 with the MainWin libs.
If you mean porting Qt/Windows to X11 using the MainWin libs, then that
would be pointless since you should use Qt/X11 ;)
--Justin
--
[ signature omitted ]
Message 4 in thread
Prateek Tiwari wrote:
> let me clarify my question.
>
> Suppose you have a MFC application on windows and to use that app on
> UNIX you port it using mainsoft.
> Now you want to write a plugin dll for that application in QT.
>
> The Qt/MFC migration framework allows us to do so.
>
> What I want to ask is will this MFC application and QT dll, which is
> written on windows,
> be ported back to UNIX using mainsoft ? or how will this combo work for
> UNIX ?
>
>
I do not think you are going to find much expertise in this area.
However, while it sounds possible to build Qt/Windows under MainWin
since it offers very good MFC compat on X11, I'm going to assume that it
would be entirely unsupported by Trolltech. Much like Qt/X11 under Cygwin.
--Justin
begin:vcard
begin:vcard
fn:Justin Noel
n:Noel;Justin
org:ICS;Engineering
adr:;;54B Middlesex Trpk;Bedford;MA;01730;USA
email;internet:justin@xxxxxxx
title:Sr. Consulting Engineer / Certified Qt Instructor
tel;work:(617) 621-0060
url:http://www.ics.com
version:2.1
end:vcard
Message 5 in thread
> Prateek Tiwari wrote:
> > let me clarify my question.
> >
> > Suppose you have a MFC application on windows and to use that app on
> > UNIX you port it using mainsoft.
> > Now you want to write a plugin dll for that application in QT.
> >
> > The Qt/MFC migration framework allows us to do so.
> >
> > What I want to ask is will this MFC application and QT dll, which is
> > written on windows,
> > be ported back to UNIX using mainsoft ? or how will this combo work
for
> > UNIX ?
> >
> >
>
> I do not think you are going to find much expertise in this area.
> However, while it sounds possible to build Qt/Windows under MainWin
> since it offers very good MFC compat on X11, I'm going to assume that
it
> would be entirely unsupported by Trolltech. Much like Qt/X11 under
> Cygwin.
>
> --Justin
I happen to be working on a similar issue at my company... Its be a very
trying experience to say the least... Mainly due to the limitations of
the MainWin port (always 1-2 years behind current MFC)
Also, it makes for a very completed build system... Besides QMake, you
now need the mainsoft make.
Scott
--
[ signature omitted ]
Message 6 in thread
So you mean that for the QT dll you would have to do a Qmake on UNIX and
for the
MFC app you will have to do a mainsoft make ? and the QT dll built using
Qmake will be linked to the mainsoft built application ?
Is that how it is ? Or you build QT/windows using Mainsoft ?
--Prateek
-----Original Message-----
From: Scott Aron Bloom [mailto:scott@xxxxxxxxxxxx]
Sent: Wednesday, February 07, 2007 10:00 PM
To: Justin Noel; QtList
Subject: RE: Qt and MFC with Mainsoft
> Prateek Tiwari wrote:
> > let me clarify my question.
> >
> > Suppose you have a MFC application on windows and to use that app on
> > UNIX you port it using mainsoft.
> > Now you want to write a plugin dll for that application in QT.
> >
> > The Qt/MFC migration framework allows us to do so.
> >
> > What I want to ask is will this MFC application and QT dll, which is
> > written on windows, be ported back to UNIX using mainsoft ? or how
> > will this combo work
for
> > UNIX ?
> >
> >
>
> I do not think you are going to find much expertise in this area.
> However, while it sounds possible to build Qt/Windows under MainWin
> since it offers very good MFC compat on X11, I'm going to assume that
it
> would be entirely unsupported by Trolltech. Much like Qt/X11 under
> Cygwin.
>
> --Justin
I happen to be working on a similar issue at my company... Its be a very
trying experience to say the least... Mainly due to the limitations of
the MainWin port (always 1-2 years behind current MFC)
Also, it makes for a very completed build system... Besides QMake, you
now need the mainsoft make.
Scott
--
[ signature omitted ]
Message 7 in thread
Esssentially... yes to both... We are still under development... but the
test apps we have created, use QMake to create the QT side, in a stand
alone DLL, and mainsoft to link it all together.
Scott
> -----Original Message-----
> From: Prateek Tiwari [mailto:ptiwari@xxxxxxxxxxx]
> Sent: Wednesday, February 07, 2007 8:59 AM
> To: Scott Aron Bloom; QtList
> Subject: RE: Qt and MFC with Mainsoft
>
> So you mean that for the QT dll you would have to do a Qmake on UNIX
and
> for the
> MFC app you will have to do a mainsoft make ? and the QT dll built
using
>
> Qmake will be linked to the mainsoft built application ?
>
> Is that how it is ? Or you build QT/windows using Mainsoft ?
>
> --Prateek
>
> -----Original Message-----
> From: Scott Aron Bloom [mailto:scott@xxxxxxxxxxxx]
> Sent: Wednesday, February 07, 2007 10:00 PM
> To: Justin Noel; QtList
> Subject: RE: Qt and MFC with Mainsoft
>
> > Prateek Tiwari wrote:
> > > let me clarify my question.
> > >
> > > Suppose you have a MFC application on windows and to use that app
on
>
> > > UNIX you port it using mainsoft.
> > > Now you want to write a plugin dll for that application in QT.
> > >
> > > The Qt/MFC migration framework allows us to do so.
> > >
> > > What I want to ask is will this MFC application and QT dll, which
is
>
> > > written on windows, be ported back to UNIX using mainsoft ? or how
> > > will this combo work
> for
> > > UNIX ?
> > >
> > >
> >
> > I do not think you are going to find much expertise in this area.
> > However, while it sounds possible to build Qt/Windows under
MainWin
> > since it offers very good MFC compat on X11, I'm going to assume
that
> it
> > would be entirely unsupported by Trolltech. Much like Qt/X11 under
> > Cygwin.
> >
> > --Justin
>
> I happen to be working on a similar issue at my company... Its be a
very
> trying experience to say the least... Mainly due to the limitations of
> the MainWin port (always 1-2 years behind current MFC)
>
> Also, it makes for a very completed build system... Besides QMake, you
> now need the mainsoft make.
>
> Scott
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
--
[ signature omitted ]
Message 8 in thread
Ok. But I still wonder how do you link together QT dll and MFC app using
mainsoft ?
Have you also ported the QT/MFC migration framework on UNIX ?
I do not think QT/MFC migration framework on UNIX is supported by
Trolltech..
--Prateek
-----Original Message-----
From: Scott Aron Bloom [mailto:scott@xxxxxxxxxxxx]
Sent: Wednesday, February 07, 2007 10:48 PM
To: Prateek Tiwari; QtList
Subject: RE: Qt and MFC with Mainsoft
Esssentially... yes to both... We are still under development... but the
test apps we have created, use QMake to create the QT side, in a stand
alone DLL, and mainsoft to link it all together.
Scott
> -----Original Message-----
> From: Prateek Tiwari [mailto:ptiwari@xxxxxxxxxxx]
> Sent: Wednesday, February 07, 2007 8:59 AM
> To: Scott Aron Bloom; QtList
> Subject: RE: Qt and MFC with Mainsoft
>
> So you mean that for the QT dll you would have to do a Qmake on UNIX
and
> for the
> MFC app you will have to do a mainsoft make ? and the QT dll built
using
>
> Qmake will be linked to the mainsoft built application ?
>
> Is that how it is ? Or you build QT/windows using Mainsoft ?
>
> --Prateek
>
> -----Original Message-----
> From: Scott Aron Bloom [mailto:scott@xxxxxxxxxxxx]
> Sent: Wednesday, February 07, 2007 10:00 PM
> To: Justin Noel; QtList
> Subject: RE: Qt and MFC with Mainsoft
>
> > Prateek Tiwari wrote:
> > > let me clarify my question.
> > >
> > > Suppose you have a MFC application on windows and to use that app
on
>
> > > UNIX you port it using mainsoft.
> > > Now you want to write a plugin dll for that application in QT.
> > >
> > > The Qt/MFC migration framework allows us to do so.
> > >
> > > What I want to ask is will this MFC application and QT dll, which
is
>
> > > written on windows, be ported back to UNIX using mainsoft ? or how
> > > will this combo work
> for
> > > UNIX ?
> > >
> > >
> >
> > I do not think you are going to find much expertise in this area.
> > However, while it sounds possible to build Qt/Windows under
MainWin
> > since it offers very good MFC compat on X11, I'm going to assume
that
> it
> > would be entirely unsupported by Trolltech. Much like Qt/X11 under
> > Cygwin.
> >
> > --Justin
>
> I happen to be working on a similar issue at my company... Its be a
very
> trying experience to say the least... Mainly due to the limitations of
> the MainWin port (always 1-2 years behind current MFC)
>
> Also, it makes for a very completed build system... Besides QMake, you
> now need the mainsoft make.
>
> Scott
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
--
[ signature omitted ]
Message 9 in thread
I haven't gotten it working yet :( But yes, I am porting the QT/MFC
framework under mainsoft.
Scott
> -----Original Message-----
> From: Prateek Tiwari [mailto:ptiwari@xxxxxxxxxxx]
> Sent: Wednesday, February 07, 2007 8:56 PM
> To: Scott Aron Bloom; QtList
> Subject: RE: Qt and MFC with Mainsoft
>
> Ok. But I still wonder how do you link together QT dll and MFC app
using
> mainsoft ?
> Have you also ported the QT/MFC migration framework on UNIX ?
>
> I do not think QT/MFC migration framework on UNIX is supported by
> Trolltech..
>
> --Prateek
>
> -----Original Message-----
> From: Scott Aron Bloom [mailto:scott@xxxxxxxxxxxx]
> Sent: Wednesday, February 07, 2007 10:48 PM
> To: Prateek Tiwari; QtList
> Subject: RE: Qt and MFC with Mainsoft
>
> Esssentially... yes to both... We are still under development... but
the
> test apps we have created, use QMake to create the QT side, in a stand
> alone DLL, and mainsoft to link it all together.
>
> Scott
>
> > -----Original Message-----
> > From: Prateek Tiwari [mailto:ptiwari@xxxxxxxxxxx]
> > Sent: Wednesday, February 07, 2007 8:59 AM
> > To: Scott Aron Bloom; QtList
> > Subject: RE: Qt and MFC with Mainsoft
> >
> > So you mean that for the QT dll you would have to do a Qmake on UNIX
> and
> > for the
> > MFC app you will have to do a mainsoft make ? and the QT dll built
> using
> >
> > Qmake will be linked to the mainsoft built application ?
> >
> > Is that how it is ? Or you build QT/windows using Mainsoft ?
> >
> > --Prateek
> >
> > -----Original Message-----
> > From: Scott Aron Bloom [mailto:scott@xxxxxxxxxxxx]
> > Sent: Wednesday, February 07, 2007 10:00 PM
> > To: Justin Noel; QtList
> > Subject: RE: Qt and MFC with Mainsoft
> >
> > > Prateek Tiwari wrote:
> > > > let me clarify my question.
> > > >
> > > > Suppose you have a MFC application on windows and to use that
app
> on
> >
> > > > UNIX you port it using mainsoft.
> > > > Now you want to write a plugin dll for that application in QT.
> > > >
> > > > The Qt/MFC migration framework allows us to do so.
> > > >
> > > > What I want to ask is will this MFC application and QT dll,
which
> is
> >
> > > > written on windows, be ported back to UNIX using mainsoft ? or
how
>
> > > > will this combo work
> > for
> > > > UNIX ?
> > > >
> > > >
> > >
> > > I do not think you are going to find much expertise in this area.
> > > However, while it sounds possible to build Qt/Windows under
> MainWin
> > > since it offers very good MFC compat on X11, I'm going to assume
> that
> > it
> > > would be entirely unsupported by Trolltech. Much like Qt/X11
under
> > > Cygwin.
> > >
> > > --Justin
> >
> > I happen to be working on a similar issue at my company... Its be a
> very
> > trying experience to say the least... Mainly due to the limitations
of
>
> > the MainWin port (always 1-2 years behind current MFC)
> >
> > Also, it makes for a very completed build system... Besides QMake,
you
>
> > now need the mainsoft make.
> >
> > Scott
> >
> > --
> > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
with
>
> > "unsubscribe" in the subject or the body.
> > List archive and information:
http://lists.trolltech.com/qt-interest/
--
[ signature omitted ]
Message 10 in thread
There is another part of the puzzle..
QT/MFC framework provides a soltion for a QT dll into MFC app.
What about MFC dll in a QT Application ?
How does that work ?
--Prateek
-----Original Message-----
From: Scott Aron Bloom [mailto:scott@xxxxxxxxxxxx]
Sent: Thursday, February 08, 2007 10:36 AM
To: Prateek Tiwari; QtList
Subject: RE: Qt and MFC with Mainsoft
I haven't gotten it working yet :( But yes, I am porting the QT/MFC
framework under mainsoft.
Scott
> -----Original Message-----
> From: Prateek Tiwari [mailto:ptiwari@xxxxxxxxxxx]
> Sent: Wednesday, February 07, 2007 8:56 PM
> To: Scott Aron Bloom; QtList
> Subject: RE: Qt and MFC with Mainsoft
>
> Ok. But I still wonder how do you link together QT dll and MFC app
using
> mainsoft ?
> Have you also ported the QT/MFC migration framework on UNIX ?
>
> I do not think QT/MFC migration framework on UNIX is supported by
> Trolltech..
>
> --Prateek
>
> -----Original Message-----
> From: Scott Aron Bloom [mailto:scott@xxxxxxxxxxxx]
> Sent: Wednesday, February 07, 2007 10:48 PM
> To: Prateek Tiwari; QtList
> Subject: RE: Qt and MFC with Mainsoft
>
> Esssentially... yes to both... We are still under development... but
the
> test apps we have created, use QMake to create the QT side, in a stand
> alone DLL, and mainsoft to link it all together.
>
> Scott
>
> > -----Original Message-----
> > From: Prateek Tiwari [mailto:ptiwari@xxxxxxxxxxx]
> > Sent: Wednesday, February 07, 2007 8:59 AM
> > To: Scott Aron Bloom; QtList
> > Subject: RE: Qt and MFC with Mainsoft
> >
> > So you mean that for the QT dll you would have to do a Qmake on UNIX
> and
> > for the
> > MFC app you will have to do a mainsoft make ? and the QT dll built
> using
> >
> > Qmake will be linked to the mainsoft built application ?
> >
> > Is that how it is ? Or you build QT/windows using Mainsoft ?
> >
> > --Prateek
> >
> > -----Original Message-----
> > From: Scott Aron Bloom [mailto:scott@xxxxxxxxxxxx]
> > Sent: Wednesday, February 07, 2007 10:00 PM
> > To: Justin Noel; QtList
> > Subject: RE: Qt and MFC with Mainsoft
> >
> > > Prateek Tiwari wrote:
> > > > let me clarify my question.
> > > >
> > > > Suppose you have a MFC application on windows and to use that
app
> on
> >
> > > > UNIX you port it using mainsoft.
> > > > Now you want to write a plugin dll for that application in QT.
> > > >
> > > > The Qt/MFC migration framework allows us to do so.
> > > >
> > > > What I want to ask is will this MFC application and QT dll,
which
> is
> >
> > > > written on windows, be ported back to UNIX using mainsoft ? or
how
>
> > > > will this combo work
> > for
> > > > UNIX ?
> > > >
> > > >
> > >
> > > I do not think you are going to find much expertise in this area.
> > > However, while it sounds possible to build Qt/Windows under
> MainWin
> > > since it offers very good MFC compat on X11, I'm going to assume
> that
> > it
> > > would be entirely unsupported by Trolltech. Much like Qt/X11
under
> > > Cygwin.
> > >
> > > --Justin
> >
> > I happen to be working on a similar issue at my company... Its be a
> very
> > trying experience to say the least... Mainly due to the limitations
of
>
> > the MainWin port (always 1-2 years behind current MFC)
> >
> > Also, it makes for a very completed build system... Besides QMake,
you
>
> > now need the mainsoft make.
> >
> > Scott
> >
> > --
> > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
with
>
> > "unsubscribe" in the subject or the body.
> > List archive and information:
http://lists.trolltech.com/qt-interest/
--
[ signature omitted ]
Message 11 in thread
Prateek Tiwari schrieb:
> ...
> What about MFC dll in a QT Application ?
>
> How does that work ?
Yes. You can link anything you want together with your C++ application
(which also happens to link against the Qt DLL).
If on the other hand your MFC dll expects some "MFC event queue"
running, then you might have troubles.
Cheers, Oliver
--
[ signature omitted ]
Message 12 in thread
OK.
Still wont we need an equivalent classes like QMfcApp and QWinWidget
(They map MFC controls to QT widgets and syncronise QT and MFC message
loops.) ?
Also you would have to somehow make MFC understand the QtApplication.
What are your views ?
--Prateek
-----Original Message-----
From: Till Oliver Knoll [mailto:oliver.knoll@xxxxxxxxxxx]
Sent: Thursday, February 08, 2007 4:16 PM
To: Qt Interest List
Subject: Re: Qt and MFC with Mainsoft
Prateek Tiwari schrieb:
> ...
> What about MFC dll in a QT Application ?
>
> How does that work ?
Yes. You can link anything you want together with your C++ application
(which also happens to link against the Qt DLL).
If on the other hand your MFC dll expects some "MFC event queue"
running, then you might have troubles.
Cheers, Oliver
--
[ signature omitted ]
Message 13 in thread
"Prateek Tiwari" <ptiwari@xxxxxxxxxxx> wrote in message
news:B77990334B2BA445A4B3109828BEFF140311B22E@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
> OK.
> Still wont we need an equivalent classes like QMfcApp and QWinWidget
> (They map MFC controls to QT widgets and syncronise QT and MFC message
> loops.) ?
See QWinHost.
> Also you would have to somehow make MFC understand the QtApplication.
>
> What are your views ?
Qt runs a standard Win32 event loop. However, just as Qt has some stuff on
top of it (the Qt event queue, namely) MFC has also some stuff on top of
it, i.e. OnIdle handling and "PreTranslateAccelerator" etc. Those elements
will stop working if your application runs a standard Qt event loop.
So your MFC DLL has to hook MFC specific parts of the event loop into the
existing Win32 event loop - your MFC DLL cannot rely on the application
loading it to be a Qt or MFC application, just as the Qt DLL cannot rely
on the application loading it being an MFC or Qt app.
To do that you probably have to be familiar with MFC and Win32, but not
with Qt.
Volker
-----Original Message-----
From: Till Oliver Knoll [mailto:oliver.knoll@xxxxxxxxxxx]
Sent: Thursday, February 08, 2007 4:16 PM
To: Qt Interest List
Subject: Re: Qt and MFC with Mainsoft
Prateek Tiwari schrieb:
> ...
> What about MFC dll in a QT Application ?
>
> How does that work ?
Yes. You can link anything you want together with your C++ application
(which also happens to link against the Qt DLL).
If on the other hand your MFC dll expects some "MFC event queue"
running, then you might have troubles.
Cheers, Oliver
--
[ signature omitted ]
Message 14 in thread
Prateek Tiwari schrieb:
> OK.
> Still wont we need an equivalent classes like QMfcApp and QWinWidget
> (They map MFC controls to QT widgets and syncronise QT and MFC message
> loops.) ?
>
> Also you would have to somehow make MFC understand the QtApplication.
>
> What are your views ?
Well, isn't that what QWinHost is for? Take a look into the
QtWinMigration docs, under "Hosting a Win32 window in a Qt application".
Martin
--
[ signature omitted ]
Message 15 in thread
Hi
I think what Prateek is looking for is this scenario.
He has an existing MFC user/extension dll that
implements some dialogs. Now he wants to reuse
these dialogs as is from a new application that he
is building using QT. I am not sure if that will work
using QWinHost as QWinHost will probably help
him host a dialog created in WinAPI and not using
MFC.
Thanks
Pankaj
On 2/8/07, Martin Gebert <Martin.Gebert@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Prateek Tiwari schrieb:
> > OK.
> > Still wont we need an equivalent classes like QMfcApp and QWinWidget
> > (They map MFC controls to QT widgets and syncronise QT and MFC message
> > loops.) ?
> >
> > Also you would have to somehow make MFC understand the QtApplication.
> >
> > What are your views ?
>
> Well, isn't that what QWinHost is for? Take a look into the
> QtWinMigration docs, under "Hosting a Win32 window in a Qt application".
>
> Martin
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]
Pages: Prev | 1 | 2 | Next