Click here to Skip to main content
15,793,535 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Binary Edit Source Pin
Michael Schubert21-Mar-09 9:30
Michael Schubert21-Mar-09 9:30 
QuestionReadString() crashes at the end of file? [modified] Pin
AlanLai20-Mar-09 15:37
AlanLai20-Mar-09 15:37 
AnswerRe: ReadString() crashes at the end of file? Pin
CPallini21-Mar-09 2:13
mveCPallini21-Mar-09 2:13 
GeneralRe: ReadString() crashes at the end of file? Pin
AlanLai23-Mar-09 11:24
AlanLai23-Mar-09 11:24 
GeneralRe: ReadString() crashes at the end of file? Pin
CPallini23-Mar-09 11:45
mveCPallini23-Mar-09 11:45 
GeneralRe: ReadString() crashes at the end of file? Pin
AlanLai23-Mar-09 12:45
AlanLai23-Mar-09 12:45 
GeneralRe: ReadString() crashes at the end of file? Pin
AlanLai31-Mar-09 10:00
AlanLai31-Mar-09 10:00 
QuestionRun-time error stops dialog when combo box added: [8002] Window Create, and Create Dialog failure Error code-20 Pin
Goo220-Mar-09 13:00
Goo220-Mar-09 13:00 
Hi All,
I'm not having a lot of luck declaring a combo box in the class code for my dialog resource. I'm using VC++ ver 2.0, non-MFC, Win32 with SDK calls only. I'm making additions to a large and complex legacy program.
Without the combo box declared in the code, the dialog opens fine when the program launches, but when I add the combo box, I get the following two message boxes:
First:
"Create Dialog failure"
Engineering Note ...
Dialog Creation Error
Be sure that there is a Dialog named, "" amongst the program's resources.
Then: an "OK" box:
Exiting due to Error
[8002] Window Create
Error code-20: Create Dialog failure
When I click on the OK, the entire program exits. I've typed the three last lines of each above, letter-for-letter from the messages displayed.
In my class in my .h file, I've declared the following:
ComboBox m_PhNoComboBox;
I added the following to my constructor in my .cpp file:
m_PhNoComboBox (this, WMM_IDC_MND_PHNOS_COMBO)
right after the constructor's function identifier and parameters line and the code builds, but gives that run-time error.
Does anyone have any idea what might be causing this? Should anything else be added?
Searching, I found nothing relevant about the error codes 8002 and 20.
Here's how I'm declaring the combo box in the resource description:
-------------------
WMM_MY_DIALOG DIALOG DISCARDABLE 101, 36, 296, 201
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "My Dialog"
FONT 8, "MS Sans Serif"
BEGIN
COMBOBOX WMM_IDC_MND_PHNOS_COMBO,137,22,137,164,CBS_DROPDOWN | CBS_SORT |
WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "&Close",IDCANCEL,15,177,32,14
END
-------------------

Best regards,
AnswerRe: Run-time error stops dialog when combo box added: [8002] Window Create, and Create Dialog failure Error code-20 Pin
norish20-Mar-09 20:48
norish20-Mar-09 20:48 
QuestionWant to stop full screen display when using Windows media player Pin
Keith Worden20-Mar-09 9:43
Keith Worden20-Mar-09 9:43 
AnswerRe: Want to stop full screen display when using Windows media player Pin
V Shah11-Mar-10 7:28
V Shah11-Mar-10 7:28 
GeneralRe: Want to stop full screen display when using Windows media player Pin
Keith Worden11-Mar-10 7:45
Keith Worden11-Mar-10 7:45 
QuestionGetSaveFileName: does not work propoerly when the option "Hide file extension for know file type" is checked Pin
zouzoulikou20-Mar-09 8:49
zouzoulikou20-Mar-09 8:49 
AnswerRe: GetSaveFileName: does not work propoerly when the option "Hide file extension for know file type" is checked Pin
David Crow20-Mar-09 8:57
David Crow20-Mar-09 8:57 
GeneralRe: GetSaveFileName: does not work propoerly when the option "Hide file extension for know file type" is checked Pin
zouzoulikou20-Mar-09 23:48
zouzoulikou20-Mar-09 23:48 
GeneralRe: GetSaveFileName: does not work propoerly when the option "Hide file extension for know file type" is checked Pin
David Crow21-Mar-09 17:11
David Crow21-Mar-09 17:11 
AnswerRe: GetSaveFileName: does not work propoerly when the option "Hide file extension for know file type" is checked Pin
norish21-Mar-09 2:54
norish21-Mar-09 2:54 
Questionhow to use #pragma data_seq() Pin
ernst2002053020-Mar-09 8:48
ernst2002053020-Mar-09 8:48 
AnswerRe: how to use #pragma data_seq() Pin
David Crow20-Mar-09 8:55
David Crow20-Mar-09 8:55 
GeneralRe: how to use #pragma data_seq() Pin
ernst2002053020-Mar-09 9:04
ernst2002053020-Mar-09 9:04 
GeneralRe: how to use #pragma data_seq() Pin
David Crow20-Mar-09 9:09
David Crow20-Mar-09 9:09 
GeneralRe: how to use #pragma data_seq() Pin
ernst2002053020-Mar-09 9:18
ernst2002053020-Mar-09 9:18 
GeneralRe: how to use #pragma data_seq() Pin
David Crow20-Mar-09 9:29
David Crow20-Mar-09 9:29 
AnswerRe: how to use #pragma data_seq() Pin
cmk20-Mar-09 11:38
cmk20-Mar-09 11:38 
QuestionErase previous drawings Pin
llp00na20-Mar-09 7:53
llp00na20-Mar-09 7:53 

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.