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