Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: AkiraDev on August 14, 2005, 03:09:03 pm

Title: MSW-only: MFC to wxWidgets code conversion plugin
Post by: AkiraDev on August 14, 2005, 03:09:03 pm
This is not an announcement, but a suggestion.

If anyone with experience in both MFC and wxWidgets came up with such a plugin would prove extremely useful for adoption of wxWidgets. A lot of MFC programming work is about to die, with the advent of .NET, and coming Windows Vista, and recovering such work with a plugin which automates a great deal of tasks would prove helpful and motivate further use of both wxWidgets as well as Code::Blocks.

Unfortunatley, I am busy ATM, and also have no solid knowledge of MFC.
Title: Re: MSW-only: MFC to wxWidgets code conversion plugin
Post by: grv575 on August 14, 2005, 04:36:12 pm
That sounds like a large-scale sourceforge project in an of itself.  I've never seen MS release anything like a MFC->.NET or MFC->win32api conversion tool and think about how much that would please their customer base (all the convenience of MFC, but the speed and no dll runtime restrictions of win32api code).  MFC is a massive library.
Title: Re: MSW-only: MFC to wxWidgets code conversion plugin
Post by: byo on August 14, 2005, 10:05:58 pm
Maybe it could be feature of my wxSmith plugin :). I'll think about it... it will be a big block of code ;) (First I need to finish wxSmith).
I know MFC a little bit and it's architecture seems to be very similar to wxWidgets. But there's one problem - not all features of MFC can be used inside wxWidgets and building intuitive conversion system... hmm, I can only dream of  :roll:
Title: Re: MSW-only: MFC to wxWidgets code conversion plugin
Post by: Funto on August 14, 2005, 10:13:26 pm
I think it's not possible...

It would be possible to support a part of MFC, but althought the architectures are very similar, it's certainly not possible to do an entire conversion replacing some terms with others...

Furthermore, MFC developpers are used to using some Win32 API functions in their programs...

But if someone wants to try...

However I don't think somebody really needs this ^^
Title: Re: MSW-only: MFC to wxWidgets code conversion plugin
Post by: phlox81 on August 15, 2005, 07:06:39 pm
That makes no sense to me.
In Business it would make more sense to redesign a App, than
converting it, and than having to do the bughunting, such a tool
could never work by 100%.
You could convert the GUI, but how good and efficient would
the conversion of the Sourcecode be ?

And if its just about the GUI Surface, i think a tool like
wxFormBuilder (http://wxformbuilder.software-libre.org/index_en.html) will do a better job.