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. File handling

File handling

Scheduled Pinned Locked Moved C / C++ / MFC
c++comhelpquestion
7 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.
  • S Offline
    S Offline
    Sameer Maggon
    wrote on last edited by
    #1

    Hi, How can i use file handling in ATL ActiveX I tried _open and other functions but it says unresolved symbol to _main Please help Sameer

    J M 3 Replies Last reply
    0
    • S Sameer Maggon

      Hi, How can i use file handling in ATL ActiveX I tried _open and other functions but it says unresolved symbol to _main Please help Sameer

      J Offline
      J Offline
      Joaquin M Lopez Munoz
      wrote on last edited by
      #2

      I guess you're not linking the C run-time library. Try with raw Win32 functions CreateFIle, ReadFile, etc (or change your settings to add the C run-time.) Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

      S 1 Reply Last reply
      0
      • M Matt Gullett

        If you're familiar with STL, iostreams will do the job well.

        J Offline
        J Offline
        Joaquin M Lopez Munoz
        wrote on last edited by
        #3

        But iostreams use the CRT, so he'll face the same problem. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

        M 1 Reply Last reply
        0
        • S Sameer Maggon

          Hi, How can i use file handling in ATL ActiveX I tried _open and other functions but it says unresolved symbol to _main Please help Sameer

          M Offline
          M Offline
          Matt Gullett
          wrote on last edited by
          #4

          _open uses the CRT so you need to remove the ATL_MIN_CRT flag.

          1 Reply Last reply
          0
          • S Sameer Maggon

            Hi, How can i use file handling in ATL ActiveX I tried _open and other functions but it says unresolved symbol to _main Please help Sameer

            M Offline
            M Offline
            Matt Gullett
            wrote on last edited by
            #5

            If you're familiar with STL, iostreams will do the job well.

            J 1 Reply Last reply
            0
            • J Joaquin M Lopez Munoz

              But iostreams use the CRT, so he'll face the same problem. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

              M Offline
              M Offline
              Matt Gullett
              wrote on last edited by
              #6

              Your're right. He was trying to use _open/_XXX functions so I suggested the CRT stuff, but then I though I'd suggest stl. Should have included that CRT was needed. Thanks.

              1 Reply Last reply
              0
              • J Joaquin M Lopez Munoz

                I guess you're not linking the C run-time library. Try with raw Win32 functions CreateFIle, ReadFile, etc (or change your settings to add the C run-time.) Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

                S Offline
                S Offline
                Sameer Maggon
                wrote on last edited by
                #7

                Joaquín M López Muñoz wrote: I guess you're not linking the C run-time library How do i Link with C run-time Library

                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