Click here to Skip to main content
15,911,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can I use the DDK with VC6.0? Pin
Mike Dimmick13-Apr-05 8:16
Mike Dimmick13-Apr-05 8:16 
GeneralRe: How can I use the DDK with VC6.0? Pin
Alexander M.,14-Apr-05 9:17
Alexander M.,14-Apr-05 9:17 
GeneralRe: How can I use the DDK with VC6.0? Pin
Mike Dimmick14-Apr-05 9:31
Mike Dimmick14-Apr-05 9:31 
GeneralSetting an event on minimize Pin
Tom Wright13-Apr-05 4:22
Tom Wright13-Apr-05 4:22 
GeneralRe: Setting an event on minimize Pin
Tom Wright13-Apr-05 4:49
Tom Wright13-Apr-05 4:49 
GeneralCTreeCtrl NM_CLICK notification. Pin
Maximilien13-Apr-05 4:08
Maximilien13-Apr-05 4:08 
GeneralRe: CTreeCtrl NM_CLICK notification. Pin
Michael Dunn13-Apr-05 7:31
sitebuilderMichael Dunn13-Apr-05 7:31 
GeneralPure Virtual Function Call Pin
abc87613-Apr-05 3:57
abc87613-Apr-05 3:57 
GeneralRe: Pure Virtual Function Call Pin
digwizfox13-Apr-05 6:49
digwizfox13-Apr-05 6:49 
GeneralRe: Pure Virtual Function Call Pin
Anonymous13-Apr-05 6:59
Anonymous13-Apr-05 6:59 
GeneralRe: Pure Virtual Function Call Pin
digwizfox13-Apr-05 10:45
digwizfox13-Apr-05 10:45 
GeneralRe: Pure Virtual Function Call Pin
Mike Dimmick13-Apr-05 8:37
Mike Dimmick13-Apr-05 8:37 
GeneralRe: Pure Virtual Function Call Pin
Anonymous13-Apr-05 8:49
Anonymous13-Apr-05 8:49 
GeneralRe: Pure Virtual Function Call Pin
mark novak14-Apr-05 0:38
mark novak14-Apr-05 0:38 
GeneralService Control Manager types with MFC Pin
sweep12313-Apr-05 3:41
sweep12313-Apr-05 3:41 
GeneralRe: Service Control Manager types with MFC Pin
Alexander M.,13-Apr-05 3:55
Alexander M.,13-Apr-05 3:55 
GeneralRe: Service Control Manager types with MFC Pin
sweep12313-Apr-05 4:10
sweep12313-Apr-05 4:10 
GeneralRe: Service Control Manager types with MFC Pin
Ravi Bhavnani13-Apr-05 5:30
professionalRavi Bhavnani13-Apr-05 5:30 
GeneralRe: Service Control Manager types with MFC Pin
sweep12313-Apr-05 5:38
sweep12313-Apr-05 5:38 
Generalproblem with functions and variables... Pin
Green Fuze13-Apr-05 2:35
Green Fuze13-Apr-05 2:35 
Hey everybody! Smile | :)

I created 2 function.

<br />
void CHelperDlg::UpdateVars(void) //updates the vars in the options<br />
{<br />
  CFile fLinkAfter(m_strAppPath+"\\Settings\\LinkAfter.dat", CFile::modeReadWrite);<br />
<br />
  ReadFiles(m_clsOptions.m_OptionLinkAfter, fLinkAfter);<br />
	MessageBox(m_clsOptions.m_strOptionLinkAfter);<br />
}<br />
<br />
void CHelperDlg::ReadFiles(CString TheVar, CFile ReadedFile)<br />
{<br />
	char cBuffer[10];<br />
	UINT iRead;<br />
<br />
	iRead = ReadedFile.Read(cBuffer, 10);<br />
	TheVar = cBuf;<br />
}<br />


now, as far as I understand the var "m_clsOptions.m_OptionLinkAfter"
should get the content of the cBuf, and for some reason, the
"m_clsOptions.m_OptionLinkAfter" still remains empty after the other function is called (checked with the MessageBox).
(TheVar gets m_clsOptions.m_strOptionLinkAfter as its parameter)

shouldn't the ReadFiles function update m_clsOptions.m_strOptionLinkAfter???


THANKS!!!
GeneralRe: problem with functions and variables... Pin
David Crow13-Apr-05 2:41
David Crow13-Apr-05 2:41 
GeneralRe: problem with functions and variables... Pin
Green Fuze13-Apr-05 13:28
Green Fuze13-Apr-05 13:28 
GeneralRe: problem with functions and variables... Pin
Ryan Binns13-Apr-05 18:28
Ryan Binns13-Apr-05 18:28 
Generalencrypt to database in vc++ Pin
nehathoma13-Apr-05 1:52
nehathoma13-Apr-05 1:52 
GeneralRe: encrypt to database in vc++ Pin
Yulianto.13-Apr-05 15:02
Yulianto.13-Apr-05 15:02 

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.