Click here to Skip to main content
15,902,636 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: **horribly stumped** passing a pointer to C++ from VB Pin
rajdawg5-Sep-03 1:20
rajdawg5-Sep-03 1:20 
Questionhow to get the number of digits Pin
elmahdy4-Sep-03 13:44
elmahdy4-Sep-03 13:44 
AnswerRe: how to get the number of digits Pin
Dor4-Sep-03 15:47
Dor4-Sep-03 15:47 
AnswerRe: how to get the number of digits Pin
Larry J. Siddens5-Sep-03 10:17
Larry J. Siddens5-Sep-03 10:17 
GeneralEnvironment Vars... Pin
RobJones4-Sep-03 13:41
RobJones4-Sep-03 13:41 
GeneralRe: Environment Vars... Pin
Neville Franks5-Sep-03 0:15
Neville Franks5-Sep-03 0:15 
GeneralRe: Environment Vars... Pin
RobJones5-Sep-03 3:53
RobJones5-Sep-03 3:53 
GeneralError in adding submenu to the File Menu Pin
Binayak4-Sep-03 13:28
Binayak4-Sep-03 13:28 
Hi,

I'm trying to add a submenu into the Main File Menu, and I want to populate the submenu dynamically. But, I'm getting an error on AppendMenu() at runtime.
Here is what I'm doing:

CMenu* menu_bar = AfxGetMainWnd()->GetMenu();
CMenu* file_menu = menu_bar->GetSubMenu(0);

for (int iCount =0; iCount<maximum ;="" icount++)
{
if="" (!uniquehierarchyname[icount].isempty())
{
hierarchysubmenu.appendmenu="" (mf_string,="" id_base_command="" +icount,="" uniquehierarchyname[icount]);
}
}
file_menu-="">AppendMenu (MF_POPUP, (UINT)HierarchySubmenu.m_hMenu, "&Add Hierarchy from Submenu");
GeneralExceptions Pin
Rickard Andersson204-Sep-03 13:03
Rickard Andersson204-Sep-03 13:03 
GeneralRe: Exceptions Pin
dog_spawn4-Sep-03 13:16
dog_spawn4-Sep-03 13:16 
GeneralRe: Exceptions Pin
Rickard Andersson204-Sep-03 22:34
Rickard Andersson204-Sep-03 22:34 
GeneralRe: Exceptions Pin
Alvaro Mendez4-Sep-03 17:40
Alvaro Mendez4-Sep-03 17:40 
GeneralRe: Exceptions Pin
Rickard Andersson204-Sep-03 22:41
Rickard Andersson204-Sep-03 22:41 
GeneralRe: Exceptions Pin
jhwurmbach5-Sep-03 1:18
jhwurmbach5-Sep-03 1:18 
GeneralRe: Exceptions Pin
Andrew Walker5-Sep-03 1:32
Andrew Walker5-Sep-03 1:32 
Questionhow to schedule a a thread to a specific CPU? Pin
Anonymous4-Sep-03 12:46
Anonymous4-Sep-03 12:46 
AnswerRe: how to schedule a a thread to a specific CPU? Pin
Michael Dunn4-Sep-03 13:20
sitebuilderMichael Dunn4-Sep-03 13:20 
GeneralRe: how to schedule a a thread to a specific CPU? Pin
Anonymous5-Sep-03 13:15
Anonymous5-Sep-03 13:15 
GeneralNeed for derived class to show base clase object. Pin
WREY4-Sep-03 12:29
WREY4-Sep-03 12:29 
Generalbad design Pin
dog_spawn4-Sep-03 12:46
dog_spawn4-Sep-03 12:46 
GeneralTalk is cheap!! Show me the money!! Pin
WREY4-Sep-03 14:29
WREY4-Sep-03 14:29 
GeneralEr Pin
dog_spawn4-Sep-03 16:36
dog_spawn4-Sep-03 16:36 
GeneralRe: Need for derived class to show base clase object. Pin
Alvaro Mendez4-Sep-03 17:28
Alvaro Mendez4-Sep-03 17:28 
GeneralRe: Need for derived class to show base clase object. Pin
WREY4-Sep-03 21:17
WREY4-Sep-03 21:17 
GeneralRe: Need for derived class to show base clase object. Pin
Jason Henderson4-Sep-03 18:24
Jason Henderson4-Sep-03 18:24 

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.