Click here to Skip to main content
15,908,264 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: why runtime error? what is difference? Pin
prasad_som5-Sep-05 19:27
prasad_som5-Sep-05 19:27 
AnswerRe: why runtime error? what is difference? Pin
Giannakakis Kostas5-Sep-05 20:06
professionalGiannakakis Kostas5-Sep-05 20:06 
GeneralRe: why runtime error? what is difference? Pin
G Haranadh5-Sep-05 21:04
G Haranadh5-Sep-05 21:04 
GeneralRe: why runtime error? what is difference? Pin
toxcct5-Sep-05 21:09
toxcct5-Sep-05 21:09 
QuestionClass wizard problem Pin
heavenode5-Sep-05 18:57
heavenode5-Sep-05 18:57 
AnswerRe: Class wizard problem Pin
MailtoGops5-Sep-05 22:01
MailtoGops5-Sep-05 22:01 
AnswerRe: Class wizard problem Pin
nguyenvhn5-Sep-05 22:18
nguyenvhn5-Sep-05 22:18 
AnswerRe: Class wizard problem Pin
heavenode5-Sep-05 22:24
heavenode5-Sep-05 22:24 
thanks, i found out the problem, it lies inside the constructor. the problem is solved after i removed the 'if section' code.

does it mean i cant have an if statement inside constructor???

CTAMADlg::CTAMADlg(CWnd* pParent /*=NULL*/)
: CDialog(CTAMADlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CTAMADlg)

m_hDevice = INVALID_HANDLE_VALUE;
m_hClose = INVALID_HANDLE_VALUE;

m_hClose = CreateEvent (NULL, TRUE, FALSE, NULL);
if ( m_hClose == INVALID_HANDLE_VALUE )
{
MessageBox("Thread event error!","Error",MB_OK);
}

//}}AFX_DATA_INIT

m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}

QuestionText data conversion into different file formats Pin
Member 3618575-Sep-05 18:49
Member 3618575-Sep-05 18:49 
QuestionHelp, error when deleting m_p in destructor. Pin
followait5-Sep-05 18:49
followait5-Sep-05 18:49 
AnswerRe: Help, error when deleting m_p in destructor. Pin
khan++5-Sep-05 19:03
khan++5-Sep-05 19:03 
GeneralIt's my careless, it should be delete[] p, but still have a error. Pin
followait5-Sep-05 19:33
followait5-Sep-05 19:33 
GeneralRe: It's my careless, it should be delete[] p, but still have a error. Pin
Jose Lamas Rios5-Sep-05 19:50
Jose Lamas Rios5-Sep-05 19:50 
AnswerRe: Help, error when deleting m_p in destructor. Pin
MailtoGops5-Sep-05 21:57
MailtoGops5-Sep-05 21:57 
AnswerThanks. Pin
followait5-Sep-05 22:56
followait5-Sep-05 22:56 
QuestionLPT Port programming in Win32(sdk) Pin
rohanr2p5-Sep-05 18:31
rohanr2p5-Sep-05 18:31 
AnswerRe: LPT Port programming in Win32(sdk) Pin
khan++5-Sep-05 18:57
khan++5-Sep-05 18:57 
Questionhow to install windows NT services Pin
GflPower5-Sep-05 18:24
GflPower5-Sep-05 18:24 
AnswerRe: how to install windows NT services Pin
GflPower5-Sep-05 18:42
GflPower5-Sep-05 18:42 
AnswerRe: how to install windows NT services Pin
prasad_som5-Sep-05 19:14
prasad_som5-Sep-05 19:14 
AnswerRe: how to install windows NT services Pin
ThatsAlok5-Sep-05 23:30
ThatsAlok5-Sep-05 23:30 
GeneralRe: how to install windows NT services Pin
prasad_som14-Sep-05 22:29
prasad_som14-Sep-05 22:29 
AnswerRe: how to install windows NT services Pin
ThatsAlok14-Sep-05 22:44
ThatsAlok14-Sep-05 22:44 
GeneralRe: how to install windows NT services Pin
ThatsAlok6-Sep-05 0:59
ThatsAlok6-Sep-05 0:59 
AnswerRe: how to install windows NT services Pin
Marc Soleda5-Sep-05 20:44
Marc Soleda5-Sep-05 20: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.