Any way to extend CStrings past 30,000 char limit?

zsouthboy

Regular
I figured out the 30,000 on my own, and it seems there is no documentation that says anything about this. I'd like to be able to store around 50,00 at the very least, with out doing some weird segmentation stuff.

Using VC++ 6.0.

(the program in question is 1337 sp34k, it's on my website, in sig)

???
 
well the site seems to be down at the moment. shoot.

1337 sp34k takes ordinary english and translates it into leet hacker speak, as you could guess. i thought of the idea sunday night, and wrote it in 2 hours, easily... when the website is back up, i do encourage you to try it out, for a laugh. stick in shakespeare, or something. its quite funny. version 1.2 which i was just trying to upload does some new neat things, like changing x's into ><'s, etc... i'll get that up as soon as possible.
 
Its probably 32768 (using a short for the index).

You shouldn't have any problems at all declaring multi-megabyte char arrays and doing all the string manipulation yourself. Or extending CString and overloading the pieces you want.
 
RussSchultz said:
Its probably 32768 (using a short for the index).

You shouldn't have any problems at all declaring multi-megabyte char arrays and doing all the string manipulation yourself. Or extending CString and overloading the pieces you want.

Nope. It's exactly 30,000 characters. I open the program, hold down the "a" button for a while, select all, copy, and ctrl+v until it stops pasting anymore. Select all again, paste into Word, and do a word count. 30,000 characters, exactly.

As for that stuff, yeah, I know I could do that, I was just wondering if there was an easy way to do it. Guess not. Ah well.
 
And for fun: here is my last post, in 1337 sp34k:

|\|()p3. ][¯|¯'5 3></-\(¯|¯|_y 30, |_()|_Z,000 (|-|/-\r/-\(¯|¯3r5. ][ ()p3|\| ¯|¯3|-| pr()gr/-\/\/\, |_()|_Z, |-|()|_|) |)()\/\/|\| ¯|¯3|-| "/-\" 8|_|¯|¯¯|¯()|\| f()r /-\ \/\/|-|][|_3, |_()|_Z, 53|_3(¯|¯ /-\|_|_, |_()|_Z, (()py, |_()|_Z, /-\|\||) (¯|¯r|_+\/ |_||\|¯|¯][|_ ][¯|¯ 5¯|¯()p5 p/-\5¯|¯][|\|g /-\|\|y/\/\()r3. 53|_3(¯|¯ /-\|_|_ /-\g/-\][|\|, |_()|_Z, p/-\5¯|¯3 ][|\|¯|¯() \/\/()r|), |_()|_Z, /-\|\||) |)() /-\ \/\/()r|) (()|_||\|¯|¯. 30, |_()|_Z,000 (|-|/-\r/-\(¯|¯3r5, |_()|_Z, 3></-\(¯|¯|_y.

/-\5 f()r ¯|¯|-|/-\¯|¯ 5¯|¯|_|ff, |_()|_Z, y3/-\|-|, |_()|_Z, ][ |<|\|()\/\/ ][ (()|_||_|) |)() ¯|¯|-|/-\¯|¯, |_()|_Z, ][ \/\/|_|z j|_|5¯|¯ \/\/()|\||)3r][|\|g ][f ¯|¯3|-|r3 \/\/|_|z /-\|\| 3/-\5y \/\//-\y ¯|¯() |)() ][¯|¯. G|_|355 |\|()¯|¯. /-\|-| \/\/3|_|_.

and once again, with the option "hacker symbols" off:

Nop3. I7'5 3x4c71y 30, LOLZ,000 ch4r4c73r5. I op3n teh progr4m, LOLZ, ho1d down teh "4" bu77on for 4 whi13, LOLZ, 5313c7 411, LOLZ, copy, LOLZ, 4nd c7r1+v un7i1 i7 57op5 p457ing 4nymor3. 5313c7 411 4g4in, LOLZ, p4573 in7o Word, LOLZ, 4nd do 4 word coun7. 30, LOLZ,000 ch4r4c73r5, LOLZ, 3x4c71y.

45 for 7h47 57uff, LOLZ, y34h, LOLZ, I know I cou1d do 7h47, LOLZ, I wuz ju57 wond3ring if tehr3 wuz 4n 345y w4y 7o do i7. Gu355 no7. 4h w311.

see? isn't that fun? :D

EDIT: and it would be much better if i had used some words in the knowledge base --- that's when it gets funny.
 
Check out 1337 sp34k 1.2 on my website. Link in sig.

:)

And there seems to be no way around the 30,000 char limit of a CString itself.
 
Back
Top