Hello, just to expose quite how poor my Delphi knowledge is I'd like to ask for help on the following:

I'm trying to create a very simple class for the task of creating, displaying etc a window through the Win32 API.

The reason for this is that I am trying to stay as strictly OOP as possible since I'm told that this is the whole point of Delphi/OPascal. The thing is whenever I look for code to help me in my tasks it always less than OO. For example when I started looking at the OpenGL tutorials at NeHe's and used the Delphi code I noticed that it isn't at all OO - so I thought I'd do it myself.

However, I'm not quite 'there' yet so I'll start with Win32. I've already had a go but I keep getting tons of Exceptions errors!

Could anyone suggest what I should be *thinking* about when I try to wrap Win32 (or OpenGL for that matter) into a class?

I'm happy to post my code but its a mess ops: