typedef struct DataField_String { char *FieldName; char *FieldVal; }; typedef struct DataField_Double { char *FieldName; DOUBLE FieldVal; }; typedef struct DataField_long { char *FieldName; long FieldVal; }; typedef struct PipeExtentionData { DataField_String PipeType; DataField_String DN; DataField_Double D; DataField_Double b; DataField_Double High; DataField_Double Length; DataField_long Index; }; //数据初始化  ipeExtentionData PipeData= { {"管道类型","焊接钢管"}, {"公称直径","DN20"}, {"管道外径",0.0}, {"管道壁厚",0.0}, {"管道标高",0.0}, {"管段长度",0.0}, {"管段编号",1} }; acedGetString(0,"\n管道类型:",PipeData.PipeType.FieldVal); acutPrintf("\n管道类型:%S",PipeData.PipeType.FieldVal);
以上代码编译通过,运行时输入后出错,错误提示:“未处理的异常c0000005(Access Violation Writing 0x182b174),地址:77C17AD8h” 请高手指教该如何解决,谢谢!!! |