|
-
Dec 19th, 2001, 10:07 PM
#1
Thread Starter
Frenzied Member
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!
-
Dec 20th, 2001, 10:51 PM
#2
Thread Starter
Frenzied Member
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
-
Dec 22nd, 2001, 03:19 PM
#3
You can use VirtualAlloc or file mappings (if you understand it - I don't )
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Dec 27th, 2001, 10:40 PM
#4
Fanatic Member
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
-
Dec 28th, 2001, 07:52 AM
#5
Or look in MSDN for CreateFileMapping()
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Dec 28th, 2001, 08:50 AM
#6
Monday Morning Lunatic
I think there's a standard function mmap. (Well, it's standard on Unix machines )
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|