By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,260 Members | 1,279 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,260 IT Pros & Developers. It's quick & easy.

Help with cd autorun program

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a
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

P: n/a

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

P: n/a
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

P: n/a
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

P: n/a

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

P: n/a

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 discussion thread is closed

Replies have been disabled for this discussion.