+/*
+ wxAutoULong: this class is used for automatically initalising m_cRef to 0
+*/
+class wxAutoULong
+{
+public:
+ wxAutoULong(ULONG value = 0) : m_Value(value) { }
+
+ operator ULONG&() { return m_Value; }
+ ULONG& operator=(ULONG value) { return m_Value = value; }
+
+private:
+ ULONG m_Value;
+};
+