|
我用vc6.0建立了一个unigraphics nx appwizard v1工程,在ug入口函数中添加了如下代码:
9 H$ l% j3 S1 ?. A char title_string[]="消息";0 ]% g7 O4 |2 ^9 g) _
char messages[132+1]="是否选择下一相邻轮廓";6 x2 c; k+ R/ S& @* \: Z' }6 }
char *p=messages;! S" A- j. c7 O/ z' a1 g8 g
UF_UI_MESSAGE_DIALOG_TYPE dialog_type=UF_UI_MESSAGE_QUESTION;/ x* B) `! @5 S6 o- j; y5 @/ T
UF_UI_message_buttons_t buttons;
+ P9 t; e; r: b( c: A/ P int response=0;
& D/ w* \. C+ {, S9 P buttons.button1=true;2 M/ F3 e j# C5 Y
buttons.button2=true;: v, n+ i( x; }1 @9 Y) @
buttons.label1="是";5 O4 I6 L! j1 |( u/ Y6 O
buttons.label2="否";
! d: R$ R/ t' v. Q9 i$ F buttons.response1=1;
/ |! c& e' k' q/ u buttons.response2=2;
( ]* ?) |" ]2 e2 o/ c' f2 f, b UF_UI_message_dialog(title_string,dialog_type,&p,1,0,&buttons,&response);
" \+ n" ?, q: ?8 m* p3 K编译得到该dll文件,可是在UG中调用时看不见该对话框。
: x0 @/ u$ t& t2 R7 r. Y
2 \2 }* W; l9 y; p" O2 b请问这是怎么回事啊?哪位高手帮帮忙啊! |
|