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 long c++ file

problem with long c++ file

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studiohelpquestion
3 Posts 3 Posters 0 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.
  • D Offline
    D Offline
    dolph_loe
    wrote on last edited by
    #1

    I have some problems with a c++ file containing about 7000 lines. Sometimes, Visual Studio copies some of the last lines of the file, and prints them at the bottom of the file... only problem is that it doesn't show them in the editor.. I have to reopen the file to find and delete the 'new' code.. anyone having the same problem?? I am using Visual Studio .NET 2003.. øivind

    S T 2 Replies Last reply
    0
    • D dolph_loe

      I have some problems with a c++ file containing about 7000 lines. Sometimes, Visual Studio copies some of the last lines of the file, and prints them at the bottom of the file... only problem is that it doesn't show them in the editor.. I have to reopen the file to find and delete the 'new' code.. anyone having the same problem?? I am using Visual Studio .NET 2003.. øivind

      S Offline
      S Offline
      Sawatzky
      wrote on last edited by
      #2

      I think your problem is, that you have a file containing 7000 lines ;-) You should find a way to split it. I often find duplicate code in such code fragment -> make them functions. If it is a Class.cpp it is probably the class is too big, tries to cover too much. Extract Classes from it. HTH Kind regards Sawatzky PS: No I never had that problem ;P

      1 Reply Last reply
      0
      • D dolph_loe

        I have some problems with a c++ file containing about 7000 lines. Sometimes, Visual Studio copies some of the last lines of the file, and prints them at the bottom of the file... only problem is that it doesn't show them in the editor.. I have to reopen the file to find and delete the 'new' code.. anyone having the same problem?? I am using Visual Studio .NET 2003.. øivind

        T Offline
        T Offline
        Todd Smith
        wrote on last edited by
        #3

        I think I've read others complaining about that bug. Try searching the lounge. Todd Smith

        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