Click here to Skip to main content
15,921,837 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAny one interested to do Activex component project for money in VC++ Pin
kishore5281-Mar-10 19:41
kishore5281-Mar-10 19:41 
AnswerRe: Any one interested to do Activex component project for money in VC++ Pin
Nelek1-Mar-10 20:15
protectorNelek1-Mar-10 20:15 
QuestionActiveX spreadsheet component Pin
sims9741-Mar-10 10:37
sims9741-Mar-10 10:37 
QuestionInvalid access to memory location - in WriteFile - writting to COM port. [modified] Pin
Vaclav_1-Mar-10 7:09
Vaclav_1-Mar-10 7:09 
AnswerRe: Invalid access to memory location - in WriteFile - writting to COM posrt. Pin
Avi Berger1-Mar-10 7:43
Avi Berger1-Mar-10 7:43 
GeneralRe: Invalid access to memory location - in WriteFile - writting to COM posrt. Pin
Vaclav_1-Mar-10 10:37
Vaclav_1-Mar-10 10:37 
GeneralRe: Invalid access to memory location - in WriteFile - writting to COM posrt. Pin
David Crow1-Mar-10 15:26
David Crow1-Mar-10 15:26 
GeneralRe: Invalid access to memory location - in WriteFile - writting to COM posrt. Pin
Vaclav_1-Mar-10 17:05
Vaclav_1-Mar-10 17:05 
GeneralRe: Invalid access to memory location - in WriteFile - writting to COM posrt. Pin
Avi Berger1-Mar-10 18:03
Avi Berger1-Mar-10 18:03 
GeneralRe: Invalid access to memory location - in WriteFile - writting to COM posrt. Pin
Vaclav_1-Mar-10 18:21
Vaclav_1-Mar-10 18:21 
GeneralRe: Invalid access to memory location - in WriteFile - writting to COM posrt. Pin
Iain Clarke, Warrior Programmer2-Mar-10 6:50
Iain Clarke, Warrior Programmer2-Mar-10 6:50 
GeneralRe: Invalid access to memory location - in WriteFile - writting to COM posrt. Pin
David Crow2-Mar-10 3:42
David Crow2-Mar-10 3:42 
QuestionWrapping toolbar label text Pin
David Ferreira1-Mar-10 2:43
David Ferreira1-Mar-10 2:43 
QuestionStrange Issue Pin
john563228-Feb-10 23:35
john563228-Feb-10 23:35 
AnswerRe: Strange Issue Pin
john56321-Mar-10 0:35
john56321-Mar-10 0:35 
AnswerRe: Strange Issue Pin
Code-o-mat1-Mar-10 1:47
Code-o-mat1-Mar-10 1:47 
GeneralRe: Strange Issue Pin
john56321-Mar-10 2:06
john56321-Mar-10 2:06 
GeneralRe: Strange Issue Pin
Code-o-mat1-Mar-10 2:51
Code-o-mat1-Mar-10 2:51 
QuestionAES 128bit encryption using CryptoAPI Pin
Varghese Paul M28-Feb-10 22:13
Varghese Paul M28-Feb-10 22:13 
AnswerRe: AES 128bit encryption using CryptoAPI Pin
Richard MacCutchan28-Feb-10 23:52
mveRichard MacCutchan28-Feb-10 23:52 
GeneralRe: AES 128bit encryption using CryptoAPI Pin
Rajesh R Subramanian1-Mar-10 6:25
professionalRajesh R Subramanian1-Mar-10 6:25 
GeneralRe: AES 128bit encryption using CryptoAPI Pin
Richard MacCutchan1-Mar-10 6:33
mveRichard MacCutchan1-Mar-10 6:33 
QuestionHow to create a form or dailog in MFC-MDI ? Pin
Patrick Tang28-Feb-10 21:31
Patrick Tang28-Feb-10 21:31 
AnswerRe: How to create a form or dailog in MFC-MDI ? Pin
CPallini28-Feb-10 21:40
mveCPallini28-Feb-10 21:40 
AnswerRe: How to create a form or dailog in MFC-MDI ? Pin
Patrick Tang28-Feb-10 22:23
Patrick Tang28-Feb-10 22:23 
I find error because I Create AboutDailog and i show this dailog;

but AboutDailog code same of system create CAboutDlg :

----------AboutDailog.h---------------------
class AboutDailog : public CDialog
{
DECLARE_DYNAMIC(AboutDailog)

public:
AboutDailog();
virtual ~AboutDailog();

protected:
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnFileAbout();
};
----------AboutDailog.cpp---------------------

// AboutDailog.cpp : 实现文件
//

#include "stdafx.h"
#include "MyControlTest.h"
#include "AboutDailog.h"


// AboutDailog

IMPLEMENT_DYNAMIC(AboutDailog, CWnd)

AboutDailog::AboutDailog()
{

}

AboutDailog::~AboutDailog()
{
}


BEGIN_MESSAGE_MAP(AboutDailog, CWnd)
ON_COMMAND(ID_FILE_ABOUT, &AboutDailog::OnFileAbout)
END_MESSAGE_MAP()



// AboutDailog 消息处理程序



void AboutDailog::OnFileAbout()
{
// TODO: 在此添加命令处理程序代码
AboutDailog aboutDlg;
aboutDlg.DoModal();
}

----------CAboutDlg.h---------------------
class CAboutDlg : public CDialog
{
public:
CAboutDlg();

// 对话框数据
enum { IDD = IDD_ABOUTBOX };

protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持

// 实现
protected:
DECLARE_MESSAGE_MAP()
};
----------CAboutDlg.cpp---------------------

CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
}

void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
}

BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
END_MESSAGE_MAP()

// 用于运行对话框的应用程序命令
void CMyControlTestApp::OnAppAbout()
{
CAboutDlg aboutDlg;
aboutDlg.DoModal();

/*AboutDailog aboutDlg;
aboutDlg.DoModal();*/
}

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.