今天刚写好一个程序,向发布出来,
在工程已经设置成MFC静态链接库,生成的EXE程序在有VC的系统里 可以正常运行,
但在没有安装VC的就没反应了~
这是为什么啊?求高手帮忙!下面是其中一部分代码~ BOOL CKuDlg::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
m_BmpBtn1.LoadBitmaps(IDB_BITMAP1,IDB_BITMAP9);
m_BmpBtn1.SubclassDlgItem(IDC_NOINF,this);
m_BmpBtn1.SizeToContent();
return TRUE; // return TRUE unless you set the focus to a control
}
在工程已经设置成MFC静态链接库,生成的EXE程序在有VC的系统里 可以正常运行,
但在没有安装VC的就没反应了~
这是为什么啊?求高手帮忙!下面是其中一部分代码~ BOOL CKuDlg::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
m_BmpBtn1.LoadBitmaps(IDB_BITMAP1,IDB_BITMAP9);
m_BmpBtn1.SubclassDlgItem(IDC_NOINF,this);
m_BmpBtn1.SizeToContent();
return TRUE; // return TRUE unless you set the focus to a control
}
是C/C++ ->code generation 这么?
然后设哪个??