Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to use point to member function? Pin
Feng Qin2-Feb-02 18:08
Feng Qin2-Feb-02 18:08 
GeneralRe: How to use point to member function? Pin
Feng Qin2-Feb-02 19:23
Feng Qin2-Feb-02 19:23 
GeneralC in Visual C++ Pin
aleyah2-Feb-02 6:49
aleyah2-Feb-02 6:49 
GeneralRe: C in Visual C++ Pin
2-Feb-02 6:51
suss2-Feb-02 6:51 
Generalvery frustrating dialog error Pin
2-Feb-02 6:10
suss2-Feb-02 6:10 
GeneralRe: very frustrating dialog error Pin
2-Feb-02 12:05
suss2-Feb-02 12:05 
GeneralRe: very frustrating dialog error Pin
2-Feb-02 21:07
suss2-Feb-02 21:07 
GeneralRe: very frustrating dialog error Pin
3-Feb-02 5:44
suss3-Feb-02 5:44 
Facinating...

Well, I changed the extensions on the wizard generic sample to .c, thinking we might be working with different languages. Still works. As expected, the parameter checking now becomes just a warning - do you have 'treat warnings as errors' checked?

This code:

case IDM_ABOUT:
     DialogBox(hInst, (LPCTSTR)IDD_ABOUTBOX, hWnd, (DLGPROC)About);
     break;
case IDM_EXIT:
     DestroyWindow(hWnd);
     break;
case ID_FILE_TEST:
     DialogBox(hInst, IDD_ABOUTBOX, hWnd, (DLGPROC)About);
     break;

Generates a warning for the line in the test menu item, but still compiles and works.

d:\work\nomfc\nomfc.c(158) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'const int '
d:\work\nomfc\nomfc.c(158) : warning C4024: 'DialogBoxParamA' : different types for formal and actual parameter 2


BTW, I guess I wasn't getting the same warnings / errors either here or in the previous test...

What strange configuration do you have? VC 2.0? Service pack -1? Smile | :)
GeneralRe: very frustrating dialog error Pin
3-Feb-02 6:10
suss3-Feb-02 6:10 
GeneralMFC is Challenging :: C++ Pin
valikac2-Feb-02 5:59
valikac2-Feb-02 5:59 
GeneralRe: MFC is Challenging :: C++ Pin
Matt Gullett2-Feb-02 6:13
Matt Gullett2-Feb-02 6:13 
GeneralRe: MFC is Challenging :: C++ Pin
Jon Sagara2-Feb-02 8:35
Jon Sagara2-Feb-02 8:35 
GeneralRe: MFC is Challenging :: C++ Pin
alex.barylski2-Feb-02 13:34
alex.barylski2-Feb-02 13:34 
GeneralRe: MFC is Challenging :: C++ Pin
Shog92-Feb-02 15:11
sitebuilderShog92-Feb-02 15:11 
GeneralRe: MFC is Challenging :: C++ Pin
Paul M Watt2-Feb-02 15:21
mentorPaul M Watt2-Feb-02 15:21 
GeneralRe: MFC is Challenging :: C++ Pin
valikac3-Feb-02 6:40
valikac3-Feb-02 6:40 
GeneralRe: MFC is Challenging :: C++ Pin
valikac4-Feb-02 4:45
valikac4-Feb-02 4:45 
QuestionCreate a SQL Query by CDaoDatabase::Execute ??? Pin
Hadi Rezaee2-Feb-02 5:46
Hadi Rezaee2-Feb-02 5:46 
AnswerRe: Create a SQL Query by CDaoDatabase::Execute ??? Pin
Philip Patrick2-Feb-02 13:54
professionalPhilip Patrick2-Feb-02 13:54 
GeneralRe: Create a SQL Query by CDaoDatabase::Execute ??? Pin
Hadi Rezaee2-Feb-02 20:51
Hadi Rezaee2-Feb-02 20:51 
GeneralRe: Create a SQL Query by CDaoDatabase::Execute ??? Pin
Philip Patrick2-Feb-02 23:14
professionalPhilip Patrick2-Feb-02 23:14 
GeneralRe: Create a SQL Query by CDaoDatabase::Execute ??? Pin
Hadi Rezaee3-Feb-02 0:22
Hadi Rezaee3-Feb-02 0:22 
GeneralConcatenating: characters->string->vector (string) :: C++ Pin
valikac2-Feb-02 5:42
valikac2-Feb-02 5:42 
GeneralCopying *Specific* Elements From VectorA to VectorB :: C++ Pin
valikac2-Feb-02 5:34
valikac2-Feb-02 5:34 
Questionchecking first char of a string?? Pin
2-Feb-02 5:11
suss2-Feb-02 5:11 

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.