Click here to Skip to main content
15,896,453 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Passing class pointer via socket Pin
Albert Holguin15-Oct-13 6:39
professionalAlbert Holguin15-Oct-13 6:39 
GeneralRe: Passing class pointer via socket Pin
Don Guy15-Oct-13 6:48
Don Guy15-Oct-13 6:48 
AnswerRe: Passing class pointer via socket Pin
Albert Holguin15-Oct-13 7:49
professionalAlbert Holguin15-Oct-13 7:49 
GeneralRe: Passing class pointer via socket Pin
Rajesh R Subramanian15-Oct-13 7:58
professionalRajesh R Subramanian15-Oct-13 7:58 
AnswerRe: Passing class pointer via socket Pin
WuRunZhe15-Oct-13 16:56
WuRunZhe15-Oct-13 16:56 
AnswerRe: Passing class pointer via socket Pin
Erudite_Eric17-Oct-13 14:37
Erudite_Eric17-Oct-13 14:37 
QuestionExport the CListView data or GridView data into Excel or .CSV usig MFC Pin
sma123#14-Oct-13 6:09
sma123#14-Oct-13 6:09 
AnswerRe: Export the CListView data or GridView data into Excel or .CSV usig MFC Pin
Richard MacCutchan14-Oct-13 6:55
mveRichard MacCutchan14-Oct-13 6:55 
AnswerRe: Export the CListView data or GridView data into Excel or .CSV usig MFC Pin
Rajesh R Subramanian14-Oct-13 22:30
professionalRajesh R Subramanian14-Oct-13 22:30 
GeneralRe: Export the CListView data or GridView data into Excel or .CSV usig MFC Pin
sma123#15-Oct-13 1:12
sma123#15-Oct-13 1:12 
GeneralRe: Export the CListView data or GridView data into Excel or .CSV usig MFC Pin
Rajesh R Subramanian15-Oct-13 1:28
professionalRajesh R Subramanian15-Oct-13 1:28 
GeneralRe: Export the CListView data or GridView data into Excel or .CSV usig MFC Pin
sma123#15-Oct-13 1:40
sma123#15-Oct-13 1:40 
GeneralRe: Export the CListView data or GridView data into Excel or .CSV usig MFC Pin
Rajesh R Subramanian15-Oct-13 1:47
professionalRajesh R Subramanian15-Oct-13 1:47 
GeneralRe: Export the CListView data or GridView data into Excel or .CSV usig MFC Pin
sma123#15-Oct-13 1:54
sma123#15-Oct-13 1:54 
GeneralRe: Export the CListView data or GridView data into Excel or .CSV usig MFC Pin
Rajesh R Subramanian15-Oct-13 2:24
professionalRajesh R Subramanian15-Oct-13 2:24 
OK, that makes the problem much simpler then.

With MFC, you could use CFile or a CStdioFile for this purpose. It's very easy, and here's a sample: http://www.codeproject.com/Messages/3136266/Re-Getting-string-from-a-Text-file.aspx[^]

The sample code reads data, but you could easily create the file, and write and read from it with the member functions of this class.

  1. Create the file by passing the appropriate arguments to the constructor. Example on this page: http://msdn.microsoft.com/en-us/library/7b61hcx0(v=vs.90).aspx[^]
  2. Write data into it using the WriteString[^] method.


When you create the file, make sure that the extension is .CSV and format your string correctly such that it's comma separated before writing it into the file. Let me know if you need any more help.
"Real men drive manual transmission" - Rajesh.

QuestionDual monitor problem [Solved] Pin
yu-jian14-Oct-13 5:37
yu-jian14-Oct-13 5:37 
QuestionRe: Dual monitor problem Pin
Richard MacCutchan14-Oct-13 6:54
mveRichard MacCutchan14-Oct-13 6:54 
AnswerRe: Dual monitor problem Pin
yu-jian14-Oct-13 23:12
yu-jian14-Oct-13 23:12 
QuestionHow to use DisableProcessWindowsGhosting in a VC6 application? Pin
Erik13-Oct-13 20:14
Erik13-Oct-13 20:14 
AnswerRe: How to use DisableProcessWindowsGhosting in a VC6 application? Pin
Richard MacCutchan13-Oct-13 20:45
mveRichard MacCutchan13-Oct-13 20:45 
GeneralRe: How to use DisableProcessWindowsGhosting in a VC6 application? Pin
Erik13-Oct-13 22:33
Erik13-Oct-13 22:33 
GeneralRe: How to use DisableProcessWindowsGhosting in a VC6 application? Pin
Richard MacCutchan13-Oct-13 22:47
mveRichard MacCutchan13-Oct-13 22:47 
GeneralRe: How to use DisableProcessWindowsGhosting in a VC6 application? Pin
Jochen Arndt13-Oct-13 23:42
professionalJochen Arndt13-Oct-13 23:42 
Question"Pure WIN32 Self-Extract EXE Builder" not working in Windows 7 Pin
Member 1023629813-Oct-13 12:59
Member 1023629813-Oct-13 12:59 
AnswerRe: "Pure WIN32 Self-Extract EXE Builder" not working in Windows 7 Pin
Garth J Lancaster13-Oct-13 16:17
professionalGarth J Lancaster13-Oct-13 16:17 

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.