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

C / C++ / MFC

 
AnswerRe: Need Help with CStdioFile Pin
Larry Mills Sr5-May-08 4:57
Larry Mills Sr5-May-08 4:57 
GeneralRe: Need Help with CStdioFile Pin
David Crow5-May-08 5:25
David Crow5-May-08 5:25 
GeneralRe: Need Help with CStdioFile Pin
Mark Salsbery5-May-08 5:55
Mark Salsbery5-May-08 5:55 
GeneralRe: Need Help with CStdioFile Pin
Mark Salsbery5-May-08 6:05
Mark Salsbery5-May-08 6:05 
GeneralRe: Need Help with CStdioFile Pin
Mark Salsbery5-May-08 4:59
Mark Salsbery5-May-08 4:59 
GeneralRe: Need Help with CStdioFile Pin
Larry Mills Sr5-May-08 6:42
Larry Mills Sr5-May-08 6:42 
GeneralRe: Need Help with CStdioFile Pin
Mark Salsbery5-May-08 6:47
Mark Salsbery5-May-08 6:47 
GeneralRe: Need Help with CStdioFile Pin
Larry Mills Sr5-May-08 7:11
Larry Mills Sr5-May-08 7:11 
Another question Mark? Here's how I get the path:
CString CSystemDB::SetPath(CSysData cSysData)
{
CString str, str1, str2;
str1 = "c:\\Wells\\Program\\DataBases\\Operators\\";
// Make path for SystemDB.bku file for each Operator:
pszFileName = _T("c:\\Wells\\Program\\DataBases\\Operators\\WSF\\SystemDB.sdb");// hardcoded
pszFileName2 = _T("c:\\Wells\\Program\\DataBases\\SystemDB\\SystemDB.bku");//hardcoded
// Make path for SystemDB.sdb file for each Operator:
str2 = "c:\\Wells\\Program\\DataBases\\Operator\\";
str2 += cSysData.m_csOperatorName;
str2 += "\\";
str2 += "SystemDB.sdb";
m_csSysNameTMP = str2;
str = str1;
str += cSysData.m_csOperatorName;
str += "\\";
str += cSysData.m_csWellName;
str += "\\";
m_vSys.m_cSysData.m_csPath = str;// ============ Path for file lookup ===================
DoDirectory(m_vSys.m_cSysData);
// Now get the file filename:
cSysData.m_IsFileName = cSysData.m_csWellName;
cSysData.m_IsFileName += ".wdb";
m_csFileName = str;
FileSaveSys(str);// create file =================

return str;
}
You didn't use the assignment operator so how do I get "str" passed to FileSaveSys(str) into the global varable m_csFileName where it will work correctly?

A C++ programming language novice, but striving to learn
GeneralRe: Need Help with CStdioFile Pin
Larry Mills Sr6-May-08 5:42
Larry Mills Sr6-May-08 5:42 
GeneralRe: Need Help with CStdioFile Pin
Mark Salsbery7-May-08 6:33
Mark Salsbery7-May-08 6:33 
GeneralRe: Need Help with CStdioFile Pin
Larry Mills Sr8-May-08 8:03
Larry Mills Sr8-May-08 8:03 
GeneralRe: Need Help with CStdioFile Pin
Larry Mills Sr11-May-08 16:22
Larry Mills Sr11-May-08 16:22 
GeneralRe: Need Help with CStdioFile Pin
Mark Salsbery11-May-08 16:50
Mark Salsbery11-May-08 16:50 
QuestionHow can use Keyboard interaction to application? Pin
Le@rner3-May-08 2:03
Le@rner3-May-08 2:03 
AnswerRe: How can use Keyboard interaction to application? Pin
Nelek5-May-08 1:41
protectorNelek5-May-08 1:41 
GeneralRe: How can use Keyboard interaction to application? Pin
Le@rner5-May-08 20:20
Le@rner5-May-08 20:20 
QuestionDebug and release modes [modified] Pin
Anthony Appleyard2-May-08 23:14
Anthony Appleyard2-May-08 23:14 
AnswerRe: Debug and release modes Pin
ShilpiP3-May-08 1:35
ShilpiP3-May-08 1:35 
QuestionAT commands Pin
savitri2-May-08 23:11
savitri2-May-08 23:11 
AnswerRe: AT commands Pin
Mukesh Kumar3-May-08 2:30
Mukesh Kumar3-May-08 2:30 
AnswerRe: AT commands Pin
ThatsAlok5-May-08 0:07
ThatsAlok5-May-08 0:07 
QuestionRe: AT commands Pin
savitri5-May-08 19:17
savitri5-May-08 19:17 
QuestionHow many distinct values? Pin
George_George2-May-08 23:05
George_George2-May-08 23:05 
AnswerRe: How many distinct values? Pin
Mike Dimmick3-May-08 2:07
Mike Dimmick3-May-08 2:07 
GeneralRe: How many distinct values? Pin
George_George3-May-08 2:30
George_George3-May-08 2:30 

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.