Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Porting MFC to Linux w/ wxWidget

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Porting MFC to Linux w/ wxWidget
#4500
Posted by: 2004-06-17 02:55:51
Hi,

I am trying to port an MFC code to a Linux system. MFC has the very useful bool ReadString(String& ) fct out of the CFile class which is exactly what I need. The wxFile has Read which is not similar and I'm not sure how to use it...anyone has an idea???

MFC is calling File.ReadString(csTxt);
and i need to have one line of a text read and put in the csTxt string.

Thank you
Message2. Re: Porting MFC to Linux w/ wxWidget
#4501
Posted by: upCASE 2004-06-17 04:05:19
Hi!
wxFile and wxFFile don't offer something similar. But check wxTextFile for another optional way to do it. Use GetFirstLine() or GetLine().
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message3. Re: Porting MFC to Linux w/ wxWidget
#4502
Posted by: upCASE 2004-06-17 04:09:06
Hi!
Forgot: Look at wxTextInputStream for another way :)
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥1,800.00 ·
 
 
¥489.00 ·
 
 
¥288.00 ·
 
 
¥908.00 ·
 
 
¥748.00 ·
 
 
¥264.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0