Click here to Skip to main content
15,903,362 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
still I tried but not solve.
My exact thing is that I took win32 application as empty project and in that I created dialog box in that I put the button in that and I also generated the button click event in file.cpp
and on button click event I write the following
C#
void file::OnBnClickedButton1()
{
    // TODO: Add your control notification handler code here
    MessageBox(L"Welcome to the Wonderful World of Visual C++ 2008");
    
}

But when I click the button the message box is not display So what is wrong I did not receive any error I tried for 2 days but not work proved me step by stem explanation and solustion.
Posted
Comments
skydger 27-May-13 2:11am    
Have you registered a click button message (BN_CLICKED)?
[no name] 27-May-13 2:16am    
How to registered? I am new in vc++ so do not know abut any thing learn from example I tried.
[no name] 27-May-13 2:47am    
Thank you that code is worked thank you so muchhhhhhhh
skydger 27-May-13 4:13am    
You're welcome :)

1 solution

Please, try the following tutorial to find ouw how to handle dialog messages.
Dialog Controls explained - Part 1[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900