15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


MFC in 21 Days (Shaw) Framework run problem

Michel Robert -- michero@login.net
Tuesday, January 02, 1996

Re:  Teach Yourself MFC in 21 Days (:)) bye Robert Shaw & Dan Osier.

(VC 1.52c Win95)

This book has a great example MFC/ODBC program called TREE. It compiles
fine, but the framework balks on a SendMessageToDescendants (error message
says 'expecting 3 parameters').
Has anybody had/solved this problem? TIA

Michel Robert      |* Simple telecommuted contracts accepted - Win 3.1/Win95 *
Computer programmer|After 11 yrs in Basic + 2 in Foxpro, I decided to
Montreal           |reorient my career and am now 6 months into full-time
michero@login.net  |studying C++/Win at home. Need experience, will work cheap.




Sean A. Walberg -- umwalber@cc.UManitoba.CA
Tuesday, January 02, 1996

-----BEGIN PGP SIGNED MESSAGE-----

> This book has a great example MFC/ODBC program called TREE. It compiles
> fine, but the framework balks on a SendMessageToDescendants (error message
> says 'expecting 3 parameters').
> Has anybody had/solved this problem? TIA

I have the book, but I find it hard to follow at times.  I am 
currently in the second week (I've had the book for a few months :-) 
) but haven't came across that.  

What other stuff are you using to learn MFC besides that book?  I am 
looking for something to supplement it, but not be redundant.

Sean 

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBMOjljt82JgvRKzQZAQEIHAP/ZNT4wNUENOdFcbgyQTKQaTpmHLmC/mTU
gLGrYJ72Y5z//mCa0rMW+F4mSek1kHGW06sAteF14ILZflo395CBEsvgceIAi9+M
1C/eo3B+moK0WVeR1CdiNUTwdOMcaodlSWbmJpU8vWv/Jv36w0AwRbkplmbDwmCx
ZH5jjzVIyak=
=W1PD
-----END PGP SIGNATURE-----
       =================] Will work for RAM [==================
       |     Sean A. Walberg       | PGP key |  C programmers |
       |  Computer Engineering ][  |   on    |    do it in    |
       | umwalber@cc.umanitoba.ca  | servers |   libraries!   |
       =============] http://www.escape.ca/~sean [=============



David W. Gillett -- DGILLETT@expertedge.com
Wednesday, January 03, 1996

> (VC 1.52c Win95)
> 
> This book has a great example MFC/ODBC program called TREE. It
> compiles fine, but the framework balks on a
> SendMessageToDescendants (error message says 'expecting 3
> parameters').
> Has anybody had/solved this problem? TIA

  That's bizarre.  The docs all show five parameters, only one of 
which doesn't have a default.  Any chance that it's being overridden 
somewhere in the example code?

Dave


   



Michel Robert -- michero@login.net
Thursday, January 04, 1996

>What other stuff are you using to learn MFC besides that book?  I am 
>looking for something to supplement it, but not be redundant.
>
>Sean 


Sean,
        Note that I said the the TREE example is nice but I did not express
an opinion about the book itself (I'm keeping my thoughts to myself).

        Charles Calvert (Borland guru) is an author that I respect.  His
books are not on MFC but he does state that framework programming is *not*
well understood if one does not first learn the API.  That's *his* opinion
and I am just mentioning it, not solliciting replies...

        As to MFC itself, I now understand that there is 'vanilla' MFC and
there is App Wizard MFC -> e.g. Doc/View model, etc...  Vanilla MFC is
easier and I would think a pre-requisite to App Wizard stuff. (my opinion)

        In that light, Jim Conger has a nice book on vanilla MFC:
Microsoft Foundation Class Primer - Jim Conger - WAITE GROUP.

        Another nice and simple one which bridges vanilla MFC and App Wizard:
Writing Windows Applications with Microsoft Foundation Classes
Bryan Waters - M&T Books (there too, run-time problems with the source, but
nevertheless a good book).

        Now to supplement reading books, I spend a lot of time printing
source and just reading it, and reading it, and reading it...  The MSVC
subdirectory MFC\SAMPLES are nice!

        If you get discouraged, think that you're not the only one, look
back at what you have *already* learned, give it time to grow.

Michel Robert      |* Simple telecommuted contracts accepted - Win 3.1/Win95 *
Computer programmer|After 11 yrs in Basic + 2 in Foxpro, I decided to
Montreal           |reorient my career and am now 6 months into full-time
michero@login.net  |studying C++/Win at home. Need experience, will work cheap.





| Вернуться в корень Архива |