Click here to Skip to main content
15,899,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: encrypt to database in vc++ Pin
ThatsAlok14-Apr-05 19:36
ThatsAlok14-Apr-05 19:36 
GeneralA question on deleting entries in win registry Pin
PrashantJ13-Apr-05 1:24
PrashantJ13-Apr-05 1:24 
GeneralRe: A question on deleting entries in win registry Pin
ThatsAlok13-Apr-05 1:42
ThatsAlok13-Apr-05 1:42 
GeneralRe: A question on deleting entries in win registry Pin
PrashantJ13-Apr-05 2:20
PrashantJ13-Apr-05 2:20 
GeneralRe: A question on deleting entries in win registry Pin
David Crow13-Apr-05 2:30
David Crow13-Apr-05 2:30 
GeneralRe: A question on deleting entries in win registry Pin
PrashantJ13-Apr-05 2:32
PrashantJ13-Apr-05 2:32 
GeneralRe: A question on deleting entries in win registry Pin
David Crow13-Apr-05 2:39
David Crow13-Apr-05 2:39 
GeneralRe: A question on deleting entries in win registry Pin
PrashantJ13-Apr-05 3:22
PrashantJ13-Apr-05 3:22 
GeneralRe: A question on deleting entries in win registry Pin
Blake Miller13-Apr-05 6:37
Blake Miller13-Apr-05 6:37 
GeneralUnicode C++ Problem Pin
nitinmahajan8013-Apr-05 1:21
nitinmahajan8013-Apr-05 1:21 
GeneralRe: Unicode C++ Problem Pin
ThatsAlok13-Apr-05 1:36
ThatsAlok13-Apr-05 1:36 
GeneralRe: Unicode C++ Problem Pin
nitinmahajan8013-Apr-05 18:57
nitinmahajan8013-Apr-05 18:57 

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.