Click here to Skip to main content
15,923,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: asynchonous download file internet Pin
Blake Miller2-Mar-05 8:50
Blake Miller2-Mar-05 8:50 
GeneralHotkeys working in Debug build but not working in Release build Pin
PravinSingh1-Mar-05 22:11
PravinSingh1-Mar-05 22:11 
GeneralRe: Hotkeys working in Debug build but not working in Release build Pin
V.1-Mar-05 22:45
professionalV.1-Mar-05 22:45 
GeneralRe: Hotkeys working in Debug build but not working in Release build Pin
PravinSingh1-Mar-05 23:28
PravinSingh1-Mar-05 23:28 
GeneralRe: Hotkeys working in Debug build but not working in Release build Pin
Mike Dimmick1-Mar-05 23:43
Mike Dimmick1-Mar-05 23:43 
Questionhow to make a stealth application Pin
Mohsen Saad1-Mar-05 21:35
Mohsen Saad1-Mar-05 21:35 
AnswerRe: how to make a stealth application Pin
V.1-Mar-05 22:44
professionalV.1-Mar-05 22:44 
AnswerRe: how to make a stealth application Pin
RicoH2-Mar-05 0:17
RicoH2-Mar-05 0:17 
AnswerRe: how to make a stealth application Pin
ThatsAlok2-Mar-05 2:33
ThatsAlok2-Mar-05 2:33 
AnswerRe: how to make a stealth application Pin
JWood2-Mar-05 5:17
JWood2-Mar-05 5:17 
GeneralRe: how to make a stealth application Pin
David Crow2-Mar-05 8:37
David Crow2-Mar-05 8:37 
QuestionHow to minimize Form to taskbar like mediaplay9 Pin
sprewellkobe1-Mar-05 19:47
sprewellkobe1-Mar-05 19:47 
GeneralDRAWCLI design help Pin
KoderProject1-Mar-05 19:39
sussKoderProject1-Mar-05 19:39 
QuestionHow to call PostThreadMessage from outside the thread function Pin
saha2k51-Mar-05 19:39
saha2k51-Mar-05 19:39 
AnswerRe: I got the answer !!!!!!!!!! Pin
saha2k51-Mar-05 22:10
saha2k51-Mar-05 22:10 
GeneralNULL character problem Pin
LighthouseJ1-Mar-05 18:38
LighthouseJ1-Mar-05 18:38 
GeneralRe: NULL character problem Pin
RicoH2-Mar-05 0:31
RicoH2-Mar-05 0:31 
GeneralRe: NULL character problem Pin
LighthouseJ2-Mar-05 2:48
LighthouseJ2-Mar-05 2:48 
GeneralRe: NULL character problem Pin
David Crow2-Mar-05 2:34
David Crow2-Mar-05 2:34 
GeneralRe: NULL character problem Pin
LighthouseJ2-Mar-05 2:46
LighthouseJ2-Mar-05 2:46 
QuestionHow to call PostThreadMessage from outside the thread function Pin
saha2k51-Mar-05 18:23
saha2k51-Mar-05 18:23 
AnswerRe: How to call PostThreadMessage from outside the thread function Pin
saha2k51-Mar-05 22:25
saha2k51-Mar-05 22:25 
Question" MFC appliation has encountered an error" Why??? Pin
wasife1-Mar-05 17:32
wasife1-Mar-05 17:32 
I am making a login form(very simple). i am storing username and password(both 5 characters each fixed)in file. when i try to login and press login button, it gives the message "MFC application has encountered and error and needs to close...". And some time it raises exception like "dbgHeap on line 1017" . Please somebody could help me. I am pasting complete code of Login button message handler...
BOOL CNewJoiningFormDlg::LogIn()
{
UpdateData(TRUE);
if(m_strLoginName.GetLength()!=5)
{
MessageBox("Login Name must be exactly 5 characters long","Stop",MB_ICONSTOP|MB_OK);
return FALSE;
}
if(m_strPassword.GetLength()!=5)
{
MessageBox("Password must be exactly 5 characters long","Stop",MB_ICONSTOP|MB_OK);
return FALSE;
}
/*---Declare the variables in which login and password will be read from the file*/
CString psw;
CString login;
//--Take the file pointer to the beginning of the file
ASSERT_VALID(m_pPSWFile);
m_pPSWFile->SeekToBegin();
DWORD fileLength=m_pPSWFile->GetLength();
UpdateData(FALSE);
while( (m_pPSWFile->GetPosition()) < fileLength )
{
m_pPSWFile->Read(&login,5);
if(login==m_strLoginName)
{
UpdateData(FALSE);
m_pPSWFile->Read(&psw,5);
if(psw==m_strPassword)
{
UpdateData(FALSE);
AfxMessageBox("You supplied correct Login Name and Password");
return TRUE;
}
}
}
return FALSE;
}
AnswerRe: &quot; MFC appliation has encountered an error&quot; Why??? Pin
Christian Graus1-Mar-05 18:04
protectorChristian Graus1-Mar-05 18:04 
AnswerRe: " MFC appliation has encountered an error" Why??? Pin
David Crow2-Mar-05 2:44
David Crow2-Mar-05 2:44 

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.