Click here to Skip to main content
15,915,869 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Met problems with my first win32 program Pin
mostafa_pasha10-Sep-06 4:13
mostafa_pasha10-Sep-06 4:13 
QuestionDrag and Drop Operations Pin
ram on c#9-Sep-06 7:47
ram on c#9-Sep-06 7:47 
AnswerRe: Drag and Drop Operations Pin
mostafa_pasha9-Sep-06 12:31
mostafa_pasha9-Sep-06 12:31 
AnswerRe: Drag and Drop Operations Pin
TommyTooth9-Sep-06 18:52
TommyTooth9-Sep-06 18:52 
QuestionRe: Drag and Drop Operations Pin
Hamid_RT10-Sep-06 2:09
Hamid_RT10-Sep-06 2:09 
Questiontransfer dialog Pin
Oliver1239-Sep-06 7:36
Oliver1239-Sep-06 7:36 
AnswerRe: transfer dialog Pin
Rick York9-Sep-06 9:25
mveRick York9-Sep-06 9:25 
QuestionCBitMapButton Pin
ram on c#9-Sep-06 6:55
ram on c#9-Sep-06 6:55 
AnswerRe: CBitMapButton Pin
Hamid_RT9-Sep-06 7:14
Hamid_RT9-Sep-06 7:14 
QuestionHow to create modeless CDialog ? Pin
Yanshof9-Sep-06 6:23
Yanshof9-Sep-06 6:23 
AnswerRe: How to create modeless CDialog ? Pin
Hamid_RT9-Sep-06 7:22
Hamid_RT9-Sep-06 7:22 
GeneralRe: This not work. Pin
Yanshof9-Sep-06 7:29
Yanshof9-Sep-06 7:29 
QuestionRe: This not work. Pin
Hamid_RT10-Sep-06 2:09
Hamid_RT10-Sep-06 2:09 
AnswerRe: How to create modeless CDialog ? Pin
CWiC9-Sep-06 8:05
CWiC9-Sep-06 8:05 
GeneralRe: How to create modeless CDialog ? Pin
Yanshof9-Sep-06 8:23
Yanshof9-Sep-06 8:23 
AnswerRe: How to create modeless CDialog ? Pin
mostafa_pasha9-Sep-06 12:05
mostafa_pasha9-Sep-06 12:05 
i think because Create return result immediately after displaying dialog box.
so if you wrote CMydialog dlg; because you create in stack when get out of scope
dialog displayed for mere millisecond and then disapear!!!!!!!because desctructor is call!!!!
but you create in heap ! in heap i think some error such that occur! when you create in heap in some function when get out of scope cause that you lost address!!!!!!!!!(is that right?????)

so if you one that you dialog show in screen add these code:
after
dlg->ShowWindow(1);
add:
while(1);
i think you can see you dialog!!!!!!!!!!!

but the solution for this!
it is better that you create youu CMydialog instance some where else such as
constructor of your class such as *Dlg class..... .
it is not necessary to create in heap!

AnswerRe: How to create modeless CDialog ? Pin
mostafa_pasha9-Sep-06 12:06
mostafa_pasha9-Sep-06 12:06 
AnswerRe: How to create modeless CDialog ? Pin
Michael Dunn9-Sep-06 17:21
sitebuilderMichael Dunn9-Sep-06 17:21 
QuestionGet Object id from PhoneGetCallLogEntry Pin
bodaay9-Sep-06 6:11
bodaay9-Sep-06 6:11 
QuestionProblem with calcutation. Pin
EzraYap9-Sep-06 5:59
EzraYap9-Sep-06 5:59 
AnswerRe: Problem with calcutation. Pin
bodaay9-Sep-06 6:15
bodaay9-Sep-06 6:15 
GeneralRe: Problem with calcutation. Pin
EzraYap9-Sep-06 6:21
EzraYap9-Sep-06 6:21 
GeneralRe: Problem with calcutation. Pin
Rick York9-Sep-06 10:21
mveRick York9-Sep-06 10:21 
GeneralRe: Problem with calcutation. Pin
EzraYap10-Sep-06 2:31
EzraYap10-Sep-06 2:31 
Questionvirtual methods in base classes Pin
jon-809-Sep-06 5:34
professionaljon-809-Sep-06 5:34 

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.