Click here to Skip to main content
15,892,537 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSOLVED Re: Two dimmensional array using pointers on Arduino Due Pin
Vaclav_11-Nov-14 8:30
Vaclav_11-Nov-14 8:30 
GeneralRe: SOLVED Re: Two dimmensional array using pointers on Arduino Due Pin
Richard MacCutchan11-Nov-14 20:57
mveRichard MacCutchan11-Nov-14 20:57 
Questionmfc Pin
adilsk009-Nov-14 19:06
adilsk009-Nov-14 19:06 
AnswerRe: mfc Pin
_Flaviu9-Nov-14 20:18
_Flaviu9-Nov-14 20:18 
AnswerRe: mfc Pin
Richard MacCutchan9-Nov-14 21:46
mveRichard MacCutchan9-Nov-14 21:46 
AnswerRe: mfc Pin
Chris Losinger10-Nov-14 3:05
professionalChris Losinger10-Nov-14 3:05 
QuestionClasses for Win32 UI and how to hide details Pin
Fernando A. Gomez F.9-Nov-14 11:19
Fernando A. Gomez F.9-Nov-14 11:19 
AnswerRe: Classes for Win32 UI and how to hide details Pin
Orjan Westin10-Nov-14 2:55
professionalOrjan Westin10-Nov-14 2:55 
I would recommend your first alternative:
Have struct windata defined in its own header file and have it included in the cpps as needed.

There is a simpler solution, which is practical but not academically pleasing. WinDefs.h has:
typedef HANDLE HWND;

WinNT.h has:
typedef void *PVOID;
typedef PVOID HANDLE;

So you could define a protected typedef in your base class:
typedef void* WindowHandle;

And use that throughout. In a sense, this is cheating, because it depends on looking behind the facade, and it could, at some point stop being valid, since Microsoft could, in theory, change the definitions in a later version of Windows. If you use their definitions, you'd be safe. However, given how much code would break, it's exceedingly unlikely they'll ever change the definitions of those types.
GeneralRe: Classes for Win32 UI and how to hide details Pin
Fernando A. Gomez F.10-Nov-14 6:57
Fernando A. Gomez F.10-Nov-14 6:57 
GeneralRe: Classes for Win32 UI and how to hide details Pin
Orjan Westin10-Nov-14 7:29
professionalOrjan Westin10-Nov-14 7:29 
AnswerRe: Classes for Win32 UI and how to hide details Pin
Aescleal11-Nov-14 2:05
Aescleal11-Nov-14 2:05 
GeneralRe: Classes for Win32 UI and how to hide details Pin
Fernando A. Gomez F.11-Nov-14 8:18
Fernando A. Gomez F.11-Nov-14 8:18 
QuestionCatching OnMouseMove on CGridCtrl Pin
_Flaviu7-Nov-14 0:31
_Flaviu7-Nov-14 0:31 
AnswerRe: Catching OnMouseMove on CGridCtrl Pin
_Flaviu7-Nov-14 0:44
_Flaviu7-Nov-14 0:44 
AnswerRe: Catching OnMouseMove on CGridCtrl Pin
Jochen Arndt7-Nov-14 1:56
professionalJochen Arndt7-Nov-14 1:56 
GeneralRe: Catching OnMouseMove on CGridCtrl Pin
_Flaviu7-Nov-14 2:30
_Flaviu7-Nov-14 2:30 
GeneralRe: Catching OnMouseMove on CGridCtrl Pin
Jochen Arndt7-Nov-14 2:40
professionalJochen Arndt7-Nov-14 2:40 
GeneralRe: Catching OnMouseMove on CGridCtrl Pin
_Flaviu9-Nov-14 20:44
_Flaviu9-Nov-14 20:44 
QuestionGetting Quotes on Call Options and Put Options Pin
BobInNJ6-Nov-14 8:35
BobInNJ6-Nov-14 8:35 
AnswerRe: Getting Quotes on Call Options and Put Options Pin
ZurdoDev6-Nov-14 10:18
professionalZurdoDev6-Nov-14 10:18 
GeneralRe: Getting Quotes on Call Options and Put Options Pin
BobInNJ6-Nov-14 11:36
BobInNJ6-Nov-14 11:36 
AnswerRe: Getting Quotes on Call Options and Put Options Pin
Richard Andrew x646-Nov-14 11:43
professionalRichard Andrew x646-Nov-14 11:43 
AnswerRe: Getting Quotes on Call Options and Put Options Pin
jschell6-Nov-14 13:29
jschell6-Nov-14 13:29 
AnswerRe: Getting Quotes on Call Options and Put Options Pin
Richard MacCutchan6-Nov-14 22:13
mveRichard MacCutchan6-Nov-14 22:13 
Questionhow to free memory space for 2 dimension ? Pin
mybm15-Nov-14 18:18
mybm15-Nov-14 18:18 

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.