From: James Yu on
I follow the example provided at
http://docs.wxwidgets.org/2.8.6/wx_wxhashset.html as follows:
class MyClass { /* ... */ };

// same, with MyClass* keys (only uses pointer equality!)
WX_DECLARE_HASH_SET( MyClass*, wxPointerHash, wxPointerEqual, MySet1 );
....

here is my line:
WX_DECLARE_HASH_SET(DIRPICKERDESC*, wxPointerHash, wxPointerEqual,
DIRPICKERDESCSET);
DIRPICKERSEC is a class, and DIRPICKERSESCSET is the class for the set.

When I built my project, I got the following error:
error: `DIRPICKERDESCSET' has not been declared

Could someone offer me some hints ?
Thanks,
--
This is a UTF-8 formatted mail
-----------------------------------------------
James C.-C.Yu
+886932353055
From: Vadim Zeitlin on
On Thu, 24 Apr 2008 05:48:58 +0800 James Yu <cyu021(a)gmail.com> wrote:

JY> I follow the example provided at
JY> http://docs.wxwidgets.org/2.8.6/wx_wxhashset.html as follows:
JY> class MyClass { /* ... */ };
JY>
JY> // same, with MyClass* keys (only uses pointer equality!)
JY> WX_DECLARE_HASH_SET( MyClass*, wxPointerHash, wxPointerEqual, MySet1 );
JY> ...
JY>
JY> here is my line:
JY> WX_DECLARE_HASH_SET(DIRPICKERDESC*, wxPointerHash, wxPointerEqual,
JY> DIRPICKERDESCSET);
JY> DIRPICKERSEC is a class, and DIRPICKERSESCSET is the class for the set.
JY>
JY> When I built my project, I got the following error:
JY> error: `DIRPICKERDESCSET' has not been declared
JY>
JY> Could someone offer me some hints ?

Well, the obvious question is: is DIRPICKERDESCSET declared?
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/