Click here to Skip to main content
15,901,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: T rying to decalare a CArray in side a CMap- CMap m_abc; Pin
Eugen Podsypalnikov23-Sep-10 20:42
Eugen Podsypalnikov23-Sep-10 20:42 
GeneralRe: T rying to decalare a CArray in side a CMap- CMap m_abc; Pin
ptr_Electron23-Sep-10 21:57
ptr_Electron23-Sep-10 21:57 
GeneralRe: T rying to decalare a CArray in side a CMap- CMap m_abc; Pin
Eugen Podsypalnikov23-Sep-10 23:54
Eugen Podsypalnikov23-Sep-10 23:54 
AnswerRe: T rying to decalare a CArray in side a CMap- CMap m_abc; Pin
Maximilien24-Sep-10 2:39
Maximilien24-Sep-10 2:39 
AnswerRe: T rying to decalare a CArray in side a CMap- CMap m_abc; [modified] Pin
Aescleal24-Sep-10 9:14
Aescleal24-Sep-10 9:14 
GeneralRe: T rying to decalare a CArray in side a CMap- CMap m_abc; Pin
Paul Michalik25-Sep-10 0:30
Paul Michalik25-Sep-10 0:30 
GeneralRe: T rying to decalare a CArray in side a CMap- CMap m_abc; Pin
Aescleal25-Sep-10 1:03
Aescleal25-Sep-10 1:03 
QuestionFrameWIndow Creation Problem Pin
ganesh_IT23-Sep-10 18:52
ganesh_IT23-Sep-10 18:52 
Hi guys, I am writing project for bank operation in MFC, before running my application i have to check the username and password. But i have some problem in my code, my main frame window is closed after enter username and password.Any one tell me the reason.....
class CLoginDialog : public CDialog //MyDialog class
{
   //Mycode 
};

///////////////////////Frame class////////////////////

CBankFrameWnd : public CFrameWnd
{
  //Mycode 
};
/////////////////////////App class////////////////

class CBankApp : public CWinApp
{
public:
  CBankApp();
  ~CBankApp();
   BOOL InitInstance();
};

CBankApp::CBankApp
{
}
CBankApp::~CBankApp()
{
}
BOOL CBankApp::InitInstance()
{
   CLoginDialog *pDlg = new CLoginDialog();
   m_pMainWnd = pDlg;
   if(pDlg->DoModal() == IDOK)
   {
      //Verify userName password, 
               if Valid User then assign frame window in m_pMainwnd and return TRUE ...
       CBankFrameWnd *pWnd = new CBankFrameWnd();
       m_pMainWnd = pWnd;
       pWnd -> ShowWindow(m_nCmdShow);
       pWnd -> UpdateWindow();
       return TRUE;
   }
   else
       return FALSE;
}

Thanks in Advance
AnswerRe: FrameWIndow Creation Problem [modified] Pin
Eugen Podsypalnikov23-Sep-10 20:10
Eugen Podsypalnikov23-Sep-10 20:10 
QuestionRow height of List Ctrl not change when Checkbox option used in List. Pin
Le@rner23-Sep-10 18:44
Le@rner23-Sep-10 18:44 
QuestionHow to convert Time Zone Pin
Parthi_Appu23-Sep-10 12:57
Parthi_Appu23-Sep-10 12:57 
AnswerRe: How to convert Time Zone Pin
Luc Pattyn23-Sep-10 13:10
sitebuilderLuc Pattyn23-Sep-10 13:10 
QuestionProcess privileges elevation on runtime with Win7 UAC? Pin
Moak23-Sep-10 10:45
Moak23-Sep-10 10:45 
AnswerRe: Process privileges elevation on runtime with Win7 UAC? Pin
LunaticFringe23-Sep-10 13:43
LunaticFringe23-Sep-10 13:43 
GeneralRe: Process privileges elevation on runtime with Win7 UAC? Pin
Moak24-Sep-10 5:42
Moak24-Sep-10 5:42 
AnswerRe: Process privileges elevation on runtime with Win7 UAC? Pin
«_Superman_»23-Sep-10 18:35
professional«_Superman_»23-Sep-10 18:35 
AnswerRe: Process privileges elevation on runtime with Win7 UAC? Pin
Eugen Podsypalnikov23-Sep-10 20:30
Eugen Podsypalnikov23-Sep-10 20:30 
GeneralRe: Process privileges elevation on runtime with Win7 UAC? Pin
Moak24-Sep-10 5:48
Moak24-Sep-10 5:48 
QuestionSetCursor question Pin
sashoalm23-Sep-10 5:41
sashoalm23-Sep-10 5:41 
AnswerRe: SetCursor question Pin
Sauro Viti23-Sep-10 5:49
professionalSauro Viti23-Sep-10 5:49 
QuestionHelp on TAPI....... Pin
AmbiguousName23-Sep-10 5:04
AmbiguousName23-Sep-10 5:04 
QuestionRe: Help on TAPI....... Pin
David Crow23-Sep-10 8:33
David Crow23-Sep-10 8:33 
QuestionHandling all exceptions in application [modified] Pin
Code-o-mat23-Sep-10 3:37
Code-o-mat23-Sep-10 3:37 
AnswerRe: Handling all exceptions in application Pin
Aescleal23-Sep-10 4:34
Aescleal23-Sep-10 4:34 
GeneralRe: Handling all exceptions in application Pin
Code-o-mat23-Sep-10 4:47
Code-o-mat23-Sep-10 4:47 

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.