|
各位大侠,小弟编的 ActiveX 组件 实现参数化设计,可是 好像不能实现,请大家帮我看看代码有问题吗
, T3 V1 W; s* U5 ^, l代码如下:
7 o% \( h7 o& g+ ISTDMETHODIMP Cjk::ug_open(BSTR fieldName): P5 g( ^. S$ K0 b6 t+ p3 E! E) x
{; H& I; d$ ]# E% x; b8 a
AFX_MANAGE_STATE(AfxGetStaticModuleState())
# n- @ ? e9 Q7 C+ X5 o// TODO: Add your implementation code here9 g1 A! }& E, ]+ t6 ^0 }! B
tag_t part;! Z6 V; ~4 d" t' _" i$ @/ @1 r
UF_PART_load_status_t error_status;
3 `2 x- P( \8 d% V6 U0 G0 \5 rUF_PART_open((char *)(_bstr_t)fieldName,&part,&error_status);+ [* s1 |. x: x. z0 w- T0 g
return S_OK;
# f/ ?+ P1 m' i# e. t0 v' a}
" J) E( n; b2 D" ]( z, n) _! u$ {STDMETHODIMP Cjk::import_exp(BSTR fieldName)
! \5 f- k8 O6 X, c4 |% h- h1 }1 \* s{
+ z' Y# _) J" e. D8 iAFX_MANAGE_STATE(AfxGetStaticModuleState())6 {% X( O0 g/ S7 R
// TODO: Add your implementation code here
6 n+ c w/ g1 dUF_MODL_import_exp((char *)(_bstr_t)fieldName,0);
+ s- ^( {6 {6 b# W" ^# LUF_MODL_update();//更新模型/ S2 M; J- c! S
UF_PART_save();//保存, O! l3 i* m3 {+ g3 {
return S_OK;
+ A0 B# e5 K4 w% L7 M# x4 i4 a} |
|