I'd like to be able to initialize a CPropertyPage object with a dialog resource from a different module. Is this possible?
This is a discussion on Using resources from other modules in MFC within the Windows Programming forums, part of the Platform Specific Boards category; I'd like to be able to initialize a CPropertyPage object with a dialog resource from a different module. Is this ...
I'd like to be able to initialize a CPropertyPage object with a dialog resource from a different module. Is this possible?
benforbes@optusnet.com.au
Microsoft Visual Studio .NET 2003 Enterprise Architect
Windows XP Pro
Code Tags
Programming FAQ
Tutorials
I don't see why not - all you need is an instance handle to the dll (AfxLoadLibrary) containing the resource(s) in question and the resource id value (for use with, for example, MAKEINTRESOURCE). Just use the dll instance returned by AfxLoadLibrary in whatever the mfc equivalent of the PROPSHEETPAGE hInstance parameter is.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
Ok thanks, I'll give it a shot.
benforbes@optusnet.com.au
Microsoft Visual Studio .NET 2003 Enterprise Architect
Windows XP Pro
Code Tags
Programming FAQ
Tutorials