Click here to Skip to main content
15,794,629 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SOLVED Re: Two dimmensional array using pointers on Arduino Due Pin
Richard MacCutchan11-Nov-14 21:57
mveRichard MacCutchan11-Nov-14 21:57 
Questionmfc Pin
adilsk009-Nov-14 20:06
adilsk009-Nov-14 20:06 
AnswerRe: mfc Pin
_Flaviu9-Nov-14 21:18
_Flaviu9-Nov-14 21:18 
AnswerRe: mfc Pin
Richard MacCutchan9-Nov-14 22:46
mveRichard MacCutchan9-Nov-14 22:46 
AnswerRe: mfc Pin
Chris Losinger10-Nov-14 4:05
professionalChris Losinger10-Nov-14 4:05 
QuestionClasses for Win32 UI and how to hide details Pin
Fernando A. Gomez F.9-Nov-14 12:19
Fernando A. Gomez F.9-Nov-14 12:19 
AnswerRe: Classes for Win32 UI and how to hide details Pin
Orjan Westin10-Nov-14 3:55
professionalOrjan Westin10-Nov-14 3:55 
GeneralRe: Classes for Win32 UI and how to hide details Pin
Fernando A. Gomez F.10-Nov-14 7:57
Fernando A. Gomez F.10-Nov-14 7:57 
Thank you Orjan,

yeh I was lurking the windef file and actually got this working:

C++
struct opaque
{
    int* data;
};
typedef opaque* opaque_ptr;


And then this works:

C++
HWND wnd = GetSomeWindowHandle();
opaque_ptr h = reinterpret_cast<opaque_ptr>(wnd);
// and then...
wnd = reinterpret_cast<HWND>(h);


But as you said, it feels like cheating. I'll give it further thought, and if I can't find anything else, I think I'll be using this approach.

Thanks again for the help! Best regards.

modified 10-Nov-14 13:14pm.

GeneralRe: Classes for Win32 UI and how to hide details Pin
Orjan Westin10-Nov-14 8:29
professionalOrjan Westin10-Nov-14 8:29 
AnswerRe: Classes for Win32 UI and how to hide details Pin
Aescleal11-Nov-14 3:05
Aescleal11-Nov-14 3:05 
GeneralRe: Classes for Win32 UI and how to hide details Pin
Fernando A. Gomez F.11-Nov-14 9:18
Fernando A. Gomez F.11-Nov-14 9:18 
QuestionCatching OnMouseMove on CGridCtrl Pin
_Flaviu7-Nov-14 1:31
_Flaviu7-Nov-14 1:31 
AnswerRe: Catching OnMouseMove on CGridCtrl Pin
_Flaviu7-Nov-14 1:44
_Flaviu7-Nov-14 1:44 
AnswerRe: Catching OnMouseMove on CGridCtrl Pin
Jochen Arndt7-Nov-14 2:56
professionalJochen Arndt7-Nov-14 2:56 
GeneralRe: Catching OnMouseMove on CGridCtrl Pin
_Flaviu7-Nov-14 3:30
_Flaviu7-Nov-14 3:30 
GeneralRe: Catching OnMouseMove on CGridCtrl Pin
Jochen Arndt7-Nov-14 3:40
professionalJochen Arndt7-Nov-14 3:40 
GeneralRe: Catching OnMouseMove on CGridCtrl Pin
_Flaviu9-Nov-14 21:44
_Flaviu9-Nov-14 21:44 
QuestionGetting Quotes on Call Options and Put Options Pin
BobInNJ6-Nov-14 9:35
BobInNJ6-Nov-14 9:35 
AnswerRe: Getting Quotes on Call Options and Put Options Pin
ZurdoDev6-Nov-14 11:18
professionalZurdoDev6-Nov-14 11:18 
GeneralRe: Getting Quotes on Call Options and Put Options Pin
BobInNJ6-Nov-14 12:36
BobInNJ6-Nov-14 12:36 
AnswerRe: Getting Quotes on Call Options and Put Options Pin
Richard Andrew x646-Nov-14 12:43
professionalRichard Andrew x646-Nov-14 12:43 
AnswerRe: Getting Quotes on Call Options and Put Options Pin
jschell6-Nov-14 14:29
jschell6-Nov-14 14:29 
AnswerRe: Getting Quotes on Call Options and Put Options Pin
Richard MacCutchan6-Nov-14 23:13
mveRichard MacCutchan6-Nov-14 23:13 
Questionhow to free memory space for 2 dimension ? Pin
mybm15-Nov-14 19:18
mybm15-Nov-14 19:18 
SuggestionRe: how to free memory space for 2 dimension ? Pin
Jochen Arndt5-Nov-14 22:13
professionalJochen Arndt5-Nov-14 22:13 

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.