Click here to Skip to main content
15,442,578 members
Home / Discussions / COM
   

COM

 
AnswerRe: How to create a simple COM component in C++ Pin
Member 989964421-Jun-14 20:19
MemberMember 989964421-Jun-14 20:19 
QuestionSetting up the COM+ Identity using C# Code Pin
Juan Topo19-May-14 8:50
MemberJuan Topo19-May-14 8:50 
QuestionHow do I set variable in ShockwaveFlashObjects C# Pin
Member 106494598-Mar-14 5:04
MemberMember 106494598-Mar-14 5:04 
QuestionVB6 to .Net Interop issue Pin
Sampath Sridhar1-Dec-13 22:10
MemberSampath Sridhar1-Dec-13 22:10 
QuestionCallback From .NET Com Class to Delphi Pin
P1kfr1k9-Oct-13 0:05
MemberP1kfr1k9-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
MemberHari-Adarapu19-Sep-13 11:49 
QuestionWorkBooks::Opentext help Pin
ForNow13-Sep-13 10:37
MemberForNow13-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
MemberForNow14-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
MemberForNow15-Sep-13 5:13 
GeneralRe: WorkBooks::Opentext help Pin
Richard MacCutchan15-Sep-13 5:27
mveRichard MacCutchan15-Sep-13 5:27 
QuestionWin8: Credential provider. CPUS_ONLOCK_WORKSTATION scenario Pin
_clown_9-Sep-13 23:27
Member_clown_9-Sep-13 23:27 
QuestionATL and MFC string conversion macros conversion macros Pin
ForNow13-Aug-13 10:38
MemberForNow13-Aug-13 10:38 
AnswerRe: ATL and MFC string conversion macros conversion macros Pin
Richard MacCutchan13-Aug-13 20:50
mveRichard MacCutchan13-Aug-13 20:50 
Question0x80020009 access rights opentext Pin
ForNow9-Aug-13 10:22
MemberForNow9-Aug-13 10:22 
GeneralRe: 0x80020009 access rights opentext Pin
Richard MacCutchan9-Aug-13 23:34
mveRichard MacCutchan9-Aug-13 23:34 
GeneralRe: 0x80020009 access rights opentext Pin
ForNow12-Aug-13 10:39
MemberForNow12-Aug-13 10:39 
Generalits a text Formatting problem Pin
ForNow13-Aug-13 10:14
MemberForNow13-Aug-13 10:14 
GeneralRe: its a text Formatting problem Pin
Richard MacCutchan13-Aug-13 20:28
mveRichard MacCutchan13-Aug-13 20:28 
Questionin excel, how to get the char after the cursor when in edit mode Pin
BCN-16328-Jul-13 20:20
MemberBCN-16328-Jul-13 20:20 
QuestionWorkBooks::OpenText Pin
ForNow25-Jul-13 16:34
MemberForNow25-Jul-13 16:34 
SuggestionRe: WorkBooks::OpenText Pin
Richard MacCutchan25-Jul-13 21:28
mveRichard MacCutchan25-Jul-13 21:28 
QuestionCreating Automation Project using Visual Studio 2010 and Excel 2010 Pin
ForNow25-Jul-13 13:08
MemberForNow25-Jul-13 13:08 
AnswerRe: Creating Automation Project using Visual Studio 2010 and Excel 2010 Pin
Garth J Lancaster25-Jul-13 13:50
professionalGarth J Lancaster25-Jul-13 13:50 

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.