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. COM
  4. 0x80020009 access rights opentext

0x80020009 access rights opentext

Scheduled Pinned Locked Moved COM
helpsecurity
5 Posts 2 Posters 14 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.
  • F Offline
    F Offline
    ForNow
    wrote on last edited by
    #1

    Seems like the above error has to do with access rights I am running windows 7 I right click on the file and under the security I see everything checked off but the special permissions don't know if that would be the problem

    L 1 Reply Last reply
    0
    • F ForNow

      Seems like the above error has to do with access rights I am running windows 7 I right click on the file and under the security I see everything checked off but the special permissions don't know if that would be the problem

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

      Without information on the context in which you receive the error it is impossible to speculate.

      Use the best guess

      F 2 Replies Last reply
      0
      • L Lost User

        Without information on the context in which you receive the error it is impossible to speculate.

        Use the best guess

        F Offline
        F Offline
        ForNow
        wrote on last edited by
        #3

        Here is the code

        COleVariant myvar;
        myvar.vt = VT_I4;
        myvar.lVal = NULL;
        COleVariant Orgin((short)3),
        StartRow((short)1),
        DataType((short)1),
        ConsecutiveDelimter((short) FALSE, VT_BOOL),
        TAB((short) FALSE, VT_BOOL),
        Semicolon((short) FALSE, VT_BOOL),
        Comma((short) FALSE, VT_BOOL),
        Space((short) FALSE, VT_BOOL),
        Other((short) FALSE, VT_BOOL),
        OtherChar((short) FALSE, VT_BOOL),
        FieldInfo((short) FALSE, VT_BOOL),
        TextVisualLayout((short) FALSE, VT_BOOL),
        DecimalSeprator((short) FALSE, VT_BOOL),
        ThousandSeprator((short) FALSE, VT_BOOL),
        TrailingMinusNumbers((short) FALSE, VT_BOOL),
        Local((short) FALSE, VT_BOOL);

        books.OpenText(_T("C:\\FILE\\EXCEL.TXT"),
        Orgin,
        StartRow,
        DataType,
        myvar.lVal,
        ConsecutiveDelimter,
        TAB,
        Semicolon,
        Comma,
        Space,
        Other,
        OtherChar,
        FieldInfo,
        TextVisualLayout,
        DecimalSeprator,
        ThousandSeprator,
        TrailingMinusNumbers,
        Local);

        1 Reply Last reply
        0
        • L Lost User

          Without information on the context in which you receive the error it is impossible to speculate.

          Use the best guess

          F Offline
          F Offline
          ForNow
          wrote on last edited by
          #4

          Hi I lookend filename in memory and every letter is seprated by a NULL X'00' so C: is 43005C I am out of my debugging session but I think 5C is : Thanks

          L 1 Reply Last reply
          0
          • F ForNow

            Hi I lookend filename in memory and every letter is seprated by a NULL X'00' so C: is 43005C I am out of my debugging session but I think 5C is : Thanks

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

            That just means it is a Unicode string. I have explained to you a number of times about your mishandling of Unicode and ASCII strings, and I suspect this is just another example.

            Use the best guess

            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