Click to See Complete Forum and Search --> : Strings Advice
SteveCRM
Dec 19th, 2001, 09:07 PM
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! :)
SteveCRM
Dec 20th, 2001, 09:51 PM
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 :)
CornedBee
Dec 22nd, 2001, 02:19 PM
You can use VirtualAlloc or file mappings (if you understand it - I don't :( )
MoMad
Dec 27th, 2001, 09:40 PM
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
CornedBee
Dec 28th, 2001, 06:52 AM
Or look in MSDN for CreateFileMapping()
parksie
Dec 28th, 2001, 07:50 AM
I think there's a standard function mmap. (Well, it's standard on Unix machines ;))
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.