I am stuck at running this ArcGIS Engine Sample code, when I get:
I'm looking for any working example of Symbol Selector.
I'm working on XP SP3, ArcGIS 10.1 and ArcGIS Engine 10.1
I am stuck at running this ArcGIS Engine Sample code, when I get:
I'm looking for any working example of Symbol Selector.
I'm working on XP SP3, ArcGIS 10.1 and ArcGIS Engine 10.1
I also get an error when attempting to click the context menu item in the sample:
A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll 'MapControlAppPropertyPage.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll' Creating an instance of the COM component with CLSID {F9043C85-F6F2-101A-A3C9-08002B2F49FB} from the IClassFactory failed due to the following error: 80040112. The thread '' (0x4d8) has exited with code 0 (0x0).
It sounds from the comment on your SO question that this just comes down to the sample relying on a really old 3rd party library (PropertyPages.dll) that has since been broken by 1 or more security patches.
If someone with C++ experience took the time they could probably recompile the DLL from the provided source code to make the sample work, but it's probably unnecessary. You can create property pages without it, so I'm not sure why it's used in this case.
You could also just look at the source code and the designer to get an idea of how it is supposed to work.