Click here to Skip to main content
16,010,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: ASync Socket Question, Pin
Moak19-Apr-06 7:11
Moak19-Apr-06 7:11 
Questionopen (*.*) file into WebBrowser object Pin
mk_le10-Apr-06 6:03
mk_le10-Apr-06 6:03 
AnswerRe: open (*.*) file into WebBrowser object Pin
toxcct10-Apr-06 6:15
toxcct10-Apr-06 6:15 
QuestionHai,InstallShield for VC++6 Query? Pin
CodeVarma10-Apr-06 5:46
CodeVarma10-Apr-06 5:46 
Questionedit control in vc++ Pin
sudeep_br10-Apr-06 4:59
sudeep_br10-Apr-06 4:59 
AnswerRe: edit control in vc++ Pin
Hamid_RT10-Apr-06 5:26
Hamid_RT10-Apr-06 5:26 
GeneralRe: edit control in vc++ Pin
sudeep_br10-Apr-06 19:48
sudeep_br10-Apr-06 19:48 
GeneralRe: edit control in vc++ Pin
Hamid_RT11-Apr-06 1:14
Hamid_RT11-Apr-06 1:14 
Hi sudeep_br,
This is a sample,I hope that help you

CEdit m_Edit1,m_Edit2;
CString m_Test1;
CString m_Test2;


m_Edit1.Create(WS_CHILD|WS_VISIBLE,CRect(0,0,100,23),this,1);
m_Edit2.Create(WS_CHILD|WS_VISIBLE,CRect(0,50,100,23),this,1);

m_Test1="C:\\DesktopSearch\\Index\\";
m_Edit1.SetWindowText(m_Test1);//Now set this string to edit1

////////Now/////////
m_Edit1.GetWindowText(m_Test2);//Read from edit1 into m_Test2 that is CString

m_Edit2.SetWindowText(m_Test2);//Now set m_Test2 to m_Edit2

//if you test this code it's fine no problem in your code

1-objFD.BrowseFolder(hWnd,m_Enter_Location);

you assain class CEdit to this function,But this function need to CString yes?
unless m_Enter_Location is CEdit well you need to get string from this Control then assain
value to function BrowseFolder.


2-I think that problem is m_Enter_Location = szDir;
m_Enter_Location is variable control(CEdit) but szDir is TCHAR
you need to m_Enter_Location.SetWindowText(szDir);

Right?
GeneralRe: edit control in vc++ Pin
sudeep_br12-Apr-06 21:34
sudeep_br12-Apr-06 21:34 
GeneralRe: edit control in vc++ Pin
Hamid_RT13-Apr-06 0:34
Hamid_RT13-Apr-06 0:34 
GeneralRe: edit control in vc++ Pin
sudeep_br12-Apr-06 21:45
sudeep_br12-Apr-06 21:45 
GeneralRe: edit control in vc++ Pin
sudeep_br12-Apr-06 21:47
sudeep_br12-Apr-06 21:47 
AnswerRe: edit control in vc++ Pin
Iain Clarke, Warrior Programmer10-Apr-06 5:58
Iain Clarke, Warrior Programmer10-Apr-06 5:58 
QuestionHow to disable the system speaker control Pin
ashwath200510-Apr-06 4:52
ashwath200510-Apr-06 4:52 
AnswerRe: How to disable the system speaker control Pin
ashwath200510-Apr-06 4:55
ashwath200510-Apr-06 4:55 
QuestionRe: How to disable the system speaker control Pin
David Crow10-Apr-06 5:56
David Crow10-Apr-06 5:56 
AnswerRe: How to disable the system speaker control Pin
ashwath200510-Apr-06 6:05
ashwath200510-Apr-06 6:05 
GeneralRe: How to disable the system speaker control Pin
David Crow10-Apr-06 7:25
David Crow10-Apr-06 7:25 
GeneralRe: How to disable the system speaker control Pin
ashwath200510-Apr-06 19:46
ashwath200510-Apr-06 19:46 
QuestionRe: How to disable the system speaker control Pin
David Crow11-Apr-06 2:49
David Crow11-Apr-06 2:49 
AnswerRe: How to disable the system speaker control Pin
ashwath200511-Apr-06 3:57
ashwath200511-Apr-06 3:57 
GeneralRe: How to disable the system speaker control Pin
David Crow11-Apr-06 4:13
David Crow11-Apr-06 4:13 
GeneralRe: How to disable the system speaker control Pin
ashwath200511-Apr-06 4:21
ashwath200511-Apr-06 4:21 
GeneralRe: How to disable the system speaker control Pin
David Crow11-Apr-06 4:58
David Crow11-Apr-06 4:58 
GeneralRe: How to disable the system speaker control Pin
ashwath200511-Apr-06 5:08
ashwath200511-Apr-06 5:08 

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.