robinbloke: (Default)
[personal profile] robinbloke
How much storage space do you think a CString object (a collection of characters, words, etc) in MFC can hold, roughly?

a) 1 k (=1024 characters = 2^10)
b) 10 k
c) 64 k (The usual addressable size of a intel based memory block)
d) 128 k
e) 1 meg (=1024 k)
f) 1 gig (=1024 meg)

First correct guess (one guess each!) gets a prize

Re: Umm...

Date: 2001-11-06 07:34 am (UTC)
From: [identity profile] robinbloke.livejournal.com
looking it up in notes is cheating!

Yep, It's INT_MAX bytes, which is 2147483647 byes, = 2097151 k = 2047 meg = around 2 gig = answer f, closer than the others
Which is handy as I expected it to only be 64k and I needed a huge buffer for storing an INI file

The prize is a drink or a Kendal Mint Cake, your choice

Re: Umm...

Date: 2001-11-06 02:40 pm (UTC)
From: [identity profile] purpleheather.livejournal.com
Oooh - honey, take the mint cake!!

Re: Umm...

Date: 2001-11-07 12:31 am (UTC)
From: [identity profile] robinbloke.livejournal.com
Mint cake it is then, since I guess Robert knows whats good for him ;)

Profile

robinbloke: (Default)
robinbloke

January 2016

S M T W T F S
     12
3456789
10111213141516
17181920212223
24 252627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 20th, 2026 09:45 am
Powered by Dreamwidth Studios