I'd like to write a Control Panel Application, using Visual C++ 6.
I know that I must write a kind of dll that treats CPL messages and I've read the corresponding MSDN help.
But the code I've written doesn't work.
Here is it:
//I've created a win32 dll project
//Then, I've deleted the dll entry point function.
//Here beyond is my code
LONG CALLBACK CPlApplet(HWND hWndCPL, UINT uMsg, LPARAM lParam1, LPARAM lParam2)
MessageBox(hWndCPL, "Begin of CPlApplet", "Debug info", /* all the styles I need */);
I think CPlApplet should become the standard entry point for control panel application. But when I put the compiled file (yes, it compiles without any problem) in the Windows\System directory and then launch the file, nothing happens.
Can anyone help me?
Why doesn't the message box appear?
At least, do you know any web site where a simple example of such a cpl-app is given?