Advertisement
Guest User

Untitled

a guest
Jun 4th, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. class def
  2.  
  3. public ref class PixelFormatDescriptor
  4. {
  5. public:
  6. PixelFormatDescriptor();
  7. PixelFormatDescriptor(PIXELFORMATDESCRIPTOR *pfd);
  8.  
  9. const PIXELFORMATDESCRIPTOR* operator*(System::Drawing::GLSharp::PixelFormatDescriptor ^p)
  10. {
  11. return m_pfd;
  12. }
  13. ***
  14.  
  15. usage:
  16.  
  17. PixelFormatDescriptor ^pfd = new PixelFormatDescriptor();
  18. ::ChoosePixelFormat(m_hdc, pfd);
  19.  
  20. problem:
  21.  
  22. ChoosePixelFormat expects pfd to be a const PIXELFORMATDESCRIPTOR *, how would i fix the operator overload?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement