Click here to Skip to main content
15,889,462 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to Get a TCHAR into a CString? Pin
Randor 7-May-08 5:41
professional Randor 7-May-08 5:41 
AnswerRe: How to Get a TCHAR into a CString? Pin
Mark Salsbery7-May-08 6:52
Mark Salsbery7-May-08 6:52 
GeneralRe: How to Get a TCHAR into a CString? Pin
Larry Mills Sr7-May-08 7:34
Larry Mills Sr7-May-08 7:34 
GeneralRe: How to Get a TCHAR into a CString? Pin
CPallini7-May-08 7:42
mveCPallini7-May-08 7:42 
GeneralRe: How to Get a TCHAR into a CString? Pin
Mark Salsbery7-May-08 7:53
Mark Salsbery7-May-08 7:53 
GeneralRe: How to Get a TCHAR into a CString? Pin
Larry Mills Sr7-May-08 10:56
Larry Mills Sr7-May-08 10:56 
GeneralRe: How to Get a TCHAR into a CString? Pin
Mark Salsbery7-May-08 11:13
Mark Salsbery7-May-08 11:13 
GeneralRe: How to Get a TCHAR into a CString? Pin
Larry Mills Sr7-May-08 12:37
Larry Mills Sr7-May-08 12:37 
The error I was getting was a runtime error saying among other things "Disk Full" when I have over 65GB remaining. I checked each time and the path was exactly right. When I changed it using the CString constructor method of loading the CString(like you did) I didn't get any errors and the file was written to.
Mark, it's simply confusing. You say that you can use CString anywhere it wants a LPCTSTR (is that true only if you have the "/D" setting in the compiler? It sure doesn't work correctly if you ASSIGN another CString's data into the one you want to use for a CStdioFile filename!. That's what I'm trying to solve. You've seen my code; I've got to be able to save the filename in my class (CSysData::m_csPath and the newly created CSysData::m_IsFileName). m_IsFileName will be the file that I will hopefully find at the path represented by CSysData::m_csPath. But I can't get CStdioFile::Open(filename,....,) to accept my CString::m_csPath + CSysData::m_IsFileName combination.
I can hardcode the paths for the file but I cannot hardcode the CSysData::m_IsFileName CString, because part of the name for the CSysData::m_IsFileName will be determined later adding date and time to it to make it a unqinue(ms) filename.

A C++ programming language novice, but striving to learn
GeneralRe: How to Get a TCHAR into a CString? Pin
Mark Salsbery9-May-08 7:36
Mark Salsbery9-May-08 7:36 
AnswerRe: How to Get a TCHAR into a CString? Pin
Mark Salsbery9-May-08 7:47
Mark Salsbery9-May-08 7:47 
GeneralRe: How to Get a TCHAR into a CString? Pin
Larry Mills Sr9-May-08 16:05
Larry Mills Sr9-May-08 16:05 
QuestionToolbar in dialog based project Pin
ilgale7-May-08 4:28
ilgale7-May-08 4:28 
AnswerRe: Toolbar in dialog based project Pin
Mark Salsbery7-May-08 7:01
Mark Salsbery7-May-08 7:01 
QuestionCapturing a video using opencv on MFC Pin
Collin Xie7-May-08 4:18
Collin Xie7-May-08 4:18 
AnswerRe: Capturing a video using opencv on MFC Pin
srisuwan917-Jan-10 20:56
srisuwan917-Jan-10 20:56 
QuestionMFC Application and Web service Pin
BadJerry7-May-08 4:05
BadJerry7-May-08 4:05 
AnswerRe: MFC Application and Web service Pin
led mike7-May-08 4:28
led mike7-May-08 4:28 
GeneralRe: MFC Application and Web service Pin
BadJerry7-May-08 4:40
BadJerry7-May-08 4:40 
GeneralRe: MFC Application and Web service Pin
led mike7-May-08 5:05
led mike7-May-08 5:05 
AnswerRe: MFC Application and Web service Pin
Christopher Duncan7-May-08 14:20
Christopher Duncan7-May-08 14:20 
GeneralRe: MFC Application and Web service Pin
BadJerry7-May-08 23:13
BadJerry7-May-08 23:13 
GeneralRe: MFC Application and Web service Pin
Christopher Duncan8-May-08 6:04
Christopher Duncan8-May-08 6:04 
GeneralRe: MFC Application and Web service Pin
BadJerry8-May-08 6:59
BadJerry8-May-08 6:59 
GeneralRe: MFC Application and Web service Pin
Christopher Duncan8-May-08 7:27
Christopher Duncan8-May-08 7:27 
GeneralRe: MFC Application and Web service Pin
BadJerry8-May-08 10:13
BadJerry8-May-08 10:13 

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.