
Open Control panel app (*.cpl) from MFC app?
says...
Quote:
> Hi all,
> is it possible to open a control panel application from a
> MFC application?
> I'd like to open the control panel app after a button or a
> menu item has been pressed. Is this possible?
> Thanks for help...
> ...Ralf
I just read something about this, think it was in the latest issue of
Windows Developer's Journal (which I don't have here, at the moment.)
The gist was: Since control panel applets are essentially DLLs, use
LoadLibrary (or AfxLoadLibrary) to load the .CPL file, use GetProcAddress
to get the CPlApplet entry point, do what you need to do with the control
panel applet, then call FreeLibrary when you're done.
Sorry this isn't more specific, sine I'm working from memory, but perhaps
it points you in the right direction.