Click here to Skip to main content
16,006,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ serial communication Pin
Ayush4-Nov-02 8:22
Ayush4-Nov-02 8:22 
GeneralContext Menu from the Status Bar.. Pin
Anonymous4-Nov-02 7:40
Anonymous4-Nov-02 7:40 
GeneralRe: Context Menu from the Status Bar.. Pin
Ravi Bhavnani4-Nov-02 7:45
professionalRavi Bhavnani4-Nov-02 7:45 
GeneralRe: Context Menu from the Status Bar.. Pin
Anonymous4-Nov-02 7:52
Anonymous4-Nov-02 7:52 
GeneralColored Grid Pin
fossilman4-Nov-02 7:15
fossilman4-Nov-02 7:15 
GeneralRe: Colored Grid Pin
Bill Wilson4-Nov-02 13:50
Bill Wilson4-Nov-02 13:50 
GeneralCHtmlView with Flash not repainting... Pin
Happy_Dog4-Nov-02 7:15
Happy_Dog4-Nov-02 7:15 
GeneralAsk about function parameters and pass a reference. Pin
ooosawaddee34-Nov-02 7:02
ooosawaddee34-Nov-02 7:02 
<br />
	CString m_n, m_e, n_str, e_str; <br />
	int n_strlen, e_strlen;<br />
	UINT k_keyID;<br />
<br />
                m_Proc.GetInfo(FileName, n_str, e_str, n_strlen, e_strlen, k_keyID);<br />
	<br />
                m_n = n_str;<br />
                m_e = e_str;<br />


These above is somepart of my code. m_Proc is object and call function GetInfo which have 5 function parameters (FileName, n_str, e_str, n_strlen, e_strlen, k_keyID)


These below is detail of GetInfo function

<br />
void CExtract::GetInfo(const CString& m_FileName, CString n_str, CString e_str, int n_strlen, int e_strlen, UINT keyID)<br />
	{<br />
n_str ="1234";<br />
e_str = "578756";<br />
n_strlen = 4;<br />
e_strlen = 6;<br />
keyID = 48756;<br />
}<br />


but when I see n_str value after exit GetInfo function. I see n_str = {""}
e_str = {""}

I expect n_str = {"1234"} , e_str = {"578756"}

Do you know how to solve my problem?
Thank you for your answer.
GeneralRe: Ask about function parameters and pass a reference. Pin
ian mariano4-Nov-02 7:17
ian mariano4-Nov-02 7:17 
GeneralSaving int's, floats, BYTEs to file Pin
Kuniva4-Nov-02 6:46
Kuniva4-Nov-02 6:46 
GeneralRe: Saving int's, floats, BYTEs to file Pin
Ravi Bhavnani4-Nov-02 7:25
professionalRavi Bhavnani4-Nov-02 7:25 
GeneralRe: Saving int's, floats, BYTEs to file Pin
Kuniva4-Nov-02 7:44
Kuniva4-Nov-02 7:44 
GeneralRe: Saving int's, floats, BYTEs to file Pin
Carlos Antollini4-Nov-02 7:41
Carlos Antollini4-Nov-02 7:41 
GeneralRe: Saving int's, floats, BYTEs to file Pin
Christian Graus4-Nov-02 9:57
protectorChristian Graus4-Nov-02 9:57 
Questionhow can I debug this? Pin
ns4-Nov-02 6:40
ns4-Nov-02 6:40 
AnswerRe: how can I debug this? Pin
Andreas Saurwein4-Nov-02 6:41
Andreas Saurwein4-Nov-02 6:41 
GeneralRe: how can I debug this? Pin
ns4-Nov-02 7:55
ns4-Nov-02 7:55 
AnswerRe: how can I debug this? Pin
Ravi Bhavnani4-Nov-02 7:23
professionalRavi Bhavnani4-Nov-02 7:23 
GeneralRe: how can I debug this? Pin
ns4-Nov-02 7:44
ns4-Nov-02 7:44 
GeneralRe: how can I debug this? Pin
Ravi Bhavnani4-Nov-02 7:46
professionalRavi Bhavnani4-Nov-02 7:46 
GeneralI am shocked!(pleasantly) Pin
ns4-Nov-02 7:53
ns4-Nov-02 7:53 
GeneralRe: I am shocked!(pleasantly) Pin
Ravi Bhavnani4-Nov-02 9:27
professionalRavi Bhavnani4-Nov-02 9:27 
GeneralRe: how can I debug this? Pin
ns4-Nov-02 8:13
ns4-Nov-02 8:13 
GeneralRe: how can I debug this? Pin
Ravi Bhavnani4-Nov-02 9:29
professionalRavi Bhavnani4-Nov-02 9:29 
AnswerRe: how can I debug this? Pin
Jay24-Nov-02 14:24
Jay24-Nov-02 14:24 

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.