|
// Create Block.cpp : Defines the entry point for the DLL application.
% P& u1 F2 h, e7 }/// V7 h! f% ^0 l# P0 h& L& o
#include "stdafx.h"
/ F; s1 K$ c: ^% G6 x' A#include <uf.h>
" m& J3 b7 y% E4 c j! W4 G#include <uf_exit.h>+ J; O0 }, N# l1 g+ p8 W4 E1 x
#include <uf_ui.h>
/ q. E4 B6 \% h* T3 ]0 Q% gvoid ufusr(char *param, int * retcode, int paramLen)
. T2 M1 N7 W% N( w{" y4 M5 t( z5 v% U( Y6 f
if (! UF_CALL(UF_initialize()))//获取二次开发许可, }9 ~$ i) k$ G3 @& E) Q' |
{
e+ D7 v8 ]6 |0 {! t do_ugopen_api();//实际工作函数,即用户编写的程序9 K* b1 ^' t0 i. }' L+ y
UF_CALL(UF_terminate());//释放二次开发许可4 K. Z# F, u" @7 [( \
}
9 `$ s+ }; B( U- c5 c% p else) N: G% y$ B2 @
{
4 V H! e% J; K uc1601("获取开发许可失败,退出!",1);//获取二次开发许可失败,提示用户
0 E6 r1 x' G& n) \6 Z* A }
7 q8 z( ], p/ i4 ?. U) E; n8 c int ufusr_ask_unload(void)
7 g% o! }2 D) g7 d' a {. ~1 u, P* w: r' ]( |/ v. K7 e
return(UF_UNLOAD_IMMEDIATELY);//完成操作后立即从内存中卸除
# _, ^. E9 v& S$ ]( P9 _' ~: x}
$ K, t: ~0 ]2 N0 h# T' h+ G" P4 J7 I0 k2 `# b b+ i
**出现的提示为:2 j$ @) h) Q; r+ ]" J
--------------------Configuration: Create Block - Win32 DebUG--------------------
0 b' h5 Y3 ]0 e! a8 W ICompiling...
5 a$ W! [, _! T* j' cCreate Block.cpp
7 i! d! {) ?1 x: }1。e:\open api\create block\create block.cpp(12) : error C2065: 'UF_CALL' : undeclared identifier
- O' d3 {6 ~: k' {& P2 L2。e:\open api\create block\create block.cpp(14) : error C2065: 'do_ugopen_api' : undeclared identifier
3 R7 o! I2 I' R3 |9 T3。e:\open api\create block\create block.cpp(24) : error C2601: 'ufusr_ask_unload' : local function definitions are illegal
/ m) |) T" z" \( r2 o4。e:\open api\create block\create block.cpp(30) : fatal error C1004: unexpected end of file found1 d4 P6 [9 X5 h; A. y3 @# ?
执行 cl.exe 时出错.
' x6 y1 K$ E6 M0 G. h) E0 rCreate Block.obj - 1 error(s), 0 warning(s)
8 c# Q6 J& \+ i) x6 v# a请问我这里的问题出在哪里?) q7 ?& o( q! J Q
1。2。都是说我没有申请变量,3。说我加载功能定义违法?4。未预料的重大错误?9 c5 X9 Q2 @1 J3 [
以上这些是我个人的理解,恳请大虾指点迷经!谢谢! |
|