C++ Coding
Quote from sssummer on March 16, 2008, 12:53 amDoes anyone here use C++ or other programs to code? I just started.. it's pretty confusing. Just curious if I was the only one. >.>
Does anyone here use C++ or other programs to code? I just started.. it's pretty confusing. Just curious if I was the only one. >.>
Quote from Interitus on March 16, 2008, 1:34 amI've tried the tutorial books up till the chapter on pointers, gotten confused as hell, and given up. I would like to learn c++ tho. I dont think it'll ever happen tho
I've tried the tutorial books up till the chapter on pointers, gotten confused as hell, and given up. I would like to learn c++ tho. I dont think it'll ever happen tho
Quote from sssummer on March 16, 2008, 2:22 amLol, I finally made a basic program with it.. however I don't know how the hell to make a setup file so other people can use it. If you just send the exe it doesn't work..
Lol, I finally made a basic program with it.. however I don't know how the hell to make a setup file so other people can use it. If you just send the exe it doesn't work..
Quote from Hober on March 16, 2008, 2:48 amIdeally, you shouldn't need a setup file to make a simple program run. Most setup programs are just unpacking all the files in a program and putting them in the right place. If it's just a simple program, and just one file, shouldn't need that.
As for it not working on another computer, is it the same type of computer in terms of operating system and architecture? When you make an .exe out of a C++ file, you compile it specifically for the computer it's being run on. This is why other languages like Java have gained the foothold they have for their cross-platform compatibility; they aren't compiled per platform.
Ideally, you shouldn't need a setup file to make a simple program run. Most setup programs are just unpacking all the files in a program and putting them in the right place. If it's just a simple program, and just one file, shouldn't need that.
As for it not working on another computer, is it the same type of computer in terms of operating system and architecture? When you make an .exe out of a C++ file, you compile it specifically for the computer it's being run on. This is why other languages like Java have gained the foothold they have for their cross-platform compatibility; they aren't compiled per platform.
Quote from infernet89 on March 16, 2008, 4:58 amWhen you make a .exe for windows, every pc whith windows can run it, usually.
Probably you forgotten the
system("pause");
at the end of the program, so the window close more faster than you can read.
When you make a .exe for windows, every pc whith windows can run it, usually.
Probably you forgotten the
system("pause");
at the end of the program, so the window close more faster than you can read.
(I'll stop recording if i die.)
Quote from Aldéz on March 16, 2008, 8:20 amWhich program are you compiling with? In Visual Studio, you need to compile the program as a "Release" to make it work on other computers. This is how I do it in the Professional edition, don't know if it works in the Express (free) version:
In the menu click Build > Configuration Manager
Change active solution configuration to "Release".
Then Build > Build Solution
Which program are you compiling with? In Visual Studio, you need to compile the program as a "Release" to make it work on other computers. This is how I do it in the Professional edition, don't know if it works in the Express (free) version:
In the menu click Build > Configuration Manager
Change active solution configuration to "Release".
Then Build > Build Solution
Quote from youme on March 16, 2008, 9:06 amI've done a little bit of blitz basic (the language the very very original worms was written in) but that was many years ago.
Then when I started doing flash animations I started making games in actionscript 2.0 a horrible jumble of other languages.
I took one look at the C variant languages and ran like a screaming baby. Then when dad showed my the big book of "all the features of C you must not use for saftey equipment" and I ran even further. I'll stick to mapping for now
I've done a little bit of blitz basic (the language the very very original worms was written in) but that was many years ago.
Then when I started doing flash animations I started making games in actionscript 2.0 a horrible jumble of other languages.
I took one look at the C variant languages and ran like a screaming baby. Then when dad showed my the big book of "all the features of C you must not use for saftey equipment" and I ran even further. I'll stick to mapping for now
Quote from Hober on March 16, 2008, 5:44 pmyoume wrote:Then when dad showed my the big book of "all the features of C you must not use for saftey equipment" and I ran even further.System: So, uh, where do you want to put that into memory?
Java: How about operating system memory?
System: Yeeeeah... about that... Not happening. How about you, C++?
C++: Hmm. In that case, how about operating system memory?
System: Sure. Which part?
C++: I dunno, whichever part is closest to the inside of the cylinder.
System: Oh, the boot sector, where the partition table is stored?
C++: Sounds good.
System: Sweet! This is gonna be awesome!
System: So, uh, where do you want to put that into memory?
Java: How about operating system memory?
System: Yeeeeah... about that... Not happening. How about you, C++?
C++: Hmm. In that case, how about operating system memory?
System: Sure. Which part?
C++: I dunno, whichever part is closest to the inside of the cylinder.
System: Oh, the boot sector, where the partition table is stored?
C++: Sounds good.
System: Sweet! This is gonna be awesome!
Quote from bizob on March 16, 2008, 9:43 pmHober wrote:System: So, uh, where do you want to put that into memory?
Java: How about operating system memory?
System: Yeeeeah... about that... Not happening. How about you, C++?
C++: Hmm. In that case, how about operating system memory?
System: Sure. Which part?
C++: I dunno, whichever part is closest to the inside of the cylinder.
System: Oh, the boot sector, where the partition table is stored?
C++: Sounds good.
System: Sweet! This is gonna be awesome!ROFL!!!
I've done some java stuff as well as a good bit of VB. I liked java for its portability and is a pretty powerful language, but VB is super easy to learn and IDEs make putting together apps fast. I've seen some C++ code and it didn't seem that intimidating.
Java: How about operating system memory?
System: Yeeeeah... about that... Not happening. How about you, C++?
C++: Hmm. In that case, how about operating system memory?
System: Sure. Which part?
C++: I dunno, whichever part is closest to the inside of the cylinder.
System: Oh, the boot sector, where the partition table is stored?
C++: Sounds good.
System: Sweet! This is gonna be awesome!
ROFL!!!
I've done some java stuff as well as a good bit of VB. I liked java for its portability and is a pretty powerful language, but VB is super easy to learn and IDEs make putting together apps fast. I've seen some C++ code and it didn't seem that intimidating.
Quote from sssummer on March 18, 2008, 7:46 pmAld?z wrote:Which program are you compiling with? In Visual Studio, you need to compile the program as a "Release" to make it work on other computers. This is how I do it in the Professional edition, don't know if it works in the Express (free) version:In the menu click Build > Configuration Manager
Change active solution configuration to "Release".
Then Build > Build SolutionI did this but does it still doesn't work, I sent it to my friend to test it but he got this error.
- Code: Select all
This Application has failed to start because the application confriguration is incorrect
halp pulez.
In the menu click Build > Configuration Manager
Change active solution configuration to "Release".
Then Build > Build Solution
I did this but does it still doesn't work, I sent it to my friend to test it but he got this error.
- Code: Select all
This Application has failed to start because the application confriguration is incorrect
halp pulez.