Click here to Skip to main content
15,498,622 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProperly document C++ code for use in Intellisense ? Pin
Maximilien22-Aug-22 6:14
MemberMaximilien22-Aug-22 6:14 
AnswerRe: Properly document C++ code for use in Intellisense ? Pin
Richard MacCutchan22-Aug-22 22:28
mveRichard MacCutchan22-Aug-22 22:28 
QuestionNeed insight as to how VS2008 parses vcproj files Pin
charlieg21-Aug-22 9:45
Membercharlieg21-Aug-22 9:45 
AnswerRe: Need insight as to how VS2008 parses vcproj files Pin
Mircea Neacsu21-Aug-22 11:35
mvaMircea Neacsu21-Aug-22 11:35 
GeneralRe: Need insight as to how VS2008 parses vcproj files Pin
charlieg22-Aug-22 1:56
Membercharlieg22-Aug-22 1:56 
GeneralRe: Need insight as to how VS2008 parses vcproj files Pin
Mircea Neacsu22-Aug-22 2:45
mvaMircea Neacsu22-Aug-22 2:45 
GeneralRe: Need insight as to how VS2008 parses vcproj files Pin
charlieg22-Aug-22 2:53
Membercharlieg22-Aug-22 2:53 
QuestionDialogBox fuction not executing its procedure [SOLVED] Pin
coco24319-Aug-22 0:39
Membercoco24319-Aug-22 0:39 
Hi,

I am trying to compile a project who use message crackers and is different from those wich I am used with(those projects that uses WindProc procedure and the other functions automatically created by the VS IDE)


This is the windows main function where I call DialogBox function:

C++
int WINAPI WinMain(HINSTANCE hinstExe, HINSTANCE hinstPrev, LPSTR pszCmdLine, int nCmdShow)
{


DialogBox(hinstExe, MAKEINTRESOURCE(IDD_DIRWALK), NULL, Dlg_Proc);

return(0);
}


If I place a breakpoint on the Dlg_Proc preocedure, the program never goes there to start it:

C++
BOOL CALLBACK Dlg_Proc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
	switch (uMsg)
	{
	chHANDLE_DLGMSG(hwnd, WM_INITDIALOG, Dlg_OnInitDialog);
	chHANDLE_DLGMSG(hwnd, WM_SIZE, Dlg_OnSize);

	}

	return(FALSE);
}


Here is the resource for the dialog box:

C++
// Dialog
IDD_DIRWALK DIALOG DISCARDABLE 10, 18, 250, 250
STYLE WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_POPUP|
              WS_VISIBLE| WS_CAPTION | WS_SYSMENU |WS_THICKFRAME
CAPTION "Directory Walk"
FONT 8, "System"
BEGIN
       LISTBOX     IDC_TREE,0,0,0,0,NOT LBS_NOTIFY |
	                      LBX_NOINTEGRAL_HEIGHT | NOT WS_BORDER |
			   WS_VSCROLL | WS_HSCROLL | WS_GROUP |
			   WS_TABSTOP
END


Here is the macro definition for messages:

C++
#define chHANDLE_DLGMSG(hWnd, message, fn)                                         \
	case (message):                                                                \
return (SetDlgMsgResult(hwnd, uMsg, HANDLE_##message((hwnd),  (wParam), (lParam), (fn))))



I don't think that the problem could be on the resource code for dialog box as long as the program even don't execute de
dialog box procedure.

If you know where the problem could be, please help me.

Thank you,

modified 23-Aug-22 12:32pm.

AnswerRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan19-Aug-22 1:38
mveRichard MacCutchan19-Aug-22 1:38 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24319-Aug-22 2:14
Membercoco24319-Aug-22 2:14 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan19-Aug-22 2:47
mveRichard MacCutchan19-Aug-22 2:47 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24319-Aug-22 3:03
Membercoco24319-Aug-22 3:03 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan19-Aug-22 3:29
mveRichard MacCutchan19-Aug-22 3:29 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24319-Aug-22 3:57
Membercoco24319-Aug-22 3:57 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24319-Aug-22 4:20
Membercoco24319-Aug-22 4:20 
SuggestionRe: DialogBox fuction not executing its procedure Pin
David Crow19-Aug-22 5:34
MemberDavid Crow19-Aug-22 5:34 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan19-Aug-22 5:40
mveRichard MacCutchan19-Aug-22 5:40 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24319-Aug-22 6:15
Membercoco24319-Aug-22 6:15 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan19-Aug-22 6:52
mveRichard MacCutchan19-Aug-22 6:52 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24319-Aug-22 7:16
Membercoco24319-Aug-22 7:16 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan19-Aug-22 9:09
mveRichard MacCutchan19-Aug-22 9:09 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24320-Aug-22 0:47
Membercoco24320-Aug-22 0:47 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan20-Aug-22 0:58
mveRichard MacCutchan20-Aug-22 0:58 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24320-Aug-22 1:06
Membercoco24320-Aug-22 1:06 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan21-Aug-22 2:56
mveRichard MacCutchan21-Aug-22 2:56 

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.