0x80020009 access rights opentext
-
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
-
Without information on the context in which you receive the error it is impossible to speculate.
Use the best guess
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); -
Without information on the context in which you receive the error it is impossible to speculate.
Use the best guess
-
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