Converting IntPtr to HWND

  • Thread starter Thread starter Alison Kakoschke
  • Start date Start date
A

Alison Kakoschke

I need to convert an IntPtr (as returned from the Form,
get_Handle() method) to an HWND but can't find any
information as to how it is done. I've tried everything
I can think of and always seem to get an undefined value
for the pHandle.

HWND pHandle = (HWND)(void*)dataFormChild->get_Handle();

Thanks

Alison Kakoschke.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top