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. about accessing PDF file, compile error.

about accessing PDF file, compile error.

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++adobealgorithmsjson
5 Posts 2 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.
  • B Offline
    B Offline
    BCN 163
    wrote on last edited by
    #1

    I'm trying to read the context of a PDF file(such as reading the word following the cursor) and I used class wizard to add some header files (add class form Typelib ---> acrobat Access 3.0 Type Library<3.0>) to my project and include these header files in one .cpp file, but when compile, many compile error occurs. what I know is as follow: each header file imported include such line : " #import "C:\\Program Files\\Adobe\\Acrobat 10.0\\Acrobat\\plug_ins\\Accessibility.api" no_namespace " when I comment out this line and then compile, everything is OK, but I'm not sure is it OK to do so, by the way I'm searching what the *.api file and its function on google and baidu(another search engine) anyone who had read PDF file may help, I really appreciate your help. thanks.

    L 1 Reply Last reply
    0
    • B BCN 163

      I'm trying to read the context of a PDF file(such as reading the word following the cursor) and I used class wizard to add some header files (add class form Typelib ---> acrobat Access 3.0 Type Library<3.0>) to my project and include these header files in one .cpp file, but when compile, many compile error occurs. what I know is as follow: each header file imported include such line : " #import "C:\\Program Files\\Adobe\\Acrobat 10.0\\Acrobat\\plug_ins\\Accessibility.api" no_namespace " when I comment out this line and then compile, everything is OK, but I'm not sure is it OK to do so, by the way I'm searching what the *.api file and its function on google and baidu(another search engine) anyone who had read PDF file may help, I really appreciate your help. thanks.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Did you check the documentation[^]? Also, if you want help then you need to explain exactly what error(s) you see, we cannot guess what happens.

      One of these days I'm going to think of a really clever signature.

      B 1 Reply Last reply
      0
      • L Lost User

        Did you check the documentation[^]? Also, if you want help then you need to explain exactly what error(s) you see, we cannot guess what happens.

        One of these days I'm going to think of a really clever signature.

        B Offline
        B Offline
        BCN 163
        wrote on last edited by
        #3

        thanks for your reply, I have read the document, but I am not sure how to access PDF files. the error is as follow: error C2011: 'IAccessible' : 'struct' type redefinition ... many this kind of error. the headers imported is a wrap of I* interface,for example CAccessible == IAccessible. CAccID == IAccID

        L 1 Reply Last reply
        0
        • B BCN 163

          thanks for your reply, I have read the document, but I am not sure how to access PDF files. the error is as follow: error C2011: 'IAccessible' : 'struct' type redefinition ... many this kind of error. the headers imported is a wrap of I* interface,for example CAccessible == IAccessible. CAccID == IAccID

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          It looks like you have duplicate definitions in one or more of your source files. Check which headers you are including.

          One of these days I'm going to think of a really clever signature.

          B 1 Reply Last reply
          0
          • L Lost User

            It looks like you have duplicate definitions in one or more of your source files. Check which headers you are including.

            One of these days I'm going to think of a really clever signature.

            B Offline
            B Offline
            BCN 163
            wrote on last edited by
            #5

            I know this, but I really didn't include more than one header. I am quite puzzled. thanks all the same.

            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