cpl file
-
Hello, I want to have a command line program create a cpl (control panel applet)file of another executable. Does anybody have code that would let me do this? Thank you.
Remember that a Control Panel applet is just a DLL with a special function called
CPlApplet()
. When the Windows Control Panel starts up, it looks for .CPL files, and for each one found and loaded, it calls itsCPlApplet()
function with various messages, such asCPL_INIT
andCPL_DBLCLK
. Is that enough to get you going?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
-
Remember that a Control Panel applet is just a DLL with a special function called
CPlApplet()
. When the Windows Control Panel starts up, it looks for .CPL files, and for each one found and loaded, it calls itsCPlApplet()
function with various messages, such asCPL_INIT
andCPL_DBLCLK
. Is that enough to get you going?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
yea that helps. I dont really want to use MFC. I dont know if that code was MFC or not. I was wondering if its possible to convert an exe to a cpl file. I want code that converts the exe to a cpl. -Ryan M.
-
yea that helps. I dont really want to use MFC. I dont know if that code was MFC or not. I was wondering if its possible to convert an exe to a cpl file. I want code that converts the exe to a cpl. -Ryan M.
Ryan McDermott wrote: I dont really want to use MFC. MFC is not required, and would really be overkill anyway. Ryan McDermott wrote: I dont know if that code was MFC or not. Which code? Ryan McDermott wrote: I was wondering if its possible to convert an exe to a cpl file. I want code that converts the exe to a cpl. What do you mean by "converting?" The three requirements are that the applet must be a DLL, it must have a .CPL extension, and it must export a
CPlApplet()
function. My suggestion would be to create an application that met all three of these requirements. WhenCPlApplet()
was called with a message such asCPL_DBLCLK
, you would then useCreateProcess()
to start the .EXE. Make sense?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
-
Ryan McDermott wrote: I dont really want to use MFC. MFC is not required, and would really be overkill anyway. Ryan McDermott wrote: I dont know if that code was MFC or not. Which code? Ryan McDermott wrote: I was wondering if its possible to convert an exe to a cpl file. I want code that converts the exe to a cpl. What do you mean by "converting?" The three requirements are that the applet must be a DLL, it must have a .CPL extension, and it must export a
CPlApplet()
function. My suggestion would be to create an application that met all three of these requirements. WhenCPlApplet()
was called with a message such asCPL_DBLCLK
, you would then useCreateProcess()
to start the .EXE. Make sense?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
yes now it does. Thanks:-D I can be dumb sometimes -Ryan M.
-
yes now it does. Thanks:-D I can be dumb sometimes -Ryan M.
Ryan McDermott wrote: I can be dumb sometimes I doubt it. Lack of experience is not the same as inability to learn.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen