Question under MFC...

This is a discussion on Question under MFC... within the C++ Programming forums, part of the General Programming Boards category; Hey...
Ive been making a Program with Microsoft Visual C++ 6.0...
Ive made it so that my Main interface window ...

Question under MFC...

Hey...

Ive been making a Program with Microsoft Visual C++ 6.0...

Ive made it so that my Main interface window has buttons, and ive made other CDialog resources but I dont know how to make it so when i click on the Button on the main interface itll open another CDialog window...

How would i do that?

Code:

void CClientDlg::OnButton01()
{
/*How do i Link it to Button01.cpp or IDD_Dialog1?*/
}

But Ive come to Notice that only Text can be added to the CButton01Dlg on interface... I was wondering if there was a way to somehow get printf or cout working in Button01Dlg.cpp in order to apply variables?...

Just pointing out that: this is a C++ forum, and although your questions are about C++, the questions you are asking are related to what's called "windows programming". On this site, there is actually a "windows programming" forum for such questions that you might want to consider next time.