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 General Discussion » CExtMdiWindowsListDlg and static version of the Prof-UIS libraries Collapse All
Subject Author Date
Adrian Michel Mar 1, 2005 - 10:51 AM


Based on this code snippet from the samples it looks like the Windows List dialog is not available for the static version of the library, and by tracing into the code it looks like it has to do with getting the dialog template resource using the instance id. How can I get this functionality if I link with the static version of the library?


/***************


#if (defined _AFXDLL && !defined __STATPROFUIS_WITH_DLLMFC__)


#ifndef __EXT_MFC_NO_MDI_WINDOWS_LIST_DIALOG


class CMyMdiWindowsListDlg : public CExtMdiWindowsListDlg


****************/


Thanks,


Adrian

Technical Support Mar 1, 2005 - 12:12 PM

At the moment you cannot directly use the Prof-UIS resource-dependent features in applications statically linked with Prof-UIS. This is because LIB files unlike DLLs do not contain resource sections. But there is a workaround: From the Prof-UIS.h header file, remove all compiler directives which exclude CExtMdiWindowsListDlg from the build process. Then include CExtMdiWindowsListDlg source files into the profuislib project and recompile it. After that, you can include Prof-UIS resources directly into your project.