|
马上注册,结识高手,享用更多资源,轻松玩转三维网社区。
您需要 登录 才可以下载或查看,没有帐号?注册
x
错误提示fatal error LNK1104: cannot open file "acrx.lib",怎么解决?程序为:
! c: q3 U$ y. ?4 a+ E& z#include "stdio.h"
; |3 n1 d7 i* ]" s, a#include "conio.h"& f8 R. v( I0 R7 \# q* l
#include <aced.h>
8 ?8 @% f# F( N3 b' L#include <rxregsvc.h>
: J. Z! q' W7 N2 D4 I0 C#include "acedads.h"; O- e* _' U4 K
#include <adscodes.h>
, H+ {! H1 h _# ?void initApp();
5 L6 B3 a" j2 l U6 T9 \2 T! l, Nvoid unloadApp();" r9 a5 P! r, N5 ?3 f3 S* s% ?2 {' V
void usr_app();! l1 X! ]* B8 H. g- o u6 Y
void initApp()9 t2 u+ a+ R9 q2 s6 A5 k8 S" z( g
{8 W7 o' i( ^. I
acedRegCmds->addCommand("Hello_COMMANDS",
) J9 U0 I+ F! y6 T7 O: T "Hello",
, x0 B1 o' Q3 w9 v$ z2 t/ ~ "Hello",5 o# Y) }- Q; _1 C$ a9 |; ~
ACRX_CMD_TRANSPARENT,9 ^; d+ A& h3 B+ L
usr_app);$ y3 ^1 H8 E2 q, V# v, w
}7 g4 O8 t- w8 j; ]0 ^, P9 O$ @2 Z
void unloadApp()" N0 V# E$ y' z, J6 `
{
" s8 U' l) m& V4 b acedRegCmds->removeGroup("Hello_COMMANDS");
8 }" | Y3 l" C( y3 { }
; Y7 r" \) b! C/ u6 q5 L: [* r$ k extern "C" AcRx::AppRetCode
" u- T$ L1 i# g7 J acrxEntryPoint(AcRx::AppMsgCode msg,void* pkt)5 C7 B* N& _- n6 x
{( g9 \4 l# l- g/ K+ J
switch (msg)
( Z7 Y0 x3 t. [$ ?- v% D {
- Y( ~+ v7 B- C, s# A case AcRx::kInitAppMsg:* v* ~2 f/ r- M3 i
acrxDynamicLinker->unlockApplication(pkt);
8 _+ V8 d, G5 E6 J6 U, z acrxRegisterAppMDIAware(pkt);
" F. R- D/ B( v5 R initApp();
; q" n" v% w# g8 Z* b break;
* M$ |/ ~) R; k+ X0 g s# h case AcRx::kUnloadAppMsg:; J; h" Z! N, [) x
unloadApp();
' K5 a5 t1 A8 R break;
. H: m0 Z2 t- A3 k4 ?" M9 t3 y default:
2 {: T1 |7 |& T break;
' U; e# h/ V6 X$ a' A' b }
. d, ?: f1 x0 K) G# n5 Z/ o return AcRx::kRetOK;6 p1 j0 O8 u3 i9 {0 v# X% Q! }
} j0 V% @4 M7 u+ V
void usr_app()
* v/ X" r: O6 ^, m6 j {
, D0 v6 R2 G4 G acedCommand(RTSTR,"CIRCLE",RTSTR,"280,150",RTSTR,"90",0);
, f+ C3 w& Q& c6 x) W acutPrintf("\nHello,World!");
% G2 e: `2 {3 V7 Q1 X }2 R* S* |( H, r# h3 V5 d
请高手指点指点!着急啊! |
|