- UID
- 4265
- 积分
- 72
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-4-23
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2002-6-3 02:44:47
|
显示全部楼层
我在CDocData作出了声明,但出错了,
我再试一试你的办法吧!
//CDocData.cpp部分代码:
AsdkDataManager<CDocData> DocVars;
CDocData::CDocData()
{
m_Scale=2000;
Begun=false;
First=true;
pPolyXL=new AcDbPolyline(1);
}
//StdArx.h部分代码:
extern AsdkDataManager<CDocData> DocVars;
#define WorldInfo DocVars.docData();
//前两个错误的代码:
WorldInfo.Begun=true;
WorldInfo.m_Scale=atoi(m_scalePm);
以后凡涉及到WorldInfo.的都出错。
谢谢帮忙!
//编译信息:
--------------------Configuration: rail - Win32 Debug--------------------
Compiling...
pmsjDlg.cpp
D:\rail\rail\pmsjDlg.cpp(84) : error C2143: syntax error : missing ';' before '.'
D:\rail\rail\pmsjDlg.cpp(85) : error C2143: syntax error : missing ';' before '.'
railCommands.cpp
D:\rail\rail\railCommands.cpp(64) : error C2143: syntax error : missing ')' before ';'
D:\rail\rail\railCommands.cpp(64) : error C2451: conditional expression of type 'class CDocData' is illegal
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\rail\rail\railCommands.cpp(64) : error C2143: syntax error : missing ';' before '.'
D:\rail\rail\railCommands.cpp(64) : error C2059: syntax error : ')'
D:\rail\rail\railCommands.cpp(65) : error C2143: syntax error : missing ';' before '{'
D:\rail\rail\railCommands.cpp(70) : error C2181: illegal else without matching if
D:\rail\rail\railCommands.cpp(81) : error C2143: syntax error : missing ')' before ';'
D:\rail\rail\railCommands.cpp(81) : error C2451: conditional expression of type 'class CDocData' is illegal
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\rail\rail\railCommands.cpp(81) : error C2143: syntax error : missing ';' before '.'
D:\rail\rail\railCommands.cpp(81) : error C2059: syntax error : ')'
D:\rail\rail\railCommands.cpp(82) : error C2143: syntax error : missing ';' before '{'
D:\rail\rail\railCommands.cpp(87) : error C2181: illegal else without matching if
D:\rail\rail\railCommands.cpp(97) : error C2143: syntax error : missing ')' before ';'
D:\rail\rail\railCommands.cpp(97) : error C2451: conditional expression of type 'class CDocData' is illegal
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\rail\rail\railCommands.cpp(97) : error C2143: syntax error : missing ';' before '.'
D:\rail\rail\railCommands.cpp(97) : error C2059: syntax error : ')'
D:\rail\rail\railCommands.cpp(98) : error C2143: syntax error : missing ';' before '{'
D:\rail\rail\railCommands.cpp(103) : error C2181: illegal else without matching if
D:\rail\rail\railCommands.cpp(113) : error C2143: syntax error : missing ')' before ';'
D:\rail\rail\railCommands.cpp(113) : error C2451: conditional expression of type 'class CDocData' is illegal
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\rail\rail\railCommands.cpp(113) : error C2143: syntax error : missing ';' before '.'
D:\rail\rail\railCommands.cpp(113) : error C2059: syntax error : ')'
D:\rail\rail\railCommands.cpp(114) : error C2143: syntax error : missing ';' before '{'
D:\rail\rail\railCommands.cpp(119) : error C2181: illegal else without matching if
D:\rail\rail\railCommands.cpp(139) : error C2143: syntax error : missing ')' before ';'
D:\rail\rail\railCommands.cpp(139) : error C2451: conditional expression of type 'class CDocData' is illegal
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\rail\rail\railCommands.cpp(139) : error C2143: syntax error : missing ';' before '.'
D:\rail\rail\railCommands.cpp(139) : error C2059: syntax error : ')'
D:\rail\rail\railCommands.cpp(140) : error C2143: syntax error : missing ';' before '{'
D:\rail\rail\railCommands.cpp(145) : error C2181: illegal else without matching if
Generating Code...
Error executing cl.exe.
Chenrail.arx - 32 error(s), 0 warning(s) |
|