Afx.h and other MFC library
Konstantin Karganov
karganov at gmail.com
Tue Jun 28 14:43:40 BST 2011
Hi, some useful info for you:
MFC is highly windows specific library which deals mainly with GUI classes
(windows, buttons etc).
All that BOOL, DWORD, HANDLE etc are from windows.h which you'll also miss
on Linux.
If you don't need GUI but just basic types and posix functions, you can
still build you program, but need to rename your types to standard ones
(bool, int, long and so on.)
If you need MFC GUI you can also have that, there are some tools that allow
to build MFC applications for Linux, for example, Mainwin.
But it's a bit buggy and very expensive.
It depends on what do you have and how much effort and resources can you
spend. Anyway, you may just run your application with Wine.
And, all this is really offtopic in KDevelop mailing list.
On Tue, Jun 28, 2011 at 2:51 PM, Milian Wolff <mail at milianw.de> wrote:
> burinic at tiscali.it, 28.06.2011:
> > Hi,
> >
> > i'm translating a windows based application in linux base
> > applciation.
>
> Hi. Just a note: this is pretty much unrelated to KDevelop and hence
> off-topic
> for this list.
>
> > Source code uses afx.h library and others MFC library.
> >
> > So when i compile, afx.h and these libraries aren't found. If i remove
> > reference i got lot of errors (for example BOOL unknow word, DWORD unknow
> > word, . )
> >
> > So now i'm wondering.how can i solve this problem?
> >
> > Is there a new library that includes the MFC words like previous ones?
> >
> > Can you give me suggestions please?
>
> MFC is as the name suggests something windows specific. Look at
> alternatives
> like Qt or even GTK, but don't expect copies that give you the exact same
> feature set.
>
> Also: bool (lowercase) is the keyword for boolean types.
>
> bye
>
> --
> Milian Wolff
> mail at milianw.de
> http://milianw.de
>
> _______________________________________________
> kdevelop mailing list
> kdevelop at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop
>
>
--
Best regards,
Konstantin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20110628/df858532/attachment.html>
More information about the KDevelop
mailing list