Please or Register to create posts and topics.

C++ Coding

Page 1 of 2Next

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. >.>

Friendship is like peeing on yourself: everyone can see it, but only you get the warm feeling that it brings.

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 :(

http://interitus.deviantart.com

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.. :(

Friendship is like peeing on yourself: everyone can see it, but only you get the warm feeling that it brings.

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.

"Games are made out of smaller games ? turtles all the way down, until you hit the game that is so trivial and stupid it isn?t deserving of the name." --Raph Koster

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 usually demorec the blind ride of every map i try, if you want it send me a private message.
(I'll stop recording if i die.)

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

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 :)

youme 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!

"Games are made out of smaller games ? turtles all the way down, until you hit the game that is so trivial and stupid it isn?t deserving of the name." --Raph Koster
Hober 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.

Image
Ald?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 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. :(

Friendship is like peeing on yourself: everyone can see it, but only you get the warm feeling that it brings.
Page 1 of 2Next