Click here to Skip to main content
15,880,725 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Linker Error Pin
john563220-May-10 3:09
john563220-May-10 3:09 
QuestionRe: Linker Error Pin
Chris Meech20-May-10 3:12
Chris Meech20-May-10 3:12 
AnswerRe: Linker Error Pin
john563220-May-10 3:14
john563220-May-10 3:14 
AnswerRe: Linker Error Pin
Aescleal20-May-10 3:26
Aescleal20-May-10 3:26 
QuestionRe: Linker Error Pin
Chris Meech20-May-10 3:31
Chris Meech20-May-10 3:31 
AnswerRe: Linker Error Pin
Aescleal20-May-10 3:19
Aescleal20-May-10 3:19 
GeneralRe: Linker Error Pin
john563220-May-10 3:41
john563220-May-10 3:41 
QuestionNot getting Excel::_ApplicationPtr from WindowsPtr. Pin
KTTransfer20-May-10 2:08
KTTransfer20-May-10 2:08 
Hi,

I am working on Excel Automation.

Implemented the logic to retrieve all the running Excel instances, now I am getting IDispatch pointer. Assigning this IDispatch Pointer to Excel object.

Following is the code:

IDispatch* p=NULL;
HRESULT hr = AccessibleObjectFromWindow(hwnd, OBJID_WINDOW, __uuidof(IDispatch), (void**)&p);
if(hr == S_OK)
{
try
{
Excel::WindowsPtr pWindow = NULL;
HRESULT hr = p->QueryInterface(__uuidof(IDispatch),(void**)&pWindow);
Excel::_ApplicationPtr xl;
xl = pWindow->Application;

But its throwing exception at above line. The com error is: m_hresult is "Member not found".

I googled but there is no clarity in solution.

If any clue, please let me know.

Thanks in Advance.

Regards,
KTTransfer.
QuestionTough one: modify screen contents on the fly Pin
y.a.k20-May-10 0:50
y.a.k20-May-10 0:50 
AnswerRe: Tough one: modify screen contents on the fly Pin
CPallini20-May-10 1:47
mveCPallini20-May-10 1:47 
QuestionCStatic Background color Pin
Anu_Bala19-May-10 23:34
Anu_Bala19-May-10 23:34 
AnswerRe: CStatic Background color [modified] Pin
Hristo-Bojilov20-May-10 0:37
Hristo-Bojilov20-May-10 0:37 
GeneralRe: CStatic Background color Pin
Anu_Bala20-May-10 1:29
Anu_Bala20-May-10 1:29 
QuestionOpen Control panel Using VC++ Pin
Sabid M19-May-10 21:17
Sabid M19-May-10 21:17 
AnswerRe: Open Control panel Using VC++ Pin
Hristo-Bojilov19-May-10 21:41
Hristo-Bojilov19-May-10 21:41 
GeneralRe: Open Control panel Using VC++ Pin
Sabid M19-May-10 22:40
Sabid M19-May-10 22:40 
QuestionRetrive System Serial Number Pin
kushMuchaal19-May-10 20:52
kushMuchaal19-May-10 20:52 
AnswerRe: Retrive System Serial Number Pin
CPallini19-May-10 21:00
mveCPallini19-May-10 21:00 
GeneralRe: Retrive System Serial Number Pin
kushMuchaal19-May-10 22:08
kushMuchaal19-May-10 22:08 
GeneralRe: Retrive System Serial Number Pin
kushMuchaal19-May-10 22:11
kushMuchaal19-May-10 22:11 
GeneralRe: Retrive System Serial Number Pin
Richard MacCutchan20-May-10 2:21
mveRichard MacCutchan20-May-10 2:21 
QuestionButton Size Pin
AbhiHcl19-May-10 19:27
AbhiHcl19-May-10 19:27 
AnswerRe: Button Size Pin
Stephen Hewitt19-May-10 20:03
Stephen Hewitt19-May-10 20:03 
GeneralRe: Button Size Pin
AbhiHcl19-May-10 21:35
AbhiHcl19-May-10 21:35 
AnswerRe: Button Size Pin
Aescleal19-May-10 22:57
Aescleal19-May-10 22:57 

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.