Click here to Skip to main content
15,901,505 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: virtual methods in base classes Pin
Jun Du9-Sep-06 6:27
Jun Du9-Sep-06 6:27 
AnswerRe: virtual methods in base classes Pin
mostafa_pasha9-Sep-06 12:20
mostafa_pasha9-Sep-06 12:20 
GeneralRe: virtual methods in base classes Pin
Michael Dunn9-Sep-06 17:26
sitebuilderMichael Dunn9-Sep-06 17:26 
AnswerRe: virtual methods in base classes Pin
Michael Dunn9-Sep-06 17:25
sitebuilderMichael Dunn9-Sep-06 17:25 
GeneralRe: virtual methods in base classes Pin
prasad_som10-Sep-06 23:25
prasad_som10-Sep-06 23:25 
QuestionA single dialog box to show all the data from the device using serial port RS-232 Pin
Veeresh Hiremath9-Sep-06 5:21
Veeresh Hiremath9-Sep-06 5:21 
QuestionCan't Open File Pin
Max++9-Sep-06 3:49
Max++9-Sep-06 3:49 
AnswerRe: Can't Open File Pin
Chris Losinger9-Sep-06 4:04
professionalChris Losinger9-Sep-06 4:04 

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.