473,382 Members | 1,329 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Help with cd autorun program

I am trying to write a C++ autorun launcher, but i have a problem, i
cannot figure out how to set the buttons to launch the apps to use
whatever drive number the CDROM is located at, all i can think of is to
have it default to D:\, but then it won't work on most computers!!!
Please help!!!

Nov 2 '06 #1
6 2411
AO************@gmail.com wrote:
I am trying to write a C++ autorun launcher, but i have a problem, i
cannot figure out how to set the buttons to launch the apps to use
whatever drive number the CDROM is located at, all i can think of is to
have it default to D:\, but then it won't work on most computers!!!
Please help!!!
And your C++ question is? The C++ language does not discuss "autorun",
"launcher", "CDROM", or "buttons".

Try a Microsoft specific newsgroup.
Nov 2 '06 #2

red floyd wrote:
AO************@gmail.com wrote:
I am trying to write a C++ autorun launcher, but i have a problem, i
cannot figure out how to set the buttons to launch the apps to use
whatever drive number the CDROM is located at, all i can think of is to
have it default to D:\, but then it won't work on most computers!!!
Please help!!!

And your C++ question is? The C++ language does not discuss "autorun",
"launcher", "CDROM", or "buttons".

Try a Microsoft specific newsgroup.
OK, let me clarify, what i am trying to do is find out if i can have
the program, on initialization, grab the location of the cdrom drive
from the system, and set it to a static variable for the session. I was
wondering if it is possible to have this occur every time i run the
program
I hope this clears up the confusion.

Nov 3 '06 #3
AO************@gmail.com wrote:
red floyd wrote:
AO************@gmail.com wrote:
I am trying to write a C++ autorun launcher, but i have a problem, i
cannot figure out how to set the buttons to launch the apps to use
whatever drive number the CDROM is located at, all i can think of is to
have it default to D:\, but then it won't work on most computers!!!
Please help!!!
>
And your C++ question is? The C++ language does not discuss "autorun",
"launcher", "CDROM", or "buttons".

Try a Microsoft specific newsgroup.

OK, let me clarify, what i am trying to do is find out if i can have
the program, on initialization, grab the location of the cdrom drive
from the system, and set it to a static variable for the session. I was
wondering if it is possible to have this occur every time i run the
program
Yes:

#include <string>

// Prototype
std::string GetCDROMLocation();

// static to represent file-scope has been deprecated;
// use anonymous namespaces instead
namespace
{
const std::string cdromLocation = GetCDROMLocation();
}

int main()
{
// ... use cdromLocation here ...
}

The details of what GetCDROMLocation() does, however, should be sought
from a group dealing with your platform.

Cheers! --M

Nov 3 '06 #4
AO************@gmail.com wrote:
red floyd wrote:
AO************@gmail.com wrote:
I am trying to write a C++ autorun launcher, but i have a problem, i
cannot figure out how to set the buttons to launch the apps to use
whatever drive number the CDROM is located at, all i can think of is to
have it default to D:\, but then it won't work on most computers!!!
Please help!!!
>
And your C++ question is? The C++ language does not discuss "autorun",
"launcher", "CDROM", or "buttons".

Try a Microsoft specific newsgroup.

OK, let me clarify, what i am trying to do is find out if i can have
the program, on initialization, grab the location of the cdrom drive
from the system, and set it to a static variable for the session. I was
wondering if it is possible to have this occur every time i run the
program
I hope this clears up the confusion.
This group is about standard C++. You still didn't post a C++ question.
Please take AOECheatmaster's advice and try a Microsoft specific group.

Nov 3 '06 #5

ralph schrieb:
AO************@gmail.com wrote:
red floyd wrote:
AO************@gmail.com wrote:
I am trying to write a C++ autorun launcher, but i have a problem, i
cannot figure out how to set the buttons to launch the apps to use
whatever drive number the CDROM is located at, all i can think of is to
have it default to D:\, but then it won't work on most computers!!!
Please help!!!

>
And your C++ question is? The C++ language does not discuss "autorun",
"launcher", "CDROM", or "buttons".
>
Try a Microsoft specific newsgroup.
OK, let me clarify, what i am trying to do is find out if i can have
the program, on initialization, grab the location of the cdrom drive
from the system, and set it to a static variable for the session. I was
wondering if it is possible to have this occur every time i run the
program
I hope this clears up the confusion.

This group is about standard C++. You still didn't post a C++ question.
Please take AOECheatmaster's advice and try a Microsoft specific group.
Oops. Of course red floyd gave you the advice to try another group...
sorry!

Nov 3 '06 #6

ralph wrote:
ralph schrieb:
AO************@gmail.com wrote:
red floyd wrote:
AO************@gmail.com wrote:
I am trying to write a C++ autorun launcher, but i have a problem, i
cannot figure out how to set the buttons to launch the apps to use
whatever drive number the CDROM is located at, all i can think of is to
have it default to D:\, but then it won't work on most computers!!!
Please help!!!
>

And your C++ question is? The C++ language does not discuss "autorun",
"launcher", "CDROM", or "buttons".

Try a Microsoft specific newsgroup.
>
OK, let me clarify, what i am trying to do is find out if i can have
the program, on initialization, grab the location of the cdrom drive
from the system, and set it to a static variable for the session. I was
wondering if it is possible to have this occur every time i run the
program
I hope this clears up the confusion.
This group is about standard C++. You still didn't post a C++ question.
Please take AOECheatmaster's advice and try a Microsoft specific group.

Oops. Of course red floyd gave you the advice to try another group...
sorry!
Thanks guys, but i believe that i can use dotNet like the previous
person posted, so that may work. I appreciate the help, because if a i
cannot do it in standard C++ then i must need to use dotNet.

Nov 3 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: M.E.Farmer | last post by:
Hello all, I needed this and did a quick search around and didn't see any examples. I knew it had to be easy, and it was. So here it is a CD_Autorun program in python. It is very simple and...
11
by: Ray5531 | last post by:
I'm looking for a good Freeware autorun maker for my C# application.Any suggessions? Thanks
8
by: duha | last post by:
Writing my own flash screen and autorun.exe in VB .NET. In most commercial packages the autorun flash screen includes at least three buttons: "Install", "Browse CD" and "Quit." Hitting the...
2
by: Carl Fenley | last post by:
I am writing a new version of a legacy application. The legacy application comes packaged with end-user data on a CD or DVD. When the end-user inserts the CD, the application is either installed...
2
by: Joe Cool | last post by:
I know this is probably not the proper newsgroup to ask this question, but I do not know which one is. And most of you guys here know a lot about windows programming so I am taking a chance some...
2
by: tmWin | last post by:
Hi all I wanna run my application directly from a Flash Disk. I want it AUTORUN once the device is attached. I have seen some virus script-programs which create their own autoruns on a...
9
by: Miro | last post by:
Wondering if anyone here has come up with a different solution than I keep coming back to: Here is a thought and I just can't seem to come up with another solution other than to install my old...
2
MrMancunian
by: MrMancunian | last post by:
Hi Everybody, We've got a virus problem in our department and the thing it does is always the same. It creates an autorun.inf in the root of every partition. When the partition is accessed (or...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: Overview NOTE- This complete article on "Windows Autorun FAQs" applies theoretically to all Windows NT-based OSes till Windows Vista (and probably Vista's successors too)....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.