Help VS2008: assigning a returned string to an edit control

Hi! Everybody,
I am new to programming and this is my first post here. I have problem with assigning a string which is returned by the active component to my edit control box. I will appreciate any hint if possible.
I have created a dialog based MFC standard application and I am using a button to simulate the problem by clicking on the button, but without any progress. This is the description of what I have done:
- Created a C++ dialog based MFC application
- inserted an ActiveX component and created a member variable called “m_Active“
- inserted an edit control and created a member variable called “m_Edit”
- inserted a button and crated a member variable called ”m_Button”

void CTestDlg::OnBnClickedButton()
{
// TODO: Add your control notification handler code here
m_Active.mConnect(0);
m_Active.mListening(1,2000);
m_Active.mStartServers(1,2001,2002,2003);
m_Active.mStreamVideo(1);
m_Active.mStreamAudio(1);
m_Edit.SetString(mGetLocalHostName);

}
……………………………………………………………………………………………………………………
Every thing works fine untill the last line
M_Edit.SetString(mGetLocalHostName);

I have to add that “mGetLocalHostName” forces the ActiveX component to return the string wich I am intending to have in the Edit control.

I hope I have been able to describe the problem I have. And I appriciate any kind of help.

Topic archived. No new replies allowed.