Click here to Skip to main content
16,015,296 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Windows 2008 giving a screen telling user the process is stil running and preventing the machine to log-off Pin
Kushagra Tiwari7-Oct-09 3:32
Kushagra Tiwari7-Oct-09 3:32 
QuestionIs there any posssibility to see the function definitions of dll file? Pin
bahareh6557-Oct-09 0:37
bahareh6557-Oct-09 0:37 
AnswerRe: Is there any posssibility to see the function definitions of dll file? Pin
KarstenK7-Oct-09 1:19
mveKarstenK7-Oct-09 1:19 
AnswerRe: Is there any posssibility to see the function definitions of dll file? Pin
Richard MacCutchan7-Oct-09 2:34
mveRichard MacCutchan7-Oct-09 2:34 
AnswerRe: Is there any posssibility to see the function definitions of dll file? Pin
David Crow7-Oct-09 2:55
David Crow7-Oct-09 2:55 
AnswerRe: Is there any posssibility to see the function definitions of dll file? Pin
kilt8-Oct-09 23:26
kilt8-Oct-09 23:26 
QuestionCRICHEDITCTRL 'S BORDER Pin
prithaa7-Oct-09 0:30
prithaa7-Oct-09 0:30 
QuestionExcel Automation: iDispatch->Invoke method Pin
NarVish6-Oct-09 23:42
NarVish6-Oct-09 23:42 
Hi,

I am not much familiar with COM and COM dlls. Below Invoke function of iDispatch is not returning the expected result. May be I didn't send the valid parameters. code is here, pls suggest the corrections:

_ATL_FUNC_INFO SheetCalculateInfo = { CC_CDECL, VT_EMPTY, 1, { VT_DISPATCH } };
BEGIN_SINK_MAP(ExcelBookEventHandler)
SINK_ENTRY_INFO(1, __uuidof(Excel::WorkbookEvents), 0x0000061b, &ExcelBookEventHandler::SheetCalculate, &SheetCalculateInfo)
END_SINK_MAP()
void _stdcall SheetCalculate(IDispatch *iDispatch)
{
static DISPID dispid = 0;
wchar_t *ucName = L"Calculate";
HRESULT result = iDispatch->GetIDsOfNames(IID_NULL, &ucName, 1,LOCALE_SYSTEM_DEFAULT, &dispid);

DISPID dispidMethod;
DISPPARAMS dispparms;
VARIANTARG varg[1];
VARIANT vResult;
EXCEPINFO excep;

VariantInit(&varg[0]);
VariantInit(&vResult);

// Setup parameters
dispparms.rgvarg = varg;
dispparms.rgdispidNamedArgs = NULL;
dispparms.cArgs = 1;
dispparms.cNamedArgs = 0;

varg[0].vt = VT_I4 ;
varg[0].lVal = dwParameter;

hr = pdispObj->Invoke(dispidMethod, IID_NULL,
LOCALE_USER_DEFAULT,
DISPATCH_METHOD, &dispparms, &vResult,
&excep, NULL);

dwResult = vResult.lVal;
}

Above SheetCalculate function gets fired whenever there is change in function(like =sum(A1,A2)) result. My aim is to get the function result value. I'm expecting function result in dwResult variable. But couldn't able to get that. Please guide me to read the function result. Thanks in advance.
QuestionVibration in Windows mobile 6 Professional Pin
spret856-Oct-09 22:46
spret856-Oct-09 22:46 
AnswerRe: Vibration in Windows mobile 6 Professional Pin
Rajesh R Subramanian6-Oct-09 23:23
professionalRajesh R Subramanian6-Oct-09 23:23 
Questionhow to draw line by dragging mouse inside rectangle in dialog based application in vc++,mfc Pin
prerananit6-Oct-09 22:31
prerananit6-Oct-09 22:31 
QuestionRe: how to draw line by dragging mouse inside rectangle in dialog based application in vc++,mfc Pin
CPallini6-Oct-09 22:47
mveCPallini6-Oct-09 22:47 
AnswerRe: how to draw line by dragging mouse inside rectangle in dialog based application in vc++,mfc Pin
wangningyu6-Oct-09 22:52
wangningyu6-Oct-09 22:52 
GeneralRe: how to draw line by dragging mouse inside rectangle in dialog based application in vc++,mfc Pin
CPallini6-Oct-09 22:58
mveCPallini6-Oct-09 22:58 
QuestionHow to load the Url Image ? Pin
wangningyu6-Oct-09 22:24
wangningyu6-Oct-09 22:24 
AnswerRe: How to load the Url Image ? Pin
Iain Clarke, Warrior Programmer6-Oct-09 22:57
Iain Clarke, Warrior Programmer6-Oct-09 22:57 
Questionconvert const wchar* to const byte* Pin
Rakesh56-Oct-09 22:02
Rakesh56-Oct-09 22:02 
AnswerRe: convert const wchar* to const byte* Pin
Cedric Moonen6-Oct-09 22:18
Cedric Moonen6-Oct-09 22:18 
AnswerRe: convert const wchar* to const byte* Pin
CPallini6-Oct-09 22:45
mveCPallini6-Oct-09 22:45 
GeneralRe: convert const wchar* to const byte* Pin
Rakesh56-Oct-09 23:07
Rakesh56-Oct-09 23:07 
GeneralRe: convert const wchar* to const byte* Pin
Rajesh R Subramanian6-Oct-09 23:26
professionalRajesh R Subramanian6-Oct-09 23:26 
GeneralRe: convert const wchar* to const byte* Pin
CPallini6-Oct-09 23:43
mveCPallini6-Oct-09 23:43 
GeneralRe: convert const wchar* to const byte* Pin
Rajesh R Subramanian6-Oct-09 23:49
professionalRajesh R Subramanian6-Oct-09 23:49 
AnswerRe: convert const wchar* to const byte* Pin
Rajesh R Subramanian6-Oct-09 23:21
professionalRajesh R Subramanian6-Oct-09 23:21 
GeneralRe: convert const wchar* to const byte* Pin
Rakesh56-Oct-09 23:39
Rakesh56-Oct-09 23:39 

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.