- ClassRegInfo regClass;
- regClass.basename = name;
-
- // constuct a unique suffix to allow registering the class with the same
- // base name in a main application using wxWidgets and a DLL using
- // wxWidgets loaded into its address space: as gs_regClassesInfo variable
- // is different in them, we're going to obtain a unique prefix by using its
- // address here
- regClass.regname = regClass.basename +
- wxString::Format(wxT("@%p"), &gs_regClassesInfo);
- wndclass.lpszClassName = regClass.regname.wx_str();