Click here to Skip to main content
15,905,322 members
Home / Discussions / COM
   

COM

 
GeneralRe: COM using pure c++ Pin
Derek Tortonian5-Aug-14 11:54
Derek Tortonian5-Aug-14 11:54 
QuestionCOMException, error code :80040154 Pin
orélle15-Jun-14 21:58
orélle15-Jun-14 21:58 
AnswerRe: COMException, error code :80040154 Pin
Richard MacCutchan15-Jun-14 23:42
mveRichard MacCutchan15-Jun-14 23:42 
GeneralRe: COMException, error code :80040154 Pin
orélle16-Jun-14 23:15
orélle16-Jun-14 23:15 
GeneralRe: COMException, error code :80040154 Pin
Richard MacCutchan16-Jun-14 23:21
mveRichard MacCutchan16-Jun-14 23:21 
GeneralRe: COMException, error code :80040154 Pin
orélle16-Jun-14 23:38
orélle16-Jun-14 23:38 
GeneralRe: COMException, error code :80040154 Pin
Richard MacCutchan17-Jun-14 0:16
mveRichard MacCutchan17-Jun-14 0:16 
GeneralRe: COMException, error code :80040154 Pin
orélle17-Jun-14 3:12
orélle17-Jun-14 3:12 
AnswerRe: COMException, error code :80040154 Pin
Anup Kasat9-Feb-15 2:12
Anup Kasat9-Feb-15 2:12 
QuestionIFileSaveDialog / Filename using C++ Pin
jung-kreidler5-Jun-14 20:03
jung-kreidler5-Jun-14 20:03 
SuggestionRe: IFileSaveDialog / Filename using C++ Pin
Richard MacCutchan5-Jun-14 22:23
mveRichard MacCutchan5-Jun-14 22:23 
GeneralRe: IFileSaveDialog / Filename using C++ Pin
jung-kreidler23-Jun-14 21:17
jung-kreidler23-Jun-14 21:17 
QuestionHow to create a simple COM component in C++ Pin
CoRger5-Jun-14 1:07
CoRger5-Jun-14 1:07 
AnswerRe: How to create a simple COM component in C++ Pin
Richard MacCutchan5-Jun-14 3:04
mveRichard MacCutchan5-Jun-14 3:04 
AnswerRe: How to create a simple COM component in C++ Pin
Member 989964421-Jun-14 20:19
Member 989964421-Jun-14 20:19 
QuestionSetting up the COM+ Identity using C# Code Pin
Juan Topo19-May-14 8:50
Juan Topo19-May-14 8:50 
QuestionHow do I set variable in ShockwaveFlashObjects C# Pin
Member 106494598-Mar-14 5:04
Member 106494598-Mar-14 5:04 
QuestionVB6 to .Net Interop issue Pin
Sampath Sridhar1-Dec-13 22:10
Sampath Sridhar1-Dec-13 22:10 
QuestionCallback From .NET Com Class to Delphi Pin
P1kfr1k9-Oct-13 0:05
P1kfr1k9-Oct-13 0:05 
SuggestionRe: Callback From .NET Com Class to Delphi Pin
Richard MacCutchan9-Oct-13 0:49
mveRichard MacCutchan9-Oct-13 0:49 
QuestionThe group or resource is not in the correct state to perform the requested operation Pin
Hari-Adarapu19-Sep-13 11:49
Hari-Adarapu19-Sep-13 11:49 
QuestionWorkBooks::Opentext help Pin
ForNow13-Sep-13 10:37
ForNow13-Sep-13 10:37 
Hi
I am re-posting this as due to continued efforts I have not come up a solution to the bug

C++
COleVariant
covTrue((short)TRUE),
covFalse((short)FALSE),
covOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);
 CApplication app;
 CWorkbooks books;
 CWorkbook book;



    app.CreateDispatch(TEXT("Excel.Application"));
    books = app.get_Workbooks();
    COleVariant myvar;
    myvar.vt = VT_I4;
    myvar.lVal = NULL;
    COleVariant Orgin((short)2),
                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(L"C:\\PATH1\\PATH2\\PATH2\\FILE.TXT,
                                            Orgin,
                       StartRow,
                       DataType,
                       myvar.lVal,
                       ConsecutiveDelimter,
                       TAB,
                       Semicolon,
                       Comma,
                       Space,
                       Other,
                       OtherChar,
                       FieldInfo,
                       TextVisualLayout,
                       DecimalSeprator,
                       ThousandSeprator,
                       TrailingMinusNumbers,
                       Local);


After executing
C++
SCODE sc = m_lpDispatch->Invoke(dwDispID, IID_NULL, 0, wFlags,
       &dispparams, pvarResult, &excepInfo, &nArgErr);


sc = 80020009 and execpInfo.scode = 0X800A03EC
AnswerRe: WorkBooks::Opentext help Pin
ForNow14-Sep-13 16:12
ForNow14-Sep-13 16:12 
QuestionRe: WorkBooks::Opentext help Pin
Richard MacCutchan14-Sep-13 21:52
mveRichard MacCutchan14-Sep-13 21:52 
AnswerRe: WorkBooks::Opentext help Pin
ForNow15-Sep-13 5:13
ForNow15-Sep-13 5:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.