Click here to Skip to main content
16,016,759 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Automating Excel Pin
David Crow23-Aug-05 4:53
David Crow23-Aug-05 4:53 
GeneralRe: Automating Excel Pin
Anonymous23-Aug-05 21:08
Anonymous23-Aug-05 21:08 
GeneralRe: Automating Excel Pin
David Crow24-Aug-05 2:51
David Crow24-Aug-05 2:51 
GeneralRe: Automating Excel Pin
Anonymous24-Aug-05 3:07
Anonymous24-Aug-05 3:07 
GeneralRe: Automating Excel Pin
David Crow24-Aug-05 3:19
David Crow24-Aug-05 3:19 
GeneralRe: Automating Excel Pin
Anonymous24-Aug-05 23:01
Anonymous24-Aug-05 23:01 
GeneralRe: Automating Excel Pin
David Crow25-Aug-05 4:31
David Crow25-Aug-05 4:31 
GeneralRe: Automating Excel Pin
Anonymous25-Aug-05 4:37
Anonymous25-Aug-05 4:37 
No, sorry!

I am using the help files from Microsoft: INVHelp.cpp and INVHelp.h
Those work quiete well. It uses easier ways to use the invoke function.

Here, everything is getting invoked. Like:

V_VT(&v) = VT_I2;
V_I2(&v) = 20;

hr = Invoke(pdispRange, DISPATCH_PROPERTYPUT, NULL, NULL, NULL,
OLESTR("Value"), TEXT("v"), v);


The problem for me is now: I cant use Run or VBProject.

hr = Invoke(pdispWorksheet, DISPATCH_PROPERTYGET, &vRet, NULL, NULL,
OLESTR("VBProject"), NULL);

It gives me "exception error" in hr.

I just cant get it working. Normally this VBProject doesnt need more than the return value, right?

If Id just get this to work...


DKT
GeneralRe: Automating Excel Pin
Anonymous25-Aug-05 4:55
Anonymous25-Aug-05 4:55 
GeneralRe: Automating Excel Pin
David Crow25-Aug-05 4:58
David Crow25-Aug-05 4:58 
GeneralRe: Automating Excel Pin
Anonymous25-Aug-05 20:35
Anonymous25-Aug-05 20:35 
GeneralRe: Automating Excel Pin
Anonymous25-Aug-05 22:08
Anonymous25-Aug-05 22:08 
Generalload image Pin
dave2k23-Aug-05 1:06
dave2k23-Aug-05 1:06 
GeneralRe: load image Pin
toxcct23-Aug-05 1:09
toxcct23-Aug-05 1:09 
GeneralRe: load image Pin
ThatsAlok23-Aug-05 1:54
ThatsAlok23-Aug-05 1:54 
QuestionCombo box in a menu !!! Is it possible ? Pin
UsmanMKhan23-Aug-05 1:01
UsmanMKhan23-Aug-05 1:01 
AnswerRe: Combo box in a menu !!! Is it possible ? Pin
toxcct23-Aug-05 1:09
toxcct23-Aug-05 1:09 
GeneralI Agree with you but ..... Pin
UsmanMKhan23-Aug-05 2:25
UsmanMKhan23-Aug-05 2:25 
GeneralRe: I Agree with you but ..... Pin
toxcct23-Aug-05 5:33
toxcct23-Aug-05 5:33 
GeneralRe: I Agree with you but ..... Pin
UsmanMKhan24-Aug-05 21:10
UsmanMKhan24-Aug-05 21:10 
GeneralRe: I Agree with you but ..... Pin
UsmanMKhan24-Aug-05 21:10
UsmanMKhan24-Aug-05 21:10 
GeneralWindows Event Messages Pin
Hachaso23-Aug-05 0:34
Hachaso23-Aug-05 0:34 
GeneralRe: Windows Event Messages Pin
ThatsAlok23-Aug-05 0:43
ThatsAlok23-Aug-05 0:43 
GeneralRe: Windows Event Messages Pin
Hachaso23-Aug-05 0:58
Hachaso23-Aug-05 0:58 
GeneralRe: Windows Event Messages Pin
ThatsAlok23-Aug-05 3:35
ThatsAlok23-Aug-05 3:35 

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.