Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

急問VC++5.0 CString

0 views
Skip to first unread message

笑天下

unread,
Oct 12, 1998, 3:00:00 AM10/12/98
to
==> 於 ㊣ 鐵道老天使 ㊣ (ori...@vlsi1.iie.ncku.edu.tw) 文中述及:
: 欲將 CFileDialog 所取得之path和filename放到 edit box中....
: 其中 m_edit 是該 edit box 的 control ID 所對應之 member varible
: type 為 Cstring....
: 程式如下:
: CFileDialog opendialog( TRUE, 0, 0, OFN_FILEMUSTEXIST, filter, this );
: if (opendialog.DoModal() == IDOK)
: {
: CString filename = opendialog.GetPathName();
: m_edit = filename; // 這一行這樣寫對嗎?!
~~~~~~ -> 好像怪怪的,沒有該 edit box 的 name
除非是在此 edit box 中。
: }
: 說穿了, 只是兩個CString 之 copy, 但我找 on-line help 都找不到正確用法..
--
[mΞ Origin: 逢甲蒼穹資訊網 <bbs.fcu.edu.tw> [FROM: 140.134.24.83]

0 new messages