Link to home
Start Free TrialLog in
Avatar of nikhilh
nikhilh

asked on

Converting a handle to a structure

I have a handle returned from the clipboard which points to a metafile. I want to convert it to the metafile structure so that I can save it to the disk.

How can I do it.

Thanks in advance

nikhilh
Avatar of Andy_Keys
Andy_Keys

I assume the handle from the cipboard is a handle to a global memoy block in which case you should be able to do somthing like
GlobalLock this returns a ptr to the data so you can cast this to a ptr to the metafile struct.
Avatar of nikhilh

ASKER

It does not work
ASKER CERTIFIED SOLUTION
Avatar of unmeshv
unmeshv

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial