Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. ??!!!! Problem with scrolling and big files in MFC

??!!!! Problem with scrolling and big files in MFC

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++jsonperformancetutorial
1 Posts 1 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Magnus
    wrote on last edited by
    #1

    I Need help.. I am development a program that you can use to view big log-files, in size about 10MB. I have to use MFC, but I prefer Win32 API. In Win32, I already solved the problem. I use memory-mapped files to store the file in virtual memory, but I want to read directly from the file..?? Now I read the file to a String and then mapping it. Then a use Pointer to show the text in a window and that is my second problem. I get the String in one single line (no return). In Win32, I used to send the String with a SendMessage to the hWnd window. The third problem is with scrolling windows. In Win32 I only create a child window with WS_VSCROLL | WS_HSCROLL and then no problem.......... I get mad about MFC you do not have it under control.... I think that more people have same problem as me. I really need some code-examples how to manage memory-mapping, scrolling and text. Thank you..

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups