摘要:
HWND COMB4=GetDlgItem(hDlg,IDC_EDIT24); TCHAR m_Text5[80]; GetWindowText(COMB4,m_Text5,0); TCHAR ab_total[80]; sprintf(ab_total,"for n=1 to $PFr*.count do($PFr*[n].Growth_Time =%s)",m_Text5); ::ExecuteMAXScriptScript(ab_total); 以上要注意的是:为了在随后的函数如GetWindowText和sprintf中赋值。其值必须在该函数之前被分配,如TCHAR
阅读全文