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. Making Autoruns in C++

Making Autoruns in C++

Scheduled Pinned Locked Moved C / C++ / MFC
c++comgraphicsbusiness
9 Posts 7 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.
  • C Offline
    C Offline
    CSHighCommand
    wrote on last edited by
    #1

    I will not lie to you. I am a Visual Basic programmer. I have been for years. However, I have been tasked with developing an autorun application for our CD publications. Naturally, this is not possible in Visual Basic because of the runtime file requirements. A post at vbexplorer.com informed me of this, and went on to say that the best way to develop such an application would be to use Visual C++. My first response: “YUCK!”. I can be completely honest when I say that I hate C++. And even as one in the development field I strive to avoid it at all costs. I hardly understand the basics of console application (cin>>) development in it and thus realize it is going to be a monumental struggle to complete this task. So here I am, asking, begging rather, for help. Here is what I need: An application that: a. Loads a form on the screen, which takes up the screens width/height parameters. b. It must have at least the “X” close button to allow the annoyed users to bypass the autorun features. c. It needs to have a background image, a bitmap, set to a specified file location. d. It needs two buttons: a. one that opens an internet location (without preference to browsers) b. one that opens a setup exe file (location will be in same directory as the program) e. Must be editable in Visual C++ 6.0 That’s about it. Is there any chance for help out there? Can anyone toss a quick sample together for me. That is really all that I need to take a crack at this. In High School I had a VC++ course but it was real basic stuff. And in college I know I am credit packing my way away from having to take it. I KNOW I will need to learn it sometime, but this would sure be a big help in getting me started. Note: Please comment; heavily, no wait, over comment it. Thanks, Erik J. Long

    A M P 3 Replies Last reply
    0
    • C CSHighCommand

      I will not lie to you. I am a Visual Basic programmer. I have been for years. However, I have been tasked with developing an autorun application for our CD publications. Naturally, this is not possible in Visual Basic because of the runtime file requirements. A post at vbexplorer.com informed me of this, and went on to say that the best way to develop such an application would be to use Visual C++. My first response: “YUCK!”. I can be completely honest when I say that I hate C++. And even as one in the development field I strive to avoid it at all costs. I hardly understand the basics of console application (cin>>) development in it and thus realize it is going to be a monumental struggle to complete this task. So here I am, asking, begging rather, for help. Here is what I need: An application that: a. Loads a form on the screen, which takes up the screens width/height parameters. b. It must have at least the “X” close button to allow the annoyed users to bypass the autorun features. c. It needs to have a background image, a bitmap, set to a specified file location. d. It needs two buttons: a. one that opens an internet location (without preference to browsers) b. one that opens a setup exe file (location will be in same directory as the program) e. Must be editable in Visual C++ 6.0 That’s about it. Is there any chance for help out there? Can anyone toss a quick sample together for me. That is really all that I need to take a crack at this. In High School I had a VC++ course but it was real basic stuff. And in college I know I am credit packing my way away from having to take it. I KNOW I will need to learn it sometime, but this would sure be a big help in getting me started. Note: Please comment; heavily, no wait, over comment it. Thanks, Erik J. Long

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      If you don't know cout sin stuff like that, forget about creating a win32 application( its easy) but not for a "newbie". I would ask a pro or someone with experience to create the autorun feature. But what your asking is fearly simple and could be created in few hours.

      A 1 Reply Last reply
      0
      • A Anonymous

        If you don't know cout sin stuff like that, forget about creating a win32 application( its easy) but not for a "newbie". I would ask a pro or someone with experience to create the autorun feature. But what your asking is fearly simple and could be created in few hours.

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        I know the basic functions of C++ cin, cout, that's nothing. I need something to go on.

        1 Reply Last reply
        0
        • C CSHighCommand

          I will not lie to you. I am a Visual Basic programmer. I have been for years. However, I have been tasked with developing an autorun application for our CD publications. Naturally, this is not possible in Visual Basic because of the runtime file requirements. A post at vbexplorer.com informed me of this, and went on to say that the best way to develop such an application would be to use Visual C++. My first response: “YUCK!”. I can be completely honest when I say that I hate C++. And even as one in the development field I strive to avoid it at all costs. I hardly understand the basics of console application (cin>>) development in it and thus realize it is going to be a monumental struggle to complete this task. So here I am, asking, begging rather, for help. Here is what I need: An application that: a. Loads a form on the screen, which takes up the screens width/height parameters. b. It must have at least the “X” close button to allow the annoyed users to bypass the autorun features. c. It needs to have a background image, a bitmap, set to a specified file location. d. It needs two buttons: a. one that opens an internet location (without preference to browsers) b. one that opens a setup exe file (location will be in same directory as the program) e. Must be editable in Visual C++ 6.0 That’s about it. Is there any chance for help out there? Can anyone toss a quick sample together for me. That is really all that I need to take a crack at this. In High School I had a VC++ course but it was real basic stuff. And in college I know I am credit packing my way away from having to take it. I KNOW I will need to learn it sometime, but this would sure be a big help in getting me started. Note: Please comment; heavily, no wait, over comment it. Thanks, Erik J. Long

          M Offline
          M Offline
          Martin Marvinski
          wrote on last edited by
          #4

          autorun is very easy. create a win32 app, and call the shellexecute function to the setup program on your disk. then place a autorun.ini file on the disk. if you need more the code, i can post it because it is only about 10 lines.

          B 1 Reply Last reply
          0
          • M Martin Marvinski

            autorun is very easy. create a win32 app, and call the shellexecute function to the setup program on your disk. then place a autorun.ini file on the disk. if you need more the code, i can post it because it is only about 10 lines.

            B Offline
            B Offline
            Bill Wilson
            wrote on last edited by
            #5

            I sure can't think of any reason a program that is launched by autorun canot be written in VB. Try it and see. Create a .exe file. Place its name in a file named autorun.inf Like this [autorun] open = MyVBApp.exe

            J S 2 Replies Last reply
            0
            • B Bill Wilson

              I sure can't think of any reason a program that is launched by autorun canot be written in VB. Try it and see. Create a .exe file. Place its name in a file named autorun.inf Like this [autorun] open = MyVBApp.exe

              J Offline
              J Offline
              Jerome Conus
              wrote on last edited by
              #6

              Hi ! But, what about the VB Runtime DLL ? If the user don't have it installed, how will the VB App be able to launch ? Jerome

              B 1 Reply Last reply
              0
              • C CSHighCommand

                I will not lie to you. I am a Visual Basic programmer. I have been for years. However, I have been tasked with developing an autorun application for our CD publications. Naturally, this is not possible in Visual Basic because of the runtime file requirements. A post at vbexplorer.com informed me of this, and went on to say that the best way to develop such an application would be to use Visual C++. My first response: “YUCK!”. I can be completely honest when I say that I hate C++. And even as one in the development field I strive to avoid it at all costs. I hardly understand the basics of console application (cin>>) development in it and thus realize it is going to be a monumental struggle to complete this task. So here I am, asking, begging rather, for help. Here is what I need: An application that: a. Loads a form on the screen, which takes up the screens width/height parameters. b. It must have at least the “X” close button to allow the annoyed users to bypass the autorun features. c. It needs to have a background image, a bitmap, set to a specified file location. d. It needs two buttons: a. one that opens an internet location (without preference to browsers) b. one that opens a setup exe file (location will be in same directory as the program) e. Must be editable in Visual C++ 6.0 That’s about it. Is there any chance for help out there? Can anyone toss a quick sample together for me. That is really all that I need to take a crack at this. In High School I had a VC++ course but it was real basic stuff. And in college I know I am credit packing my way away from having to take it. I KNOW I will need to learn it sometime, but this would sure be a big help in getting me started. Note: Please comment; heavily, no wait, over comment it. Thanks, Erik J. Long

                P Offline
                P Offline
                Patje
                wrote on last edited by
                #7

                Why not just buy an autorun application, like Autorun Menu Studio. Look at http://www.softpile.com/Development/Distribution/Review_03051_index.html[^] or www.indigorose.com[^]. Some years ago, version 1 of this product was even free. Enjoy life, this is not a rehearsal !!!

                1 Reply Last reply
                0
                • B Bill Wilson

                  I sure can't think of any reason a program that is launched by autorun canot be written in VB. Try it and see. Create a .exe file. Place its name in a file named autorun.inf Like this [autorun] open = MyVBApp.exe

                  S Offline
                  S Offline
                  Slayer
                  wrote on last edited by
                  #8

                  Xxx.xxx is createdfile. in autorun.ini file, write [autorun] open=xxx.xxx (if only xxx=exe) ico=path(if u want to add ico) or [autorun] open=start xxx.xxx(if xxx=bat,txt,...) //start is the command of cmd.exe

                  1 Reply Last reply
                  0
                  • J Jerome Conus

                    Hi ! But, what about the VB Runtime DLL ? If the user don't have it installed, how will the VB App be able to launch ? Jerome

                    B Offline
                    B Offline
                    Bill Wilson
                    wrote on last edited by
                    #9

                    That's a good point. In that case, VB won't work. Although the same is true of any other .exe that has external dependencies that might not be installed. (like common control library or an old version of the ole libs.) Reading the post more closely, the users is simply describing a typical install program. Use the MS windows installer or InstallShield or Wise or any one of a number of other products to build such an install process.

                    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