Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Jul 27, 2011 8:58:17 GMT
Im sure it's a google search question but I can't find it. I want to store info in a c++ code for basically ever which is basically like cookies I guess Anyone know how to do this?
|
|
xcessive
Epic Poster
.[M:5000]
Posts: 526
|
Post by xcessive on Jul 27, 2011 9:08:38 GMT
Thats not like a cookie at all.
Do you mean embedding binary data into the executable for example? In Assembly you could just use incbin. I think you could probably convert what ever you want to include as an object file and embed that during compilation. I doubt you could modify it once embedded though.
If its just static data declare it in a header file as an array or list or some other data structure.
|
|
prads
Elite Poster
[M:0]
It's a shame that PI isn't an integer :(
Posts: 361
|
Post by prads on Jul 27, 2011 10:02:14 GMT
Store info in C++ code? I have no idea what you are talking about. lol
|
|
Nick
VIP
v5 Beta Tester[M:5000]
Philadelphia Eagles: 8-8
Posts: 2,239
|
Post by Nick on Jul 27, 2011 16:43:15 GMT
A variable? Hahahaha!
|
|
Jordan
Elite Poster
[M:5000]
Posts: 286
|
Post by Jordan on Jul 27, 2011 22:57:04 GMT
Im sure it's a google search question but I can't find it. I want to store info in a c++ code for basically ever which is basically like cookies I guess Anyone know how to do this? I don't understand the question.
|
|
Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Jul 28, 2011 0:41:35 GMT
Don't worry, worked it out.
|
|