Click here to Skip to main content
15,903,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Migrating from vs-2003 to vs-2008,LNK2019:unresolved external symbol Pin
Richard MacCutchan21-Sep-09 7:34
mveRichard MacCutchan21-Sep-09 7:34 
GeneralRe: Migrating from vs-2003 to vs-2008,LNK2019:unresolved external symbol Pin
Vetukuri Raju22-Sep-09 4:28
Vetukuri Raju22-Sep-09 4:28 
GeneralRe: Migrating from vs-2003 to vs-2008,LNK2019:unresolved external symbol Pin
Richard MacCutchan22-Sep-09 6:11
mveRichard MacCutchan22-Sep-09 6:11 
QuestionHow to use the CMFCShellListCtrl Class ? Pin
ryan_lee21-Sep-09 3:36
ryan_lee21-Sep-09 3:36 
QuestionDetect USB Pendrive Pin
Manmohan2921-Sep-09 3:27
Manmohan2921-Sep-09 3:27 
QuestionRe: Detect USB Pendrive Pin
David Crow21-Sep-09 4:01
David Crow21-Sep-09 4:01 
AnswerRe: Detect USB Pendrive [modified] Pin
Iain Clarke, Warrior Programmer21-Sep-09 6:07
Iain Clarke, Warrior Programmer21-Sep-09 6:07 
JokeRe: Detect USB Pendrive Pin
Rajesh R Subramanian21-Sep-09 9:02
professionalRajesh R Subramanian21-Sep-09 9:02 
GeneralRe: Detect USB Pendrive Pin
Iain Clarke, Warrior Programmer21-Sep-09 9:16
Iain Clarke, Warrior Programmer21-Sep-09 9:16 
JokeRe: Detect USB Pendrive Pin
Moak24-Sep-09 5:01
Moak24-Sep-09 5:01 
QuestionThread pool query Pin
Rajesh R Subramanian21-Sep-09 3:14
professionalRajesh R Subramanian21-Sep-09 3:14 
AnswerRe: Thread pool query Pin
Naveen21-Sep-09 4:04
Naveen21-Sep-09 4:04 
GeneralRe: Thread pool query Pin
Rajesh R Subramanian21-Sep-09 4:42
professionalRajesh R Subramanian21-Sep-09 4:42 
GeneralRe: Thread pool query Pin
Naveen21-Sep-09 7:10
Naveen21-Sep-09 7:10 
GeneralRe: Thread pool query Pin
Rajesh R Subramanian21-Sep-09 7:48
professionalRajesh R Subramanian21-Sep-09 7:48 
QuestionCell change event in Excel Pin
NarVish21-Sep-09 0:35
NarVish21-Sep-09 0:35 
AnswerRe: Cell change event in Excel Pin
Stuart Dootson21-Sep-09 2:35
professionalStuart Dootson21-Sep-09 2:35 
GeneralRe: Cell change event in Excel Pin
NarVish21-Sep-09 20:31
NarVish21-Sep-09 20:31 
GeneralRe: Cell change event in Excel Pin
NarVish23-Sep-09 23:26
NarVish23-Sep-09 23:26 
GeneralRe: Cell change event in Excel Pin
Stuart Dootson24-Sep-09 5:57
professionalStuart Dootson24-Sep-09 5:57 
GeneralRe: Cell change event in Excel Pin
NarVish24-Sep-09 19:32
NarVish24-Sep-09 19:32 
GeneralRe: Cell change event in Excel Pin
Stuart Dootson24-Sep-09 20:11
professionalStuart Dootson24-Sep-09 20:11 
GeneralRe: Cell change event in Excel Pin
NarVish24-Sep-09 21:26
NarVish24-Sep-09 21:26 
GeneralRe: Cell change event in Excel Pin
Stuart Dootson25-Sep-09 4:03
professionalStuart Dootson25-Sep-09 4:03 
GeneralRe: Cell change event in Excel Pin
NarVish29-Sep-09 19:45
NarVish29-Sep-09 19:45 
Thank you for your post.
SheetCalculate is getting fired whenever there is change in function related cells. My aim is to get the function result in excel. To get that I'm trying by calling different functions of iDispatch. But couldn't able to get the expected result.

void _stdcall SheetCalculate(IDispatch *iDispatch)
{
////////////*******GetIDsOfNames*******////////////
static DISPID dispid = 0;
wchar_t *ucName = L"Evaluate"; //I tried by giving "Run" and "Calculate" values in place of "Evaluate"
HRESULT result = iDispatch->GetIDsOfNames(IID_NULL, &ucName, 1,LOCALE_SYSTEM_DEFAULT, &dispid);

////////////*******Invoke*******////////////
VARIANT varResult;
DISPID dispid;
DISPID dispidNamed = DISPATCH_METHOD;
EXCEPINFO excep;
UINT uArgErr;
DISPPARAMS dispparams;
dispparams.cNamedArgs = 0;
dispparams.cArgs = 2;
dispparams.rgdispidNamedArgs = &dispidNamed;
HRESULT result = iDispatch->Invoke( odispid, IID_NULL, LOCALE_SYSTEM_DEFAULT,
DISPATCH_METHOD, &dispparams, &varResult, &excep, &uArgErr);

////////////*******GetTypeInfo*******////////////
ITypeInfo* pTypeInfo;
HRESULT result= iDispatch->GetTypeInfo(0,LOCALE_SYSTEM_DEFAULT,&pTypeInfo);

////////////*******GetTypeInfoCount*******////////////
UINT pct1;
HRESULT result= iDispatch->GetTypeInfoCount(&pct1);

////////////*******QueryInterface*******////////////
HRESULT result = iDispatch->QueryInterface(IID_IDispatch,(void**)&iDispatch);
}
I followed the below link to get some help.
"http://up.m-e-c.biz/up/books/Excel%20add-in%20C++.pdf"

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.