Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Virtual keyboard losing window focus. Help! Pin
Steve Echols1-Jul-07 17:55
Steve Echols1-Jul-07 17:55 
GeneralRe: Virtual keyboard losing window focus. Help! Pin
remarkpk112-Jul-07 5:00
remarkpk112-Jul-07 5:00 
Questionmemory allocation syntax Pin
prithaa1-Jul-07 9:52
prithaa1-Jul-07 9:52 
AnswerRe: memory allocation syntax Pin
Mark Salsbery1-Jul-07 10:01
Mark Salsbery1-Jul-07 10:01 
GeneralRe: memory allocation syntax Pin
prithaa1-Jul-07 17:11
prithaa1-Jul-07 17:11 
GeneralRe: memory allocation syntax Pin
Mark Salsbery1-Jul-07 19:42
Mark Salsbery1-Jul-07 19:42 
GeneralRe: memory allocation syntax Pin
prithaa1-Jul-07 19:59
prithaa1-Jul-07 19:59 
GeneralRe: memory allocation syntax Pin
Mark Salsbery1-Jul-07 20:09
Mark Salsbery1-Jul-07 20:09 
prithaa wrote:
So instead of 0xFFFF, I can give any hex such as 0xABFF or only 0xFFFF has to be given.


No. Here's what the docs state:

"If the first element of this array is any value other than 0xFFFF, the system treats the array
as a null-terminated Unicode string that specifies the name of a registered window class. If the
first element is 0xFFFF, the array has one additional element that specifies the ordinal value of
a predefined system class.
"

prithaa wrote:
What is DWORD aligned?


Aligned to a multiple of 4 bytes. sizeof(DLGITEMTEMPLATE) is not a multiple of 4 bytes so read
the docs carefully. The arrays following the struct must be WORD aligned and all the
DLGITEMTEMPLATE structs must each be DWORD aligned. You need to keep track of bytes written and
pad accordingly.

Mark

Mark Salsbery
Microsoft MVP - Visual C++

GeneralRe: memory allocation syntax Pin
prithaa1-Jul-07 20:21
prithaa1-Jul-07 20:21 
QuestionAdding Members to a Base Class Pin
ForNow1-Jul-07 8:05
ForNow1-Jul-07 8:05 
AnswerRe: Adding Members to a Base Class Pin
Mark Salsbery1-Jul-07 8:49
Mark Salsbery1-Jul-07 8:49 
GeneralRe: Adding Members to a Base Class Pin
ForNow1-Jul-07 8:57
ForNow1-Jul-07 8:57 
GeneralRe: Adding Members to a Base Class Pin
Mark Salsbery1-Jul-07 12:11
Mark Salsbery1-Jul-07 12:11 
GeneralRe: Adding Members to a Base Class Pin
ForNow1-Jul-07 14:19
ForNow1-Jul-07 14:19 
GeneralRe: Adding Members to a Base Class Pin
Steve Echols1-Jul-07 17:32
Steve Echols1-Jul-07 17:32 
GeneralRe: Adding Members to a Base Class Pin
Mark Salsbery2-Jul-07 6:59
Mark Salsbery2-Jul-07 6:59 
GeneralRe: Adding Members to a Base Class Pin
Mark Salsbery2-Jul-07 7:01
Mark Salsbery2-Jul-07 7:01 
GeneralRe: Adding Members to a Base Class Pin
ForNow2-Jul-07 12:13
ForNow2-Jul-07 12:13 
QuestionURLDownloadToFile dont work in worker thread [modified] Pin
awah1-Jul-07 5:19
awah1-Jul-07 5:19 
AnswerRe: URLDownloadToFile dont work in worker thread Pin
Mark Salsbery1-Jul-07 9:00
Mark Salsbery1-Jul-07 9:00 
Questionproblem in USB Pen Drive detection Pin
cyberanee1-Jul-07 3:42
cyberanee1-Jul-07 3:42 
QuestionWhere to declare global variables? Pin
KaKa'1-Jul-07 1:48
KaKa'1-Jul-07 1:48 
AnswerRe: Where to declare global variables? Pin
john56321-Jul-07 3:45
john56321-Jul-07 3:45 
AnswerRe: Where to declare global variables? Pin
Arman S.1-Jul-07 4:33
Arman S.1-Jul-07 4:33 
AnswerRe: Where to declare global variables? Pin
Michael Dunn1-Jul-07 12:22
sitebuilderMichael Dunn1-Jul-07 12:22 

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.