-
Strings Advice
I'm working on a project that needs to open up files as binary (hence my thread a few days ago). I want this to be able to open anything from something like 2K to 50 megs+. But a character (or integer) array would either be too bulky or too small most of the time. Should I use the string class? Does anyone have a quick tutorial on them or can show me some functions to use with them? Thanks everyone! :)
-
I know 50 megs is pushing it ;)
I'll have to open up the file in small increments...but thanks I'll look into that rope class :)
-
You can use VirtualAlloc or file mappings (if you understand it - I don't :( )
-
Yes, FileMapping is the sollution to many things, have you ever used Adobe Photoshop on a 32MB RAM win95 machine?? Have you ever wondered why it isnt so bad when you are working with 95+MB graphics files with multiple undo/redo's etc?? And the effects?? They use that teknique which i too dont know!
Filemapping uses files to hold memory than memory itself... I mean how the hell is it possible to put a 60MB graphic into the clipboard when you only have 32MB - OS usage - other appz usage <==> less than 10MB of memory?? I have seen some of this stuff and its very promising, but Im not sure how hard or easy it is to implement because I really didnt have the time nor place to look into it.
Do a google or a yahoo search for the query:
http://www.google.com/
http://www.yahoo.com/
http://www.directhit.com/
-MoMad
-
Or look in MSDN for CreateFileMapping()
-
I think there's a standard function mmap. (Well, it's standard on Unix machines ;))