Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. cpl file

cpl file

Scheduled Pinned Locked Moved C / C++ / MFC
question
6 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    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.

    D 1 Reply Last reply
    0
    • A Anonymous

      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.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      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 its CPlApplet() function with various messages, such as CPL_INIT and CPL_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

      R 1 Reply Last reply
      0
      • D David Crow

        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 its CPlApplet() function with various messages, such as CPL_INIT and CPL_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

        R Offline
        R Offline
        Ryan McDermott
        wrote on last edited by
        #3

        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.

        D 1 Reply Last reply
        0
        • R Ryan McDermott

          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.

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          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. When CPlApplet() was called with a message such as CPL_DBLCLK, you would then use CreateProcess() 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

          R 1 Reply Last reply
          0
          • D David Crow

            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. When CPlApplet() was called with a message such as CPL_DBLCLK, you would then use CreateProcess() 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

            R Offline
            R Offline
            Ryan McDermott
            wrote on last edited by
            #5

            yes now it does. Thanks:-D I can be dumb sometimes -Ryan M.

            D 1 Reply Last reply
            0
            • R Ryan McDermott

              yes now it does. Thanks:-D I can be dumb sometimes -Ryan M.

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups