
simple console app, how to add gui, good books for it mfc vs win32
Not terribly long ago I would have answered that MFC would be the thing that
you'd want to use. But I have come to believe in the separation of
computation code and interface code. Here's the way I recently built what I
think of as a simple console app that was in need of a GUI. I created a
"library" project and I put all of my computational code in that. I created
a console app that imports the library and exercised all of the classes in
the library. The console app was essentially a testing program. Then I
created an ATL DLL project to provide an IDL interface to the library. Then
I wrote the GUI in VB with the ATL DLL added as a reference. The GUI could
have been done with a dialog based MFC project but VB is good for GUIs.
This was a lot easier to do than it sounds.
Dick
Quote:
> hi for my simple console app i want to provide a simple gui a set of radio
> buttons to make a choice, 1 or t text boxes to enter values with ok cancle
> and maybe help button
> which way is the easiest way to design this and interface this with my
> functions/class? and whats a good book for me to read about this
> should i think mfc or more win32 for this?
> thanks for any help/suggestions
> Daniel