Click here to Skip to main content
15,913,854 members
Home / Discussions / COM
   

COM

 
QuestionIXMLHTTPRequest only seems to work once! [modified] Pin
Henrik Nelson18-Feb-09 1:05
Henrik Nelson18-Feb-09 1:05 
QuestionExcel's 2007 WorkbookBeforeSave Interface cancel problem Pin
nitincop18-Feb-09 0:58
nitincop18-Feb-09 0:58 
QuestionProblem with COleDispatchDriver::CreateDispatch(...). It is failing on x64 platform. Pin
sumd17-Feb-09 23:21
sumd17-Feb-09 23:21 
QuestionError - hr = 0x80040110 Class does not support aggregation (or class object is remote) Pin
pandit8416-Feb-09 17:54
pandit8416-Feb-09 17:54 
AnswerRe: Error - hr = 0x80040110 Class does not support aggregation (or class object is remote) Pin
«_Superman_»16-Feb-09 23:08
professional«_Superman_»16-Feb-09 23:08 
GeneralRe: Error - hr = 0x80040110 Class does not support aggregation (or class object is remote) Pin
pandit8416-Feb-09 23:27
pandit8416-Feb-09 23:27 
AnswerRe: Error - hr = 0x80040110 Class does not support aggregation (or class object is remote) Pin
frx9617-Feb-09 14:13
frx9617-Feb-09 14:13 
QuestionInterfacing with Excel Manager application Pin
Aladin10116-Feb-09 6:35
Aladin10116-Feb-09 6:35 
Hi,

I have a C++ MFC application, where I’m trying to interface with an Excel Manager application from E*TRADE through COM.

My code is:
Excel::_ApplicationPtr XL;
Excel::_WorksheetPtr pSheet;
try
{
::CoInitialize(NULL);
HRESULT hr = XL.GetActiveObject(L"Excel.Application");
pSheet = XL->ActiveSheet;
_bstr_t name = pSheet->GetName();
}
catch(_com_error &error)
{
// error handling code
}


I have the Excel Manager open with an active workbook and an active sheet, but the code above throws an exception, as if no sheet existed.
When I run the code, a new Excel program is shown on the task bar, next to the Excel Manager, but there’s no new EXCEL.EXE process started, so it appears that no new Excel instance is created. However, I cannot access the Excel Manager sheet through the code above. If I create a workbook and sheet in the new Excel program window, the code works correctly and shows the name of the created sheet.

How can I access the Excel Manager workbook and sheets?
QuestionSharing variable between instances of COM object? Pin
Mike the Red16-Feb-09 1:43
Mike the Red16-Feb-09 1:43 
AnswerRe: Sharing variable between instances of COM object? Pin
frx9616-Feb-09 17:44
frx9616-Feb-09 17:44 
GeneralRe: Sharing variable between instances of COM object? Pin
Mike the Red16-Feb-09 23:17
Mike the Red16-Feb-09 23:17 
QuestionAddin a port to firewall's exception list. Pin
ShyamR15-Feb-09 23:58
ShyamR15-Feb-09 23:58 
Questioncalling COM using CreateObject ( late bind ) Pin
vineeshV15-Feb-09 23:22
vineeshV15-Feb-09 23:22 
AnswerRe: calling COM using CreateObject ( late bind ) Pin
Mike the Red16-Feb-09 3:32
Mike the Red16-Feb-09 3:32 
Question[HELP]Problems with Kodak scanner Pin
Palermo4ever15-Feb-09 22:17
Palermo4ever15-Feb-09 22:17 
QuestionHow do I un register and re register dlls in COM+ - need help Pin
Slow Learner14-Feb-09 12:15
Slow Learner14-Feb-09 12:15 
AnswerRe: How do I un register and re register dlls in COM+ - need help Pin
Slow Learner14-Feb-09 12:31
Slow Learner14-Feb-09 12:31 
GeneralRe: How do I un register and re register dlls in COM+ - need help Pin
Mike the Red16-Feb-09 3:52
Mike the Red16-Feb-09 3:52 
Questionparse object array into string.... Pin
vijay.victory11-Feb-09 20:29
vijay.victory11-Feb-09 20:29 
AnswerRe: parse object array into string.... Pin
Mike the Red16-Feb-09 6:26
Mike the Red16-Feb-09 6:26 
AnswerRe: parse object array into string.... Pin
frx9616-Feb-09 18:25
frx9616-Feb-09 18:25 
QuestionNeed help asap on serial port Pin
rj_21_200311-Feb-09 4:08
rj_21_200311-Feb-09 4:08 
AnswerRe: Need help asap on serial port Pin
Roger Stoltz11-Feb-09 22:27
Roger Stoltz11-Feb-09 22:27 
QuestionNeed some help regarding Outlook Addin Pin
wasimsharp10-Feb-09 19:10
wasimsharp10-Feb-09 19:10 
QuestionProblem with COM DLL---- Firing event in thread Pin
chetanjoshi910-Feb-09 18:34
chetanjoshi910-Feb-09 18:34 

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.