Click here to Skip to main content
15,900,461 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: This is not visual, nor C++ Pin
W. Hammer -sledge-10-Oct-03 20:53
W. Hammer -sledge-10-Oct-03 20:53 
GeneralCEditView problem Pin
aplamon10-Oct-03 11:07
aplamon10-Oct-03 11:07 
GeneralRe: CEditView problem Pin
Anthony_Yio10-Oct-03 22:46
Anthony_Yio10-Oct-03 22:46 
QuestionAnyone used groupware of some kind? Pin
JWood10-Oct-03 9:54
JWood10-Oct-03 9:54 
AnswerRe: Anyone used groupware of some kind? Pin
Ravi Bhavnani10-Oct-03 10:17
professionalRavi Bhavnani10-Oct-03 10:17 
GeneralRe: Anyone used groupware of some kind? Pin
Michael Dunn10-Oct-03 13:56
sitebuilderMichael Dunn10-Oct-03 13:56 
QuestionCRichEdit problem??? Pin
Ph@ntom10-Oct-03 9:28
Ph@ntom10-Oct-03 9:28 
GeneralMaking the transition from Win API SDK to MFC Pin
Kayembi10-Oct-03 9:15
Kayembi10-Oct-03 9:15 
Hi,

I am thinking of making the transition from using the Windows API SDK with mostly C to MFC - well, more than just thinking, I really want to do it. I have been using the Windows API and learning C with a modicum of C++ for the past couple of years, and have created several small programs (with a lot of help from the kind people here), but now I want to take it a stage further. I have an idea for a Windows program that I'd like to make as professional as possible with a nice GUI, and I think that MFC is the way to go for two reasons:

Firstly, given that my program is designed to look a little like a cross between Explorer and a word processor, with a tree view on the left and a rich edit box on the right in a dockable window, I can easily generate the basic GUI of my program using appwizard.

Secondly, there are a lot more code examples, both here and elsewhere, that would be very useful for my program that use MFC than the SDK, and so far I have spent a lot of unnecessary time struggling to convert code from MFC to straight C/WinAPI.

That's the waffle over, then. Considering that I learn much more easily if I am motivated by a goal (in the case the goal is the software I want to write) rather than by following dry tutorials which teach me how to write small programs I'll never use, I'd really appreciate some tips or advice on where to start with making this transition:

1) I know this is a question that comes up a lot, but what books would people recommend to help me make this transition? Before you shout: I have searched this forum, the FAQ and elsewhere, and the two books that seem to come up the most are Richard Jones's 'Introduction to MFC Programming', and Jeff Prosise's 'Programming Windows with MFC'. I am thinking of buying the Jones, because I am not very familiar with OOP and this is supposed to be easier as an introduction. Is this a good way to go? Or are there other books I may have missed?

2) I am guessing that in order to learn MFC I am going to need to improve my knowledge of C++ drastically - like I say, aside from some limited use of classes, I have mostly used straight C so far. I have the SAMs book by Jesse Liberty, which I am returning to right now, as well as other books which are way out of my league (I don't think I've ever opened my Stroustrup Smile | :) ). Should I learn more C++ before turning to MFC? Or can I learn what I need to know about classes and OOP as I go along whilst learning MFC? And if so, are the books above helpful for this too?

3) As a quick test, I tried using the MFC appwizard to create a program with the sort of GUI I want for my app. Within a few clicks, voila, I had a GUI that I loved. But when I opened up the CPP files I was terrified - I couldn't believe how alien it all was compared to a simple SDK program. How easy or difficult have other people found the transition from the SDK to MFC, if you've made it? Smile | :)

And finally, two stupid(er) questions:

4) Not really an MFC question, but...: In an application that is NOT dialog-based, is it okay (ie. good practise) to mix it up with lots of dialogs created in the resource editor? Eg. Say you have a menu in a non-dialog app but use it to call dialogs. I thoroughly expect the answer to this to be, "Duh, yes, of course, it's pretty much the same thing anyway," but I just wanted to double-check as it's something I do a lot with the SDK.

5) Is there a very simple example of a text editor using MFC available? I ask this as a final thought, before searching, so if this is the sort of thing I will turn up straight away on a search, ignore it. It just occurred to me that I might be able to learn quite a bit from such an example.

Please bear in mind that programming isn't my career path (I'm on my belated way to becoming a teacher) and thus I don't have the same amount of time that a professional, or someone younger, might have to research and learn everything in detail, so I would greatly value the input and advice of the experienced programmers here.

Thank you for any input,
KB
GeneralRe: Making the transition from Win API SDK to MFC Pin
Ravi Bhavnani10-Oct-03 10:26
professionalRavi Bhavnani10-Oct-03 10:26 
GeneralRe: Making the transition from Win API SDK to MFC Pin
Kayembi11-Oct-03 8:50
Kayembi11-Oct-03 8:50 
GeneralCPropertyPage Title Pin
act_x10-Oct-03 8:48
act_x10-Oct-03 8:48 
GeneralRe: CPropertyPage Title Pin
PJ Arends10-Oct-03 8:59
professionalPJ Arends10-Oct-03 8:59 
GeneralRe: CPropertyPage Title Pin
act_x10-Oct-03 9:09
act_x10-Oct-03 9:09 
GeneralWord Activex Control Pin
Anthony988710-Oct-03 7:53
Anthony988710-Oct-03 7:53 
GeneralRe: Word Activex Control Pin
Anthony_Yio10-Oct-03 22:54
Anthony_Yio10-Oct-03 22:54 
GeneralRe: Word Activex Control Pin
Anthony_Yio10-Oct-03 23:00
Anthony_Yio10-Oct-03 23:00 
GeneralDocumentation CDImgEdit / Wang Kodak Image Control Pin
MarcoNedwig10-Oct-03 7:12
MarcoNedwig10-Oct-03 7:12 
GeneralAnalyse AC3 file Pin
Pwalo10-Oct-03 7:03
Pwalo10-Oct-03 7:03 
Generalhelp in using PtInRegion Pin
swerajan10-Oct-03 6:19
swerajan10-Oct-03 6:19 
GeneralRe: help in using PtInRegion Pin
Terry O'Nolley10-Oct-03 9:03
Terry O'Nolley10-Oct-03 9:03 
GeneralRe: help in using PtInRegion Pin
swerajan10-Oct-03 9:41
swerajan10-Oct-03 9:41 
GeneralRe: help in using PtInRegion Pin
Terry O'Nolley10-Oct-03 12:41
Terry O'Nolley10-Oct-03 12:41 
GeneralProblem w/ CWnd::OnKeydown Pin
De Nardis Andrea10-Oct-03 5:29
De Nardis Andrea10-Oct-03 5:29 
GeneralRe: Problem w/ CWnd::onkeydown Pin
Steve S10-Oct-03 6:00
Steve S10-Oct-03 6:00 
GeneralFloating point calculation Pin
act_x10-Oct-03 4:53
act_x10-Oct-03 4:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.