我在做一个启动界面,在把 两个对话框 做成同时出现的时候,
出错了
error C2143: syntax error : missing ';' before '*'
error C2501: 'CPaintDlg' : missing storage-class or type specifiers
error C2501: 'm_dlgPaint' : missing storage-class or type specifiers
Error executing cl.exe.Desk3.exe - 3 error(s), 0 warning(s)//CPaintDlg 为第二 个对话框的类名
//m_dlgPaint 是在第一个对话框的OnInitDialog()里用CPaintDlg* m_dlgPaint;
如果哪位牛人可以给出启动界面的关键原代码的话,另开贴给高分;
出错了
error C2143: syntax error : missing ';' before '*'
error C2501: 'CPaintDlg' : missing storage-class or type specifiers
error C2501: 'm_dlgPaint' : missing storage-class or type specifiers
Error executing cl.exe.Desk3.exe - 3 error(s), 0 warning(s)//CPaintDlg 为第二 个对话框的类名
//m_dlgPaint 是在第一个对话框的OnInitDialog()里用CPaintDlg* m_dlgPaint;
如果哪位牛人可以给出启动界面的关键原代码的话,另开贴给高分;
把CPaintDlg* m_dlgPaint放到onshow中试试。
onshow
是类吗 ?
怎么没有 啊?
#include "stdafx.h"
#include "Desk3.h"
#include "PaintDlg.h"
#include "Desk3Dlg.h"
//第二个对话框的
#include "stdafx.h"
#include "Desk3.h"
#include "PaintDlg.h"
#include "Desk3Dlg.h"
http://expert.csdn.net/Expert/topic/1491/1491444.xml?temp=.1083338
最好 CPaintDlg* m_dlgPaint = new CPaintDlg;
.....
我定义了m_dlgPaint = NULL;
这样不可以吗 ?