Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » CExtPropertyGridCtrl together with a dll Collapse All
Subject Author Date
Lars Mohr Aug 26, 2009 - 3:34 PM

Hi support team,


is there a way that I can create a CExtPropertyStore (including CExtPropertyItems aso) object in a dll and pass the pointer to the exe where is the CExtPropertyGridCtrl ? I get an error in the function CExtPropertyCategory::Combine at this point: DYNAMIC_DOWNCAST( CExtPropertyCategory, pOtherItem ); because the Runtime classes are on different physical locations.


What is the best solution for that? For the dll I use the ProfUIS285md-RDE.dll


regards


lars


 


 

Lars Mohr Aug 27, 2009 - 2:13 PM

My dll is a "<label id="DLL_TYPE_REGULAR_LABEL" for="DLL_TYPE_REGULAR">Regular DLL using shared MFC DLL</label> " and I load the dll via HINSTANCE hLib = ::LoadLibraryA( strLibPathA ). Is this possible to use this dll type? I will send you a test programm to support@prof-uis.com

Technical Support Aug 29, 2009 - 4:22 AM

Thank you for the test projects. We fixed them and replied your e-mail with attachment.

Lars Mohr Aug 30, 2009 - 3:27 PM

Thank you for the fast answer & detailed description...

Technical Support Aug 27, 2009 - 8:50 AM

Yes, you can create property stores in DLLs used from MFC regular DLL based on Prof-UIS RDE DLL. But the DLL project which creates property stores should be MFC/RDE extension DLL. It should be loaded by your regular DLL via static/stub dependency or via AfxLoadLibrary() API invocation.