- 积分
- 157
- 明经币
- 个
- 注册时间
- 2003-5-19
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
<br>
试图建立arx程序时,在编译后,提示 找不到 mfc70.lib 不是为什么?<br>
我的编译环境是 vc.net 本人初学 ObjectARX 还望各位指教<br>
<br>
程序是来自于 arxdev.chm <br>
<br>
ttt.def<br>
<br>
LIBRARY "ttt"<br>
<br>
EXPORTS<br>
acrxEntryPoint PRIVATE<br>
acrxGetApiVersion PRIVATE<br>
<br>
<br>
ttt.cpp<br>
<br>
#include "stdafx.h"<br>
#include "ttt.h"<br>
#include "acutads.h"<br>
#include <rxregsvc.h><br>
#include <aced.h><br>
#include <rxmfcapi.h><br>
<br>
void addCircleThroughMfcCom()<br>
{<br>
return;<br>
}<br>
<br>
static void initApp()<br>
{<br>
acedRegCmds->addCommand(<br>
"ASDK_MFC_COM", <br>
"AsdkMfcComCircle",<br>
"MfcComCircle", <br>
ACRX_CMD_MODAL, <br>
addCircleThroughMfcCom);<br>
}<br>
<br>
static void unloadApp()<br>
{<br>
acedRegCmds->removeGroup("ASDK_MFC_COM");<br>
}<br>
<br>
<br>
extern "C" AcRx::AppRetCode<br>
acrxEntryPoint(AcRx::AppMsgCode msg, void* appId)<br>
{<br>
<br>
switch(msg) {<br>
<br>
case AcRx::kInitAppMsg:<br>
// Allow application to be unloaded<br>
// Without this statement, AutoCAD will<br>
// not allow the application to be unloaded<br>
// except on AutoCAD exit.<br>
//<br>
acrxUnlockApplication(appId);<br>
<br>
// Register application as MDI aware.<br>
// Without this statement, AutoCAD will<br>
// switch to SDI mode when loading the<br>
// application.<br>
//<br>
acrxRegisterAppMDIAware(appId);<br>
initApp(); <br>
acutPrintf("\nExample Application Loaded");<br>
break;<br>
<br>
case AcRx::kUnloadAppMsg:<br>
unloadApp(); <br>
acutPrintf("\nExample Application Unloaded");<br>
break;<br>
}<br>
return AcRx::kRetOK;<br>
}<br>
<br>
|
|