Click here to Skip to main content
15,885,127 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionTo find VC++ redistributables version installed on a system Pin
Mushtaque Nizamani11-May-08 19:21
Mushtaque Nizamani11-May-08 19:21 
AnswerRe: To find VC++ redistributables version installed on a system Pin
Hamid_RT11-May-08 20:09
Hamid_RT11-May-08 20:09 
GeneralRe: To find VC++ redistributables version installed on a system Pin
Mushtaque Nizamani11-May-08 20:29
Mushtaque Nizamani11-May-08 20:29 
GeneralRe: To find VC++ redistributables version installed on a system Pin
Hamid_RT11-May-08 20:35
Hamid_RT11-May-08 20:35 
GeneralRe: To find VC++ redistributables version installed on a system Pin
Mushtaque Nizamani11-May-08 20:38
Mushtaque Nizamani11-May-08 20:38 
QuestionGroupBox - Custom color for the drawing and text Pin
abupriabi@yahoo.com11-May-08 19:19
abupriabi@yahoo.com11-May-08 19:19 
AnswerRe: GroupBox - Custom color for the drawing and text Pin
Hamid_RT11-May-08 20:12
Hamid_RT11-May-08 20:12 
QuestionDynamic menu problem? Pin
ritz123411-May-08 18:45
ritz123411-May-08 18:45 
Hello dear friends,

I am creating the toolbar in VC 6.0.

I want to show the menu when the button of the toolbar will be clicked.

But when I use the LoadMenu for loading the menu from the resource i get

0 as the return value and GetLastError() returns the description

"The specified resource type can not be found in the image file."

I really don't understand the problem.The code snippest is as shown below.

void CMFToolbar::PopupFileMenu()<br />
{<br />
	<br />
	try<br />
	{<br />
		CMenu mnu;<br />
		CMenu *submnu;<br />
		RECT rectSubmitButton;<br />
		if(!GetItemRect(CommandToIndex(IDB_FILE),&rectSubmitButton))<br />
		{MessageBox("Fail1",_T("QpOffice Toolbar"),MB_ICONERROR); return;}<br />
		if(!MapWindowPoints(HWND_DESKTOP,(POINT*)&rectSubmitButton,2))<br />
		{MessageBox("Fail2",_T("QpOffice Toolbar"),MB_ICONERROR); return;}<br />
		if(mnu.LoadMenu(IDR_FILE_MENU))<br />
		{<br />
			MessageBox("1",_T("QpOffice Toolbar"),MB_ICONERROR);<br />
		}<br />
		else<br />
		{<br />
			char buf[MAX_PATH];<br />
			strcpy(buf,ErrorDescription(GetLastError()));<br />
			MessageBox(buf);<br />
		}<br />
	}<br />
	catch(...)<br />
	{<br />
		MessageBox("Exception",_T("QpOffice Toolbar"),MB_ICONERROR);<br />
	}


Thanks in advance to all of you.

ritz1234

QuestionRe: Dynamic menu problem? Pin
Mark Salsbery11-May-08 20:13
Mark Salsbery11-May-08 20:13 
AnswerRe: Dynamic menu problem? Pin
ritz123411-May-08 20:51
ritz123411-May-08 20:51 
AnswerRe: Dynamic menu problem? Pin
Rajkumar R11-May-08 21:32
Rajkumar R11-May-08 21:32 
GeneralRe: Dynamic menu problem? Pin
Mark Salsbery12-May-08 5:19
Mark Salsbery12-May-08 5:19 
GeneralRe: Dynamic menu problem? Pin
Rajkumar R12-May-08 20:15
Rajkumar R12-May-08 20:15 
QuestionCVTRES : fatal error CVT1100: duplicate resource -- type:DIALOG, name:130, language:0x0409 Pin
Gita.Bairavi11-May-08 18:32
Gita.Bairavi11-May-08 18:32 
AnswerRe: CVTRES : fatal error CVT1100: duplicate resource -- type:DIALOG, name:130, language:0x0409 Pin
Stephen Hewitt11-May-08 20:36
Stephen Hewitt11-May-08 20:36 
GeneralRe: CVTRES : fatal error CVT1100: duplicate resource -- type:DIALOG, name:130, language:0x0409 Pin
Gita.Bairavi11-May-08 22:57
Gita.Bairavi11-May-08 22:57 
QuestionProblem using CDM_GETFILEPATH to get full file name from a Save Dialog Pin
Nitheesh George11-May-08 17:23
Nitheesh George11-May-08 17:23 
AnswerRe: Problem using CDM_GETFILEPATH to get full file name from a Save Dialog Pin
Rajkumar R11-May-08 20:21
Rajkumar R11-May-08 20:21 
QuestionTo Run UNIX based EXE [MKS] through Shell in VC++ application. Pin
kulkarniquiet11-May-08 14:34
kulkarniquiet11-May-08 14:34 
AnswerRe: To Run UNIX based EXE [MKS] through Shell in VC++ application. Pin
Maximilien11-May-08 16:16
Maximilien11-May-08 16:16 
Questionto Run UNIX based EXE [MKS] through Shell in VC++ application Pin
kulkarniquiet11-May-08 14:33
kulkarniquiet11-May-08 14:33 
QuestionRe: to Run UNIX based EXE [MKS] through Shell in VC++ application Pin
David Crow11-May-08 16:44
David Crow11-May-08 16:44 
AnswerRe: to Run UNIX based EXE [MKS] through Shell in VC++ application Pin
kulkarniquiet11-May-08 21:34
kulkarniquiet11-May-08 21:34 
QuestionRe: to Run UNIX based EXE [MKS] through Shell in VC++ application Pin
David Crow12-May-08 2:44
David Crow12-May-08 2:44 
AnswerRe: to Run UNIX based EXE [MKS] through Shell in VC++ application Pin
kulkarniquiet12-May-08 17:00
kulkarniquiet12-May-08 17:00 

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.