473,406 Members | 2,954 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,406 software developers and data experts.

A very little help please.....

Would anyone here be so kind as to post the code to a simple, command line
C++ application that would take a single string parameter as input (will be
a filename - maybe with full path or just a filename if file resides in same
directory as the launching C++ exe) and launches that file.

The file to be launched may be a WAV or MP3 or WSH script or whatever. The
filename passed in as the sole parameter to the exe may be simply a file's
name (MyFile.???) or may have the full path (C:\Program
Files\MyFileSir\MyFile.???) specified.

The C++ app should run on every Windows OS from Win98 to 2003 and should
compile with Visual Studio 2003 as unmanaged code (so as to not burden the
app unnecessarily with .Net framework stuff).

Nov 17 '05 #1
2 1023
Can't you use start.exe (it existed since 98 I believe) ?

--
Regards,
Nish [VC++ MVP]
http://www.voidnish.com
http://blog.voidnish.com
"Nuubee" <re***@groups.please> wrote in message
news:DI********************@giganews.com...
Would anyone here be so kind as to post the code to a simple, command line
C++ application that would take a single string parameter as input (will
be a filename - maybe with full path or just a filename if file resides in
same directory as the launching C++ exe) and launches that file.

The file to be launched may be a WAV or MP3 or WSH script or whatever.
The filename passed in as the sole parameter to the exe may be simply a
file's name (MyFile.???) or may have the full path (C:\Program
Files\MyFileSir\MyFile.???) specified.

The C++ app should run on every Windows OS from Win98 to 2003 and should
compile with Visual Studio 2003 as unmanaged code (so as to not burden the
app unnecessarily with .Net framework stuff).

Nov 17 '05 #2
Found it!

http://www.planetsourcecode.com/vb/s...d=184&lngWId=3
"Nishant Sivakumar" <ni**@nospam.asianetindia.com> wrote in message
news:et**************@TK2MSFTNGP09.phx.gbl...
Can't you use start.exe (it existed since 98 I believe) ?

--
Regards,
Nish [VC++ MVP]
http://www.voidnish.com
http://blog.voidnish.com
"Nuubee" <re***@groups.please> wrote in message
news:DI********************@giganews.com...
Would anyone here be so kind as to post the code to a simple, command
line C++ application that would take a single string parameter as input
(will be a filename - maybe with full path or just a filename if file
resides in same directory as the launching C++ exe) and launches that
file.

The file to be launched may be a WAV or MP3 or WSH script or whatever.
The filename passed in as the sole parameter to the exe may be simply a
file's name (MyFile.???) or may have the full path (C:\Program
Files\MyFileSir\MyFile.???) specified.

The C++ app should run on every Windows OS from Win98 to 2003 and should
compile with Visual Studio 2003 as unmanaged code (so as to not burden
the app unnecessarily with .Net framework stuff).


Nov 17 '05 #3

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

Similar topics

2
by: rmn | last post by:
Hi, I'm looking for the translation betwen the color spaces, but I must be mistaken with the methods to use, losing the values. Please, I need a little help of a "coloured guru"....
3
by: Ron Stephens | last post by:
I posted to my web site a fun little program called merlin.py today. Please keep in mind that I am a hobbyist and this is just a little hack, if you look at the code you will see that it is still...
2
by: hicham | last post by:
Hi, I am looking for help, i would like to know how can i use the endian.h and config.h to convert compiled files under solaris from BIG-ENDIAN to compiled files LITTLE-ENDIAN. I am working...
2
by: Slash | last post by:
I often do a lot of text-mode programming in Linux and wanted to use colors in text mode, and found the ncurses library needlessly complex for small applications. So I wrote my own little header to...
8
by: Perception | last post by:
Hello all, If I have a C-like data structure such that struct Data { int a; //16-bit value char; //3 ASCII characters int b; //32-bit value int c; //24-bit value }
2
by: Daniel | last post by:
I'm new to .Net and all of its abilities so I hope this makes sense. Basically I'm confused on when is the appropriate time to use web forms controls vs. regular HTML. For example in ASP...
13
by: junky_fellow | last post by:
Hi guys, I need to convert a big endian integer to little endian integer. (the integer is 4 bytes in size on my implementation). I came up with the following code. I need your comments on...
3
by: ThaDoctor | last post by:
Hi. I am quite new to C++ so I think I would ask here what I am doing wrong with this code. I am writing a little game in a text console, but here is something that is in no way related to the...
23
by: Niranjan | last post by:
I have this program : void main() { int i=1; if((*(char*)&i)==1) printf("The machine is little endian."); else printf("The machine is big endian."); }
3
by: Ethan Furman | last post by:
len wrote: I've never had the (mis?)fortune to work with COBOL -- what are the files like? Fixed format, or something like a dBase III style? I
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
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,...
0
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...

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.