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,
Sep 22, 1998, 3:00:00 AM9/22/98
to

欲將 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; // 這一行這樣寫對嗎?!
}

說穿了, 只是兩個CString 之 copy, 但我找 on-line help 都找不到正確用法..
--
╭══╮ ╭══╮ ═╦═ ╭══╮ ╭╮ ╭   
║ ║ ║ ║ ║ ║ ║ ║║ ║   臺鐵僅存的三字站名
║ ║ ╠═╦╯ ║ ║ ║ ║╰╮║ 四腳亭 三貂嶺 九贊頭 
║ ║ ║ ╰╮ ║ ║ ║ ║ ║║ 白沙屯 臺中港 林鳳營
╰══╯ ╯ ╰ ═╩═ ╰══╯ ╯ ╰╯ 六塊厝 九曲堂 太麻里
E-mail:or...@robot.csie.ntu.edu.tw 來自 諸羅 的 ㊣ 鐵道老天使 ㊣ 
--
Origin: 成大資工BBS站 (vlsi1.iie.ncku.edu.tw) From: agent.csie.ntu.edu.tw

FISH

unread,
Sep 25, 1998, 3:00:00 AM9/25/98
to
看不出該有何問題

㊣ 鐵道老天使 ㊣ 撰寫於文章 <3QaFL8$4...@vlsi1.iie.ncku.edu.tw>...

0 new messages