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

C / C++ / MFC

 
GeneralRe: How I can MIX the Sounds from network(directsound) Pin
doudou-shen3-May-08 21:55
doudou-shen3-May-08 21:55 
GeneralRe: How I can MIX the Sounds from network(directsound) Pin
Mark Salsbery4-May-08 6:05
Mark Salsbery4-May-08 6:05 
QuestionQuestion on flexgrid Pin
gReaen3-May-08 4:01
gReaen3-May-08 4:01 
AnswerRe: Question on flexgrid Pin
sunny_vc5-May-08 1:05
sunny_vc5-May-08 1:05 
GeneralRe: Question on flexgrid Pin
gReaen5-May-08 7:21
gReaen5-May-08 7:21 
QuestionProblem with IE7 Pin
H4u323-May-08 3:49
H4u323-May-08 3:49 
AnswerRe: Problem with IE7 Pin
BadJerry11-Sep-09 6:46
BadJerry11-Sep-09 6:46 
QuestionNeed Help with CStdioFile Pin
Larry Mills Sr3-May-08 2:48
Larry Mills Sr3-May-08 2:48 
AnswerRe: Need Help with CStdioFile Pin
Mark Salsbery3-May-08 7:55
Mark Salsbery3-May-08 7:55 
GeneralRe: Need Help with CStdioFile [modified] Pin
Larry Mills Sr4-May-08 3:28
Larry Mills Sr4-May-08 3:28 
GeneralRe: Need Help with CStdioFile Pin
Mark Salsbery4-May-08 6:17
Mark Salsbery4-May-08 6:17 
GeneralRe: Need Help with CStdioFile Pin
Larry Mills Sr4-May-08 9:10
Larry Mills Sr4-May-08 9:10 
GeneralRe: Need Help with CStdioFile Pin
Mark Salsbery4-May-08 11:04
Mark Salsbery4-May-08 11:04 
GeneralRe: Need Help with CStdioFile Pin
Larry Mills Sr5-May-08 2:48
Larry Mills Sr5-May-08 2:48 
QuestionRe: Need Help with CStdioFile Pin
David Crow5-May-08 3:00
David Crow5-May-08 3:00 
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 
GeneralRe: Need Help with CStdioFile Pin
Larry Mills Sr6-May-08 5:42
Larry Mills Sr6-May-08 5:42 
Mark, I don't know how to insert the string that holds the path into the main public CString m_csFileName(?); Here's how I get path CSysData cSysData is just a class for my vector that holds the data. Here's the path code:
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
Mark Salsbery7-May-08 6:33
Mark Salsbery7-May-08 6:33 

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.