Click here to Skip to main content
15,844,155 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: c++ Pin
Dave Kreskowiak28-Mar-21 11:40
mveDave Kreskowiak28-Mar-21 11:40 
Question<algorithm> sort keeps generating error messages. Pin
aschwarz25-Mar-21 23:12
aschwarz25-Mar-21 23:12 
AnswerRe: <algorithm> sort keeps generating error messages. Pin
Greg Utas26-Mar-21 2:21
professionalGreg Utas26-Mar-21 2:21 
GeneralRe: <algorithm> sort keeps generating error messages. Pin
aschwarz26-Mar-21 7:48
aschwarz26-Mar-21 7:48 
AnswerRe: <algorithm> sort keeps generating error messages. Pin
Mircea Neacsu26-Mar-21 3:40
Mircea Neacsu26-Mar-21 3:40 
GeneralRe: <algorithm> sort keeps generating error messages. Pin
aschwarz26-Mar-21 11:27
aschwarz26-Mar-21 11:27 
GeneralRe: <algorithm> sort keeps generating error messages. Pin
Mircea Neacsu26-Mar-21 13:22
Mircea Neacsu26-Mar-21 13:22 
QuestionWin32 Structures Pin
Richard Andrew x6414-Mar-21 10:52
professionalRichard Andrew x6414-Mar-21 10:52 
My knowledge of the low level implementation of C++ structures and classes is limited.

But I want to ask someone who might know, is it theoretically possible to derive a class from a Win32 structure and add methods and still be able to pass the new "structure" to a Win32 API?

I do know that adding class data members would be out of the question, because that would change the size of the structure.

But is adding methods to a structure something I could do and still use it in the windows api?



The difficult we do right away...
...the impossible takes slightly longer.

AnswerRe: Win32 Structures Pin
Mircea Neacsu14-Mar-21 11:22
Mircea Neacsu14-Mar-21 11:22 
GeneralRe: Win32 Structures Pin
Richard Andrew x6414-Mar-21 11:32
professionalRichard Andrew x6414-Mar-21 11:32 
GeneralRe: Win32 Structures Pin
Mircea Neacsu14-Mar-21 11:36
Mircea Neacsu14-Mar-21 11:36 
AnswerRe: Win32 Structures Pin
11917640 Member 17-Mar-21 4:01
11917640 Member 17-Mar-21 4:01 
GeneralRe: Win32 Structures Pin
Richard Andrew x6417-Mar-21 10:20
professionalRichard Andrew x6417-Mar-21 10:20 
GeneralRe: Win32 Structures Pin
11917640 Member 17-Mar-21 20:19
11917640 Member 17-Mar-21 20:19 
QuestionZoom image on mouse position Pin
Gopi Nath12-Mar-21 1:20
Gopi Nath12-Mar-21 1:20 
AnswerRe: Zoom image on mouse position Pin
Richard MacCutchan12-Mar-21 2:28
mveRichard MacCutchan12-Mar-21 2:28 
GeneralRe: Zoom image on mouse position Pin
Gopi Nath14-Mar-21 21:34
Gopi Nath14-Mar-21 21:34 
QuestionSelect TRACE functions based on both a variable and a #define? Pin
arnold_w11-Mar-21 6:31
arnold_w11-Mar-21 6:31 
AnswerRe: Select TRACE functions based on both a variable and a #define? Pin
Richard MacCutchan11-Mar-21 7:11
mveRichard MacCutchan11-Mar-21 7:11 
GeneralRe: Select TRACE functions based on both a variable and a #define? Pin
arnold_w11-Mar-21 8:07
arnold_w11-Mar-21 8:07 
GeneralRe: Select TRACE functions based on both a variable and a #define? Pin
Richard MacCutchan12-Mar-21 0:11
mveRichard MacCutchan12-Mar-21 0:11 
GeneralRe: Select TRACE functions based on both a variable and a #define? Pin
arnold_w12-Mar-21 1:54
arnold_w12-Mar-21 1:54 
GeneralRe: Select TRACE functions based on both a variable and a #define? Pin
Richard MacCutchan12-Mar-21 2:22
mveRichard MacCutchan12-Mar-21 2:22 
GeneralRe: Select TRACE functions based on both a variable and a #define? Pin
arnold_w12-Mar-21 2:51
arnold_w12-Mar-21 2:51 
GeneralRe: Select TRACE functions based on both a variable and a #define? Pin
Richard MacCutchan12-Mar-21 3:43
mveRichard MacCutchan12-Mar-21 3:43 

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.