Click here to Skip to main content
15,888,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
NewsNetworking Pin
sebastianos19-Sep-05 4:51
sebastianos19-Sep-05 4:51 
Question[Message Deleted] Pin
valerie9919-Sep-05 4:45
valerie9919-Sep-05 4:45 
AnswerRe: The one and only object been double defined Pin
MailtoGops19-Sep-05 4:59
MailtoGops19-Sep-05 4:59 
Generalthanks, the Dlg is not getting value Pin
valerie9919-Sep-05 5:28
valerie9919-Sep-05 5:28 
GeneralRe: thanks, the Dlg is not getting value Pin
David Crow19-Sep-05 7:43
David Crow19-Sep-05 7:43 
Generalthe more of CSurchrgDlg Pin
valerie9919-Sep-05 10:36
valerie9919-Sep-05 10:36 
GeneralRe: the more of CSurchrgDlg Pin
David Crow19-Sep-05 10:42
David Crow19-Sep-05 10:42 
GeneralOnInitDialog() Pin
valerie9920-Sep-05 3:53
valerie9920-Sep-05 3:53 
thanks for you reply, I could remove the m_theApp and the app would still crash on the same spot.
the m_vecBuffer is defined like this :
std::vector<receiverec> m_vecBuffer;
in dlg.cpp const std::vector<receivebin>::size_type BUFFER_SIZE = 10000;
BOOL CSurchrgDlg::OnInitDialog()
{
CDialog::OnInitDialog();

// Add "About..." menu item to system menu.

// IDM_ABOUTBOX must be in the system command range.
ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
ASSERT(IDM_ABOUTBOX < 0xF000);

CMenu* pSysMenu = GetSystemMenu(FALSE);
if (pSysMenu != NULL)
{
CString strAboutMenu;
strAboutMenu.LoadString(IDS_ABOUTBOX);
if (!strAboutMenu.IsEmpty())
{
pSysMenu->AppendMenu(MF_SEPARATOR);
pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
}
}

// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon

// TODO: Add extra initialization here

CWinApp& theApp = (* (static_cast<cwinapp*> (AfxGetApp())));

m_bCanceled = false;
m_strCycle = "";

//PostMessage( WM_COMMAND, IDC_OK );

m_pThread = AfxBeginThread((AFX_THREADPROC)Run, (LPVOID)this, THREAD_PRIORITY_NORMAL, 0);

return TRUE; // return TRUE unless you set the focus to a control
}

void CSurchrgDlg::OnSysCommand(UINT nID, LPARAM lParam)
{
if ((nID & 0xFFF0) == IDM_ABOUTBOX)
{
CAboutDlg dlgAbout;
dlgAbout.DoModal();
}
else
{
CDialog::OnSysCommand(nID, lParam);
}
}
GeneralRe: OnInitDialog() Pin
David Crow20-Sep-05 4:16
David Crow20-Sep-05 4:16 
GeneralIt crash when it exits...:( Pin
valerie9920-Sep-05 6:30
valerie9920-Sep-05 6:30 
GeneralRe: It crash when it exits...:( Pin
David Crow20-Sep-05 6:57
David Crow20-Sep-05 6:57 
Generaleven if the breakpoint set on dlg.DoModal(); Pin
valerie9920-Sep-05 10:56
valerie9920-Sep-05 10:56 
GeneralRe: even if the breakpoint set on dlg.DoModal(); Pin
David Crow21-Sep-05 3:28
David Crow21-Sep-05 3:28 
Generalwish I could Pin
valerie9921-Sep-05 5:25
valerie9921-Sep-05 5:25 
QuestionNetwork program Pin
mikobi19-Sep-05 4:43
mikobi19-Sep-05 4:43 
AnswerRe: Network program Pin
MailtoGops19-Sep-05 5:16
MailtoGops19-Sep-05 5:16 
GeneralRe: Network program Pin
mikobi19-Sep-05 6:31
mikobi19-Sep-05 6:31 
GeneralRe: Network program Pin
Maximilien19-Sep-05 6:55
Maximilien19-Sep-05 6:55 
GeneralRe: Network program Pin
mikobi19-Sep-05 20:21
mikobi19-Sep-05 20:21 
GeneralRe: Network program Pin
ThatsAlok19-Sep-05 18:27
ThatsAlok19-Sep-05 18:27 
AnswerRe: Network program Pin
David Crow19-Sep-05 7:49
David Crow19-Sep-05 7:49 
GeneralRe: Network program Pin
mikobi19-Sep-05 20:23
mikobi19-Sep-05 20:23 
GeneralRe: Network program Pin
ThatsAlok20-Sep-05 3:41
ThatsAlok20-Sep-05 3:41 
GeneralRe: Network program Pin
mikobi20-Sep-05 3:53
mikobi20-Sep-05 3:53 
GeneralRe: Network program Pin
mikobi20-Sep-05 4:00
mikobi20-Sep-05 4:00 

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.