Re: Cross platform C++ base library?

Tech-Archive recommends: Fix windows errors by optimizing your registry



"Alan Carre" <alan@xxxxxxxxxxxxxxxxx> wrote in message news:OJ6ggDQYJHA.1188@xxxxxxxxxxxxxxxxxxxxxxx
I don't know if it's stealing, but why not just clip out those things from MFC that you like and try to create a scenario such that it compiles and runs without all the other junk. Things like CString and CList can be pretty much be clipped-out compiled their own; ie. you don't need any of the windows wrapper stuff to use the containers (lists, strings, maps) and it's all very efficient and well-tested code.


This used to be easy (you could even just take cstring.h and cstring.cpp and compile them directly into a non-MFC project), but then MS refactored these things into ATL, and then it became very hard.


But like I say, not sure if that's allowed. Maybe you have to ask permission from Msoft or something? I mean permission to base a library on *just a subsection of MFC*. You're allowed to *use* MFC so I don't see why it would be illegal "in theory", as long as you're not selling or publishing it.

But ... dunno. I'm not a lawyer.


Thanks Alan. At this point I"m looking for a ready-to use library and not have to fight to get MS stuff to build with GNU, etc., and you're right, the licensing may be an issue. I don't think using MFC source code in a cross platform manner is going to work.

I see wxWidgets has a wxBase library which looks promising.

Thanks,
David


.



Relevant Pages

  • Re: Assertion failed in appui3.cpp, dlgcore.cpp, afxwin2.inl
    ... > been charged with the task of maintaining a piece of eVC software. ... > ran into a problem that I am a bit lost over... ... > compiles with zero errors and zero warnings... ... > As far as I can tell, these are MFC related problems... ...
    (microsoft.public.pocketpc.developer)
  • Re: Bypassing the conversion wizard
    ... It should be the same basic process except that in this case, all of the code has already be fixed so that it uses MFC. ... Unfortunately it is not possible to obtain VC6 from Microsoft because it was withdrawn after the settlement with Sun Microsystems. ... If you want to use your existing code that compiles in CS2005 but will not link due to some issue with the resources, you might try creating a new project of the same type with the same name, and then first just replace the resource.h and the MyApp.rc and MyApp.rc2 files and try compiling that. ...
    (microsoft.public.vc.mfc)
  • Re: Cross platform C++ base library?
    ... MFC that you like and try to create a scenario such that it compiles and ... I mean permission to base a library on ... I don't think using MFC source code in a cross ...
    (microsoft.public.vc.mfc)
  • .NET version of INI files ?
    ... Im rewriting a current MFC application for .NET using C++\CLI that ... compiles \clr SAFE. ... My application needs to read application settings, ...
    (microsoft.public.dotnet.languages.vc)
  • Re: How to PropertySheet GetTabControl without MFC
    ... > wit. ... MFC isn't magic -- anything that MFC does, ... into the MFC source code and see what it's doing. ... Tim Robinson (MVP, Windows SDK) ...
    (microsoft.public.win32.programmer.ui)