几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(C++) (http://www.dimcax.com/hust/forumdisplay.php?f=34)
-   -   【转帖】区区一个helloworld怎么这么多warnings (http://www.dimcax.com/hust/showthread.php?t=7195)

yang686526 2009-04-16 09:09 PM

【转帖】区区一个helloworld怎么这么多warnings
 
区区一个helloworld怎么这么多warnings
区区一个helloworld怎么这么多warnings
提示如下
正在编译...
helloword.cpp
c:\objectarx 4\inc\dbid.h(197) : warning c4311: “类型转换” : 从“const acdbstub *”到“unsigned long”的指针截断
c:\objectarx 4\inc\dbid.h(221) : warning c4311: “类型转换” : 从“const acdbstub *”到“unsigned long”的指针截断
c:\objectarx 4\inc\dbid.h(225) : warning c4312: “类型转换” : 从“const unsigned long”转换到更大的“acdbstub *”
c:\objectarx 4\inc\dbid.h(251) : warning c4311: “类型转换” : 从“const acdbstub *”到“unsigned long”的指针截断
c:\objectarx 4\inc\dbid.h(271) : warning c4312: “类型转换” : 从“const unsigned long”转换到更大的“acdbstub *”
c:\objectarx 4\inc\dbid.h(297) : warning c4311: “类型转换” : 从“const acdbstub *”到“unsigned long”的指针截断
c:\objectarx 4\inc\dbid.h(317) : warning c4312: “类型转换” : 从“const unsigned long”转换到更大的“acdbstub *”
c:\objectarx 4\inc\dbid.h(343) : warning c4311: “类型转换” : 从“const acdbstub *”到“unsigned long”的指针截断
c:\objectarx 4\inc\dbid.h(363) : warning c4312: “类型转换” : 从“const unsigned long”转换到更大的“acdbstub *”
c:\objectarx 4\inc\dbid.h(388) : warning c4311: “类型转换” : 从“const acdbstub *”到“unsigned long”的指针截断
c:\objectarx 4\inc\dbid.h(408) : warning c4312: “类型转换” : 从“const unsigned long”转换到更大的“acdbstub *”
c:\objectarx 4\inc\dbidapps.h(159) : warning c4311: “类型转换” : 从“const acdbstub *”到“unsigned long”的指针截断
c:\objectarx 4\inc\dbidapps.h(163) : warning c4311: “类型转换” : 从“const acdbstub *”到“unsigned long”的指针截断
c:\objectarx 4\inc\dbidapps.h(167) : warning c4311: “类型转换” : 从“const acdbstub *”到“unsigned long”的指针截断
c:\objectarx 4\inc\dbidapps.h(171) : warning c4311: “类型转换” : 从“const acdbstub *”到“unsigned long”的指针截断
c:\objectarx 4\inc\dbidapps.h(175) : warning c4311: “类型转换” : 从“const acdbstub *”到“unsigned long”的指针截断
c:\objectarx 4\inc\dbidapps.h(179) : warning c4311: “类型转换” : 从“const acdbstub *”到“unsigned long”的指针截断
正在链接...
正在创建库 debug/helloword.lib 和对象 debug/helloword.exp
rxapi.lib(libinit.obj) : warning lnk4099: 未发现 pdb“msvc.pdb”有“c:\objectarx 4\lib\rxapi.lib”或者在“c:\arx4\helloword\debug\msvc.pdb”中;正在链接对象,如同没有调试信息一样
acedapi.lib(acedstub.obj) : warning lnk4099: 未发现 pdb“corehdr.pdb”有“c:\objectarx 4\lib\acedapi.lib”或者在“c:\arx4\helloword\debug\corehdr.pdb”中;正在链接对象,如同没有调试信息一样
生成日志保存在“file://c:\arx4\helloword\debug\buildlog.htm”中
helloword - 0 错误,19 警告
---------------------- 完成 ---------------------
生成:1 已成功, 0 已失败, 0 已跳过
这里是源代码,我用的是vs.net2+arx4
// helloword.cpp : 定义 dll 应用程序的入口点。
//
#include "stdafx.h"
bool apientry dllmain( handle hmodule,
dword ul_reason_for_call,
lpvoid lpreserved
)
{
return true;
}
#include <aced.h>
#include <rxregsvc.h>
void initapp();
void unloadapp();
void helloworld();
//
void initapp()
{
acedregcmds->addcommand("helloword_commands",
"hello",
"bonjour",
acrx_cmd_transparent,
helloworld);
}
void unloadapp()
{
acedregcmds->removegroup("helloworld_commands");
}
void helloworld()
{
acutprintf("\nhello world");
}
extern "c" acrx::appretcode
acrxentrypoint(acrx::appmsgcode msg,void* pkt)
{
switch(msg)
{
case acrx::kinitappmsg:
acrxdynamiclinker->unlockapplication(pkt);
acrxregisterappmdiaware(pkt);
initapp();
break;
case acrx::kunloadappmsg:
unloadapp();
break;
default:
break;
}
return acrx::kretok;

}


所有的时间均为北京时间。 现在的时间是 10:57 PM.