Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Destructor not working ? Pin
Weiye Chen15-Aug-06 21:19
Weiye Chen15-Aug-06 21:19 
GeneralRe: Destructor not working ? Pin
prasad_som15-Aug-06 21:19
prasad_som15-Aug-06 21:19 
GeneralRe: Destructor not working ? Pin
Hamid_RT15-Aug-06 21:39
Hamid_RT15-Aug-06 21:39 
GeneralRe: Destructor not working ? Pin
jalsa G15-Aug-06 21:38
jalsa G15-Aug-06 21:38 
GeneralRe: Destructor not working ? Pin
jalsa G15-Aug-06 21:49
jalsa G15-Aug-06 21:49 
GeneralRe: Destructor not working ? Pin
jalsa G15-Aug-06 21:54
jalsa G15-Aug-06 21:54 
GeneralRe: Destructor not working ? Pin
prasad_som15-Aug-06 22:31
prasad_som15-Aug-06 22:31 
GeneralRe: Destructor not working ? Pin
jalsa G15-Aug-06 22:39
jalsa G15-Aug-06 22:39 
hi prasad,

BOOL mymainApp::InitInstance()
{

// InitCommonControls() is required on Windows XP if an application
// manifest specifies use of ComCtl32.dll version 6 or later to enable
// visual styles. Otherwise, any window creation will fail.
InitCommonControls();

CWinApp::InitInstance();

AfxEnableControlContainer();

// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need
// Change the registry key under which our settings are stored
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization
SetRegistryKey(_T("Local AppWizard-Generated Applications"));

mymainDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}

// Since the dialog has been closed, return FALSE so that we exit the
// application, rather than start the application's message pump.
return FALSE;
}

here is for main dialog which is created

Thank you


venu

GeneralRe: Destructor not working ? Pin
prasad_som15-Aug-06 23:20
prasad_som15-Aug-06 23:20 
GeneralRe: Destructor not working ? Pin
Weiye Chen15-Aug-06 22:01
Weiye Chen15-Aug-06 22:01 
QuestionProblem with Stdafx.cpp [modified] Pin
georgekjolly15-Aug-06 20:19
georgekjolly15-Aug-06 20:19 
AnswerRe: Problem with Stdafx.cpp Pin
Nibu babu thomas15-Aug-06 20:29
Nibu babu thomas15-Aug-06 20:29 
GeneralRe: Problem with Stdafx.cpp Pin
georgekjolly15-Aug-06 20:39
georgekjolly15-Aug-06 20:39 
QuestionMFC modal dialog question Pin
HongCao15-Aug-06 19:51
HongCao15-Aug-06 19:51 
AnswerRe: MFC modal dialog question Pin
Michael Dunn15-Aug-06 19:55
sitebuilderMichael Dunn15-Aug-06 19:55 
GeneralRe: MFC modal dialog question Pin
Christian Graus15-Aug-06 20:09
protectorChristian Graus15-Aug-06 20:09 
GeneralRe: MFC modal dialog question Pin
Michael Dunn15-Aug-06 20:15
sitebuilderMichael Dunn15-Aug-06 20:15 
AnswerRe: MFC modal dialog question Pin
Hamid_RT18-Aug-06 8:09
Hamid_RT18-Aug-06 8:09 
Questiontab control on docking window Pin
harsha_123415-Aug-06 19:47
harsha_123415-Aug-06 19:47 
QuestionCAsyncSocket::Create for IPV6 Pin
Pappu5star15-Aug-06 19:40
Pappu5star15-Aug-06 19:40 
QuestionSerialize a Wizard Pin
DanYELL15-Aug-06 17:59
DanYELL15-Aug-06 17:59 
QuestionHelp!!Get image and save at local computer... Pin
mimimimilaw15-Aug-06 17:08
mimimimilaw15-Aug-06 17:08 
AnswerRe: Help!!Get image and save at local computer... Pin
Hamid_RT15-Aug-06 19:11
Hamid_RT15-Aug-06 19:11 
AnswerRe: Help!!Get image and save at local computer... Pin
David Crow16-Aug-06 3:36
David Crow16-Aug-06 3:36 
QuestiongSOAP problem, who know this error message? Pin
simonchen.net15-Aug-06 16:37
simonchen.net15-Aug-06 16:37 

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.