Click here to Skip to main content
15,909,503 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralOpen the other Application Pin
ytod27-Oct-04 16:09
ytod27-Oct-04 16:09 
GeneralRe: Open the other Application Pin
bryce27-Oct-04 17:52
bryce27-Oct-04 17:52 
GeneralRe: Open the other Application Pin
ytod27-Oct-04 17:59
ytod27-Oct-04 17:59 
GeneralRe: Open the other Application Pin
ThatsAlok27-Oct-04 18:47
ThatsAlok27-Oct-04 18:47 
GeneralRe: Open the other Application Pin
Ranjish27-Oct-04 18:43
Ranjish27-Oct-04 18:43 
GeneralInteractive Online Course. Pin
Zak_Man27-Oct-04 15:50
Zak_Man27-Oct-04 15:50 
Generalreading in a text file Pin
Programmer_Chris27-Oct-04 14:54
Programmer_Chris27-Oct-04 14:54 
GeneralRe: reading in a text file Pin
digwizfox27-Oct-04 15:12
digwizfox27-Oct-04 15:12 
To get you started; search for CStdioFile in the MSDN library. Of course, you can read a text file using basic file streams as well. But if you implementing an MFC application then using CStdioFile will simplify your efforts. You simply construct an object of this type (CStdioFile is a class type). Read the documentation in the MSDN on how to construct it. There are two very basic functions; ReadString and WriteString. It will read the file line by line and fill a null terminated string. Use a CString or std::string or _TCHAR[SIZE] array, or whatever it is you use to process strings. Read up on CString if you aren't familiar with that. Basically, MFC provides some very simple interfaces for doing what you are doing. Obviously, you'll have to write the C++ code to manipulate the strings as you read them but the CStdioFile should make the file I/O pretty simple. There are many ways to get data into an edit control; I assume you already know how to do that part once you have manipulated the data you've read from the file.

Regards,
Shawn
GeneralRe: reading in a text file Pin
Christian Graus27-Oct-04 15:25
protectorChristian Graus27-Oct-04 15:25 
GeneralProblem dealing with a function definition Pin
NietzscheDisciple27-Oct-04 10:47
NietzscheDisciple27-Oct-04 10:47 
GeneralRe: Problem dealing with a function definition Pin
Anonymous29-Oct-04 5:35
Anonymous29-Oct-04 5:35 
GeneralRe: Problem dealing with a function definition Pin
NietzscheDisciple29-Oct-04 6:02
NietzscheDisciple29-Oct-04 6:02 
GeneralRe: Problem dealing with a function definition Pin
Anonymous1-Nov-04 6:19
Anonymous1-Nov-04 6:19 
GeneralRe: Problem dealing with a function definition Pin
NietzscheDisciple29-Oct-04 5:59
NietzscheDisciple29-Oct-04 5:59 
Generalpointer to template fuction instance Pin
magicAL127-Oct-04 10:33
magicAL127-Oct-04 10:33 
GeneralRe: pointer to template fuction instance Pin
Ryan Binns27-Oct-04 18:29
Ryan Binns27-Oct-04 18:29 
GeneralExecute RTF file. Pin
DanYELL27-Oct-04 10:31
DanYELL27-Oct-04 10:31 
GeneralRe: Execute RTF file. Pin
RobJones27-Oct-04 10:40
RobJones27-Oct-04 10:40 
GeneralCSocket::OnReceive problem Pin
ali khalilvand27-Oct-04 8:41
ali khalilvand27-Oct-04 8:41 
GeneralCapture window bitmap from another running program Pin
MugWumpBW27-Oct-04 8:35
MugWumpBW27-Oct-04 8:35 
GeneralRe: Capture window bitmap from another running program Pin
l a u r e n27-Oct-04 15:10
l a u r e n27-Oct-04 15:10 
GeneralRe: Hiding Afx Pin
Maximilien27-Oct-04 7:52
Maximilien27-Oct-04 7:52 
GeneralRe: Hiding Afx Pin
jmkhael27-Oct-04 8:08
jmkhael27-Oct-04 8:08 
GeneralUnicode compiling Pin
Timothy Grabrian27-Oct-04 7:41
professionalTimothy Grabrian27-Oct-04 7:41 
GeneralRe: Unicode compiling Pin
l a u r e n27-Oct-04 15:11
l a u r e n27-Oct-04 15:11 

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.