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!!! 6 2433 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.
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. 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 GetCDROMLocatio n();
// static to represent file-scope has been deprecated;
// use anonymous namespaces instead
namespace
{
const std::string cdromLocation = GetCDROMLocatio n();
}
int main()
{
// ... use cdromLocation here ...
}
The details of what GetCDROMLocatio n() does, however, should be sought
from a group dealing with your platform.
Cheers! --M 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.
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!
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 without comments is only about 30 lines.
Also included a setup.py at the end of the script so you can
'compile' it easily.
py>#####################################################################
|
by: Ray5531 |
last post by:
I'm looking for a good Freeware autorun maker for my C# application.Any
suggessions?
Thanks
|
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 "Browse CD" button
displays a directory of the CD , then exits, leaving the directory on
display.
|
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 or
launches if it is already installed. If the end-user has the application
open and inserts a new CD (containing the legacy app), a new instance of the
application is launched. That's fine for the legacy application.
The new application is a...
|
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 one here may be
able to answer this simple question.
If I burn a CD/DVD and include a file in the root of the burned disk
called Autorun.inf and the contents of it is:
open=C:\Program Files\myProgram.EXE
| |
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 specific Flash Disk device.
It would be very thankful If anyone could tell me about it.
|
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 VB6 cds'.
I want to create a nice splashy screen that will run from ( Autorun.inf ) on
a CD when a cd is installed.
|
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 initialised, I'm not sure), the autorun.inf runs an executable. I was thinking I could write a program/script that checks all available disks for an autorun.inf and either replaces or deletes the file. This way, the executable doesn't run. Now, surely...
|
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). Much of the contents of this article are tested on Windows XP professional SP2 by the author. Some instances of this article may be altogether different/missing on Windows Vista, XP and other Windows NT systems, but I have tried to write a...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |