Results 1 to 6 of 6

Thread: Strings Advice

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

    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!

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    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

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  4. #4
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    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
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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
  •  



Click Here to Expand Forum to Full Width