Click here to Skip to main content
15,904,653 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalit's ok now if download a patch for Explorer.exe, this is the address Pin
ikohl6-Oct-06 20:18
ikohl6-Oct-06 20:18 
Question3D coloured button Pin
sarojkumarjena6-Oct-06 18:14
sarojkumarjena6-Oct-06 18:14 
AnswerRe: 3D coloured button Pin
Hamid_RT6-Oct-06 19:09
Hamid_RT6-Oct-06 19:09 
QuestionHow do I use string as a param for CreateWindowEx function Pin
scody6-Oct-06 18:14
scody6-Oct-06 18:14 
AnswerRe: How do I use string as a param for CreateWindowEx function Pin
Michael Dunn6-Oct-06 18:56
sitebuilderMichael Dunn6-Oct-06 18:56 
AnswerRe: How do I use string as a param for CreateWindowEx function Pin
Hamid_RT6-Oct-06 19:00
Hamid_RT6-Oct-06 19:00 
AnswerRe: How do I use string as a param for CreateWindowEx function Pin
scody7-Oct-06 1:18
scody7-Oct-06 1:18 
QuestionTemporary pointer Pin
Oliver1236-Oct-06 16:18
Oliver1236-Oct-06 16:18 
I cobbled this code together by trial and error. I put it in a global procedure and use it to change the value of an edit control in a dialog. This is kind of neat because it's the first way I have found to control a dialog item from outside the dialog. However, the MSFT MFC Reference says about CWnd::GetDlgItem(), "The returned pointer may be temporary and should not be used for later use."

What's up? What makes a pointer temporary? Would I have to get CWnd* pt everytime I want to use it?

CWnd* pt;
pt = (CWnd*)AfxGetApp()->m_pMainWnd->GetDlgItem(IDC_EDIT2);
pt->SetWindowText("JJJJJJJ");

I also note this works without using (CWnd*) cast. Use or not use (CWnd*)?

CWnd* pt;
pt = AfxGetApp()->m_pMainWnd->GetDlgItem(IDC_EDIT2); <-----no (CWnd*)
pt->SetWindowText("JJJJJJJ");
AnswerRe: Temporary pointer Pin
Michael Dunn6-Oct-06 18:59
sitebuilderMichael Dunn6-Oct-06 18:59 
QuestionCan't get a file path from a windows dialog and pass it too a directX api call Pin
BarryOg6-Oct-06 14:11
BarryOg6-Oct-06 14:11 
AnswerRe: Can't get a file path from a windows dialog and pass it too a directX api call Pin
Hamid_RT6-Oct-06 19:20
Hamid_RT6-Oct-06 19:20 
GeneralRe: Can't get a file path from a windows dialog and pass it too a directX api call Pin
BarryOg7-Oct-06 1:38
BarryOg7-Oct-06 1:38 
GeneralRe: Can't get a file path from a windows dialog and pass it too a directX api call Pin
Hamid_RT7-Oct-06 2:48
Hamid_RT7-Oct-06 2:48 
GeneralRe: Can't get a file path from a windows dialog and pass it too a directX api call Pin
BarryOg7-Oct-06 4:09
BarryOg7-Oct-06 4:09 
QuestionwaveOutGetID [modified] Pin
kk30036-Oct-06 11:51
kk30036-Oct-06 11:51 
QuestionCreateProcess() anomaly Pin
neilsolent6-Oct-06 9:21
neilsolent6-Oct-06 9:21 
QuestionAuthFilt always display the logon page Pin
Will88888886-Oct-06 8:49
Will88888886-Oct-06 8:49 
QuestionImage sequence display in Dialog [modified] Pin
Bighand20006-Oct-06 7:22
Bighand20006-Oct-06 7:22 
AnswerRe: Image sequence display in Dialog Pin
led mike6-Oct-06 8:44
led mike6-Oct-06 8:44 
GeneralRe: Image sequence display in Dialog Pin
Bighand20006-Oct-06 9:19
Bighand20006-Oct-06 9:19 
AnswerRe: Image sequence display in Dialog Pin
Hamid_RT6-Oct-06 8:48
Hamid_RT6-Oct-06 8:48 
GeneralRe: Image sequence display in Dialog [modified] Pin
Bighand20006-Oct-06 9:22
Bighand20006-Oct-06 9:22 
GeneralRe: Image sequence display in Dialog Pin
Hamid_RT6-Oct-06 19:00
Hamid_RT6-Oct-06 19:00 
GeneralRe: Image sequence display in Dialog Pin
Bighand20007-Oct-06 4:29
Bighand20007-Oct-06 4:29 
GeneralRe: Image sequence display in Dialog Pin
Hamid_RT7-Oct-06 6:54
Hamid_RT7-Oct-06 6:54 

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.