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

Discussion in 'PC Hardware, Software and Displays' started by zsouthboy, Oct 7, 2003.

  1. zsouthboy

    Regular

    Joined:
    Aug 1, 2003
    Messages:
    563
    Likes Received:
    9
    Location:
    Derry, NH
    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)

    ???
     
  2. zsouthboy

    Regular

    Joined:
    Aug 1, 2003
    Messages:
    563
    Likes Received:
    9
    Location:
    Derry, NH
    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.
     
  3. RussSchultz

    RussSchultz Professional Malcontent
    Veteran

    Joined:
    Feb 6, 2002
    Messages:
    2,855
    Likes Received:
    55
    Location:
    HTTP 404
    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.
     
  4. zsouthboy

    Regular

    Joined:
    Aug 1, 2003
    Messages:
    563
    Likes Received:
    9
    Location:
    Derry, NH
    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.
     
  5. zsouthboy

    Regular

    Joined:
    Aug 1, 2003
    Messages:
    563
    Likes Received:
    9
    Location:
    Derry, NH
    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.
     
  6. zsouthboy

    Regular

    Joined:
    Aug 1, 2003
    Messages:
    563
    Likes Received:
    9
    Location:
    Derry, NH
    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.
     
Loading...

Share This Page

  • About Us

    Beyond3D has been around for over a decade and prides itself on being the best place on the web for in-depth, technically-driven discussion and analysis of 3D graphics hardware. If you love pixels and transistors, you've come to the right place!

    Beyond3D is proudly published by GPU Tools Ltd.
Loading...