//在尺寸前加G的标记
char txt[2];
int num_text=1;
sprintf(buf1,"char_tag=%d\n",char_tag);
UF_UI_write_listing_window("\n");
UF_UI_write_listing_window(buf1);
UF_DRF_appended_text_p_t appended_text;
appended_text->location=UF_DRF_APPENDED_TEXT_BEFORE;
appended_text->num_lines=1;
strcpy(txt, "G");
char *p = txt;
appended_text->text= &p;
sprintf(buf1,"char_tag=%d\n",char_tag);
UF_UI_write_listing_window(buf1);
UF_DRF_set_appended_text(char_tag,num_text,appended_text);
我试着写了上面的一段话,其中char_tag是前面选择单个对象对话框取得的一个dimension的tag,每次运行都可以输出第一个buf1,然后就报内存冲突的错误,所以可能就是UF_DRF_appended_text_p_t 负值出了问题,如果把那几句注释掉,就可以输出下面的一个buf1,请问高手该如何解决~~~
版主也来帮忙看看吧,谢谢阿~~~ |