Click here to Skip to main content
15,902,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How do i read internet files through C++? Pin
YaronNir30-Apr-06 21:20
YaronNir30-Apr-06 21:20 
AnswerRe: How do i read internet files through C++? Pin
_AnsHUMAN_ 30-Apr-06 22:09
_AnsHUMAN_ 30-Apr-06 22:09 
AnswerRe: How do i read internet files through C++? Pin
Ganesh_T1-May-06 0:46
Ganesh_T1-May-06 0:46 
Questionget current directory Pin
rahultaing30-Apr-06 15:13
rahultaing30-Apr-06 15:13 
AnswerRe: get current directory Pin
Demian Panello30-Apr-06 16:29
Demian Panello30-Apr-06 16:29 
QuestionMultiple Views Pin
Demian Panello30-Apr-06 12:24
Demian Panello30-Apr-06 12:24 
AnswerRe: Multiple Views Pin
Ryan Binns30-Apr-06 18:19
Ryan Binns30-Apr-06 18:19 
GeneralRe: Multiple Views Pin
Demian Panello1-May-06 5:43
Demian Panello1-May-06 5:43 
Ok Ryan.
Thank you for your answer.

But how do you insert the text in the edit view?, using SetWindowText() member function?, because I'm doing the following in OnUpdate() and it doesn't work:

CString tmp;<br />
<br />
for(i=0; i < GetDocument()->m_dumpData.GetSize(); i++)<br />
{<br />
  tmp += GetDocument()->m_dumpData[i]; <br />
			<br />
}<br />
<br />
GetEditCtrl().SetWindowText(tmp); 


m_dumpData is the StringArray object that holds the lines of text, and I have traced that object inside the loop and I could see the data.
tmp is a CString object and my idea was add every line of text in the CStringArray to tmp and then show it with SetWindowText(). Nothing happen, no exception and no text.
Should I use a CView instead of CEditView and try to print the text lines using TextOut??
I did that before and it works, but I had some problems scrolling the view, then I though to change the view to CEditView because I think is more "natural" talking about text files.
The largest files is about 32kb, so, an Edit control should works fine.

Thank you.

Demian.

"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my telephone."

-Bjarne Stroustrup, computer science professor, designer of C++
programming language (1950- )
QuestionRe: Multiple Views Pin
David Crow1-May-06 6:11
David Crow1-May-06 6:11 
AnswerRe: Multiple Views Pin
Demian Panello1-May-06 6:38
Demian Panello1-May-06 6:38 
GeneralRe: Multiple Views Pin
David Crow1-May-06 7:18
David Crow1-May-06 7:18 
GeneralRe: Multiple Views Pin
Demian Panello1-May-06 7:26
Demian Panello1-May-06 7:26 
QuestionRe: Multiple Views Pin
David Crow1-May-06 7:38
David Crow1-May-06 7:38 
AnswerRe: Multiple Views Pin
Demian Panello1-May-06 8:20
Demian Panello1-May-06 8:20 
AnswerRe: Multiple Views Pin
Demian Panello1-May-06 8:27
Demian Panello1-May-06 8:27 
GeneralRe: Multiple Views Pin
Maxwell Chen1-May-06 5:45
Maxwell Chen1-May-06 5:45 
GeneralRe: Multiple Views Pin
Demian Panello1-May-06 6:22
Demian Panello1-May-06 6:22 
GeneralRe: Multiple Views Pin
David Crow1-May-06 7:20
David Crow1-May-06 7:20 
GeneralRe: Multiple Views Pin
Maxwell Chen1-May-06 7:44
Maxwell Chen1-May-06 7:44 
GeneralRe: Multiple Views Pin
Demian Panello1-May-06 8:07
Demian Panello1-May-06 8:07 
Questiontypedef question Pin
theladsmith30-Apr-06 12:01
theladsmith30-Apr-06 12:01 
AnswerRe: typedef question Pin
Stephen Hewitt30-Apr-06 13:42
Stephen Hewitt30-Apr-06 13:42 
GeneralRe: typedef question Pin
theladsmith30-Apr-06 21:33
theladsmith30-Apr-06 21:33 
GeneralRe: typedef question Pin
Stephen Hewitt30-Apr-06 21:42
Stephen Hewitt30-Apr-06 21:42 
GeneralRe: typedef question Pin
theladsmith1-May-06 1:43
theladsmith1-May-06 1:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.