Click here to Skip to main content
16,004,944 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to Change Audio device Volume ? Pin
David Crow29-Oct-04 4:24
David Crow29-Oct-04 4:24 
GeneralCliping sound file Pin
RamiQadi27-Oct-04 1:37
RamiQadi27-Oct-04 1:37 
GeneralC++ WMI Pin
torben0027-Oct-04 1:23
torben0027-Oct-04 1:23 
QuestionHow to get the path of a file in VC++ Pin
ledallam27-Oct-04 1:12
ledallam27-Oct-04 1:12 
AnswerRe: How to get the path of a file in VC++ Pin
sarath_babu27-Oct-04 1:40
sarath_babu27-Oct-04 1:40 
GeneralTwo successive dialogs in a dlg app Pin
CaesarCZ27-Oct-04 1:01
CaesarCZ27-Oct-04 1:01 
GeneralRe: Two successive dialogs in a dlg app Pin
wb27-Oct-04 1:24
wb27-Oct-04 1:24 
GeneralRe: Two successive dialogs in a dlg app Pin
CaesarCZ27-Oct-04 1:38
CaesarCZ27-Oct-04 1:38 
dlg = new CPoolDlg;
m_pMainWnd = dlg;
int nResponse = dlg->DoModal();

delete dlg;

playoff_dlg = new CPlayoffDlg;
m_pMainWnd = playoff_dlg;

nResponse = playoff_dlg->DoModal();

delete playoff_dlg;

That's the code in InitInstance. I have to say I'm in no way a MFC guru. I played with the code a bit to make the CPoolDlg and CPlayoffDlg members of the CMyApp, and had to make them * in order to be able to create them after the common controls initialization is done. If I comment the first dialog out, the second runs wo problems, if I don't, the DoModal returns -1 (from what I know on some message pump checking call)
GeneralRe: Two successive dialogs in a dlg app Pin
wb27-Oct-04 2:14
wb27-Oct-04 2:14 
GeneralRe: Two successive dialogs in a dlg app Pin
Antony M Kancidrowski27-Oct-04 2:25
Antony M Kancidrowski27-Oct-04 2:25 
GeneralRe: Two successive dialogs in a dlg app Pin
CaesarCZ27-Oct-04 3:05
CaesarCZ27-Oct-04 3:05 
General3D Pipe Graph creation in VC++(MFC) Pin
Venkata Krishnan Naidu27-Oct-04 0:49
Venkata Krishnan Naidu27-Oct-04 0:49 
GeneralDiskQuotaControl Pin
std770227-Oct-04 0:47
std770227-Oct-04 0:47 
GeneralRe: DiskQuotaControl Pin
David Crow27-Oct-04 3:01
David Crow27-Oct-04 3:01 
GeneralRe: DiskQuotaControl Pin
std770228-Oct-04 1:34
std770228-Oct-04 1:34 
Generalactivex ctrl in modeless dialog Pin
sarath_babu27-Oct-04 0:28
sarath_babu27-Oct-04 0:28 
GeneralRe: activex ctrl in modeless dialog Pin
Cedric Moonen27-Oct-04 1:25
Cedric Moonen27-Oct-04 1:25 
Generalactivex ctrl in modeless dialog Pin
sarath_babu27-Oct-04 0:27
sarath_babu27-Oct-04 0:27 
GeneralCFile Pin
vc-programmer-26-Oct-04 22:28
vc-programmer-26-Oct-04 22:28 
GeneralRe: CFile Pin
ytod26-Oct-04 22:44
ytod26-Oct-04 22:44 
GeneralRe: CFile Pin
vc-programmer-26-Oct-04 22:59
vc-programmer-26-Oct-04 22:59 
GeneralRe: CFile Pin
vcplusplus27-Oct-04 3:10
vcplusplus27-Oct-04 3:10 
Generalimplicit pointer conversion Pin
pesho293226-Oct-04 21:55
pesho293226-Oct-04 21:55 
GeneralRe: implicit pointer conversion Pin
geo_m26-Oct-04 23:14
geo_m26-Oct-04 23:14 
GeneralRe: implicit pointer conversion Pin
pesho293227-Oct-04 0:13
pesho293227-Oct-04 0:13 

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.