Visual Studio C++ Express

JimLewandowski

New member
What an unbelievably cryptic piece of software.

The things I want to are obvious:

build a console application and not TEST it but just RUN it. You know WITH parameters from the command line. I've googled and others have asked how to do this. Evidently it's difficult to do.

For example, if I navigate to where the .exe has been stored, double-clicking yields a DOS message that it is NOT an executable.

Anyone want to tutor a newbie on doing basic things with VC++.

Compile with NO debug.
Compile WITH debug.
Execute console application from some command line somewhere.

Call me crazy, but if I wrote software for developing apps and CONSOLE was selected, I'd probably want to give the user a command window to test or run his program. I mean console applications usually have parameters to be entered, don't they?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 7
CPU
AMD Phenom II X2 (dual-core)
Motherboard
GA-MA785GM-US2H
Memory
4G
Graphics Card(s)
integrated ATI HD 4200
Sound Card
integrated
Monitor(s) Displays
Samsung 24"
Screen Resolution
1920x1080
Hard Drives
1 SSD - Samsung 840 - 500 GB - OS and DATA partitions
1 SSD - Intel 320 - 120 GB (used for backups) - Misc/BACKUP
1 SATA HD - WD, 500 GB - BACKUP
PSU
Ultra X4 500W
Case
Ultra X-blaster
Keyboard
Microsoft Digital Media Pro
Mouse
Logitech WIRED!
Internet Speed
15 Mbps FIOS

My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
I think there is a solution, but I am not sure if it would work. Most probably you need to clean build your project. Go to build > clean solution, Then try recompiling and running it. Do let me know what happens.
 

My Computer

Computer Manufacturer/Model Number
Dell XPS 15 L502X
OS
Windows 7 Home Premium 64Bit
CPU
Intel(R) Core(TM) i7-2670QM CPU @ 2.20GHz
Motherboard
Dell
Memory
8 GB
Graphics Card(s)
NVIDIA GT540M
Hard Drives
750GB @ 7200 RPM

My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
Okay...this cannot be that hard. Where the executable for your program is located, hold shift then right click on the folder that contains your executable. Select "Open command window here", type the name of your executable with what ever options and enter.

Almost all console applications require you to open the command line for you to use them, double click on one just runs it with no commands then when it is done the console window closes. It has always worked like that.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
Okay...this cannot be that hard. Where the executable for your program is located, hold shift then right click on the folder that contains your executable. Select "Open command window here", type the name of your executable with what ever options and enter.

Almost all console applications require you to open the command line for you to use them, double click on one just runs it with no commands then when it is done the console window closes. It has always worked like that.

Jeebus am I stupid. I didn't enclose it in quotes. Obviously the parsing then stops at \visual. IOW, it was easier to cut paste then navigate all the way to the destination directory.

C:\Users\Jim\documents\visual studio 2010\Projects\test\Release\test.exe

USER ERROR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I'd still like to know how to compile something so it doesn't have any debug stuff embedded in it.
 
Last edited:

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 7
CPU
AMD Phenom II X2 (dual-core)
Motherboard
GA-MA785GM-US2H
Memory
4G
Graphics Card(s)
integrated ATI HD 4200
Sound Card
integrated
Monitor(s) Displays
Samsung 24"
Screen Resolution
1920x1080
Hard Drives
1 SSD - Samsung 840 - 500 GB - OS and DATA partitions
1 SSD - Intel 320 - 120 GB (used for backups) - Misc/BACKUP
1 SATA HD - WD, 500 GB - BACKUP
PSU
Ultra X4 500W
Case
Ultra X-blaster
Keyboard
Microsoft Digital Media Pro
Mouse
Logitech WIRED!
Internet Speed
15 Mbps FIOS
MilesAhead, thanks for the great forum reference.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 7
CPU
AMD Phenom II X2 (dual-core)
Motherboard
GA-MA785GM-US2H
Memory
4G
Graphics Card(s)
integrated ATI HD 4200
Sound Card
integrated
Monitor(s) Displays
Samsung 24"
Screen Resolution
1920x1080
Hard Drives
1 SSD - Samsung 840 - 500 GB - OS and DATA partitions
1 SSD - Intel 320 - 120 GB (used for backups) - Misc/BACKUP
1 SATA HD - WD, 500 GB - BACKUP
PSU
Ultra X4 500W
Case
Ultra X-blaster
Keyboard
Microsoft Digital Media Pro
Mouse
Logitech WIRED!
Internet Speed
15 Mbps FIOS
MilesAhead, thanks for the great forum reference.

It's a good source from basic to very advanced questions. Only thing is if anything can be done with a container somebody will tell you "use STL" if you're programming in C++, like you never heard of it or something. :) But there's a lot of info there.
 

My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
Okay...this cannot be that hard. Where the executable for your program is located, hold shift then right click on the folder that contains your executable. Select "Open command window here", type the name of your executable with what ever options and enter.

Almost all console applications require you to open the command line for you to use them, double click on one just runs it with no commands then when it is done the console window closes. It has always worked like that.

Jeebus am I stupid. I didn't enclose it in quotes. Obviously the parsing then stops at \visual. IOW, it was easier to cut paste then navigate all the way to the destination directory.

C:\Users\Jim\documents\visual studio 2010\Projects\test\Release\test.exe

USER ERROR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I'd still like to know how to compile something so it doesn't have any debug stuff embedded in it.

I forget where but somewhere along the road in Win9x they decided it would be cool to allow spaces in folder and file names. If a path or param has a space on the command line you have to wrap in double quotes. This:

c:\program file\myprog.exe

will generate "c:\program is not a valid command" blah blah

you have to do

"c:\program files\myprog.exe" with the double quotes.

That's one reason I suggest changing the default directory for the command prompt to the folder in question. Then you can just type:
myprog param1 param2 and hit Enter

if a param is really 2 words or path with a space you still need the double quotes
myprog "param one" "param two"
 

My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
The Codeguru website will NOT send me a confirmation email. I've emailed the webmaster and zero reply.

Anyone know anyone who IS a registered member of Codeguru who can help me out?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 7
CPU
AMD Phenom II X2 (dual-core)
Motherboard
GA-MA785GM-US2H
Memory
4G
Graphics Card(s)
integrated ATI HD 4200
Sound Card
integrated
Monitor(s) Displays
Samsung 24"
Screen Resolution
1920x1080
Hard Drives
1 SSD - Samsung 840 - 500 GB - OS and DATA partitions
1 SSD - Intel 320 - 120 GB (used for backups) - Misc/BACKUP
1 SATA HD - WD, 500 GB - BACKUP
PSU
Ultra X4 500W
Case
Ultra X-blaster
Keyboard
Microsoft Digital Media Pro
Mouse
Logitech WIRED!
Internet Speed
15 Mbps FIOS
Did you check your junk/spam folder?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
The Codeguru website will NOT send me a confirmation email. I've emailed the webmaster and zero reply.

Anyone know anyone who IS a registered member of Codeguru who can help me out?

Not all sites automate the confirmation email. Some do it manually. I would wait 48 hours. Then panic. :)

I've registered with sites where I had to wait 2 or 3 days until the SysOp got around to it. I don't remember the case with this site. It's been awhile since I registered.
 

My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
Back
Top