Click here to Skip to main content
15,900,108 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need a AVC/H.264 Video Decoder Pin
Andy Rama22-Mar-09 20:50
Andy Rama22-Mar-09 20:50 
GeneralRe: Need a AVC/H.264 Video Decoder Pin
Michael Schubert22-Mar-09 21:14
Michael Schubert22-Mar-09 21:14 
QuestionRe: Need a AVC/H.264 Video Decoder Pin
Andy Rama23-Mar-09 3:33
Andy Rama23-Mar-09 3:33 
QuestionA default MFC project don't use /Yc compiler option, how does it work? [modified] Pin
followait21-Mar-09 16:33
followait21-Mar-09 16:33 
AnswerRe: A default MFC project don't use /Yc compiler option, how does it work? Pin
Stuart Dootson23-Mar-09 0:39
professionalStuart Dootson23-Mar-09 0:39 
QuestionTimer or For Loop Help. Pin
FISH78621-Mar-09 13:36
FISH78621-Mar-09 13:36 
AnswerRe: Timer or For Loop Help. Pin
Code-o-mat21-Mar-09 23:42
Code-o-mat21-Mar-09 23:42 
GeneralRe: Timer or For Loop Help. Pin
FISH78622-Mar-09 0:23
FISH78622-Mar-09 0:23 
GeneralRe: Timer or For Loop Help. Pin
Code-o-mat22-Mar-09 0:50
Code-o-mat22-Mar-09 0:50 
GeneralRe: Timer or For Loop Help. Pin
FISH78622-Mar-09 1:45
FISH78622-Mar-09 1:45 
GeneralRe: Timer or For Loop Help. Pin
Code-o-mat22-Mar-09 7:33
Code-o-mat22-Mar-09 7:33 
GeneralRe: Timer or For Loop Help. Pin
FISH78622-Mar-09 7:55
FISH78622-Mar-09 7:55 
GeneralRe: Timer or For Loop Help. Pin
Code-o-mat22-Mar-09 8:19
Code-o-mat22-Mar-09 8:19 
GeneralRe: Timer or For Loop Help. Pin
FISH78622-Mar-09 8:30
FISH78622-Mar-09 8:30 
GeneralRe: Timer or For Loop Help. Pin
FISH78622-Mar-09 10:28
FISH78622-Mar-09 10:28 
Questionhow to use in-place editing Pin
jiaweicz21-Mar-09 11:01
jiaweicz21-Mar-09 11:01 
AnswerRe: how to use in-place editing Pin
Yusuf21-Mar-09 13:02
Yusuf21-Mar-09 13:02 
QuestionXP/Vista Styles Pin
The_Judgement21-Mar-09 9:27
The_Judgement21-Mar-09 9:27 
AnswerRe: XP/Vista Styles Pin
Code-o-mat21-Mar-09 10:35
Code-o-mat21-Mar-09 10:35 
GeneralRe: XP/Vista Styles Pin
The_Judgement21-Mar-09 11:14
The_Judgement21-Mar-09 11:14 
GeneralRe: XP/Vista Styles Pin
Code-o-mat21-Mar-09 11:27
Code-o-mat21-Mar-09 11:27 
GeneralRe: XP/Vista Styles Pin
The_Judgement21-Mar-09 12:41
The_Judgement21-Mar-09 12:41 
I've call GetLastError after create the dialog box, but it returns 0, and DialogBox returns -1. Looking at MSDN I saw 4 possible errors, althought none of them I think are the problem:

-an invalid parameter value
-the system class was registered by a different module
-The WH_CBT hook is installed and returns a failure code
-if one of the controls in the dialog template is not registered, or its window window procedure fails WM_CREATE or WM_NCCREATE

I don't understand why does not work, because the controls inside the dialog box are edit and buttons controls, only that. I put the code of the definition of the dialog box:

NewDialogBox DIALOGEX 170,70,250,150<br />
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU<br />
CAPTION "Nuevo"<br />
FONT 10, "Tahoma"<br />
BEGIN<br />
	DEFPUSHBUTTON "Aceptar", IDOK | WS_TABSTOP, 95, 130, 50, 14<br />
	PUSHBUTTON "Cancelar", IDCANCEL | WS_TABSTOP, 165, 130, 50, 14<br />
	CONTROL "Anchura", IDS_WEIGHT, "static", <br />
    SS_LEFT | WS_CHILD | WS_VISIBLE, <br />
    20, 50, 150, 8<br />
	CONTROL "", IDE_WEIGHT, "edit", <br />
    SS_LEFT | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, <br />
    100, 50, 100, 12<br />
	CONTROL "Altura", IDS_HEIGHT, "static", <br />
    SS_LEFT | WS_CHILD | WS_VISIBLE, <br />
    20, 70, 150, 8<br />
	CONTROL "", IDE_HEIGHT, "edit", <br />
    SS_LEFT | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, <br />
    100, 70, 100, 12<br />
END


Thanks.
GeneralRe: XP/Vista Styles Pin
Code-o-mat21-Mar-09 23:04
Code-o-mat21-Mar-09 23:04 
GeneralRe: XP/Vista Styles [modified] Pin
The_Judgement22-Mar-09 11:28
The_Judgement22-Mar-09 11:28 
QuestionUnicode.. Pin
p_196021-Mar-09 7:36
p_196021-Mar-09 7:36 

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.