Click here to Skip to main content
15,911,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: read, write binary file Pin
CPallini11-Feb-09 22:34
mveCPallini11-Feb-09 22:34 
QuestionHow to set visible area of a Popup Menu? Pin
pa_ajaykumar11-Feb-09 20:37
pa_ajaykumar11-Feb-09 20:37 
AnswerRe: How to set visible area of a Popup Menu? Pin
Stuart Dootson11-Feb-09 21:20
professionalStuart Dootson11-Feb-09 21:20 
GeneralRe: How to set visible area of a Popup Menu? Pin
pa_ajaykumar11-Feb-09 22:04
pa_ajaykumar11-Feb-09 22:04 
GeneralRe: How to set visible area of a Popup Menu? Pin
Stuart Dootson11-Feb-09 23:01
professionalStuart Dootson11-Feb-09 23:01 
QuestionBlinking cursor on the view. Pin
VC++Maniac11-Feb-09 20:21
VC++Maniac11-Feb-09 20:21 
AnswerRe: Blinking cursor on the view. Pin
«_Superman_»11-Feb-09 20:33
professional«_Superman_»11-Feb-09 20:33 
QuestionCOM : ATL DLL? Pin
sam_psycho11-Feb-09 20:02
sam_psycho11-Feb-09 20:02 
Hi Experts,
I have ATL DLL with Addition() method,
I calling this function from another MFC application with no argument
Code goes like :
Assume no syntax errors

CLSID cls_id;
CLSIDFromProgID(L"DLLTest.MyObject",&cls_id);
CComPtr<IDispatch> pService;
HRESULT hr = pService.CoCreateInstance(cls_id, NULL, CLSCTX_INPROC_SERVER|CLSCTX_LOCAL_SERVER);
if(hr == S_OK)
{
DISPID Disp_id;
CString bsvalue;
CComVariant Result;
OLECHAR *member=_T("Addition");
DISPPARAMS param = {NULL,NULL,0,0};
hr = pService->GetIDsOfNames(IID_NULL,&member,1,LOCALE_SYSTEM_DEFAULT,&Disp_id);
if(S_OK == hr)
hr = pService->Invoke(Disp_id,IID_NULL,LOCALE_SYSTEM_DEFAULT,DISPATCH_METHOD,&param,&Result,NULL,NULL);
else
MessageBox(L"Could not get disp id",L"MSG",MB_OK);
}
else
MessageBox(L"No Interface",L"MSG",MB_OK);


This code works fine but,

now I want to call same function Addition() with two arguments, I have made respective chages in DLL, so please give me solution or hint

Smile | :)
AnswerRe: COM : ATL DLL? Pin
Stuart Dootson11-Feb-09 21:34
professionalStuart Dootson11-Feb-09 21:34 
GeneralRe: COM : ATL DLL? Pin
sam_psycho11-Feb-09 21:53
sam_psycho11-Feb-09 21:53 
GeneralRe: COM : ATL DLL? Pin
Stuart Dootson11-Feb-09 21:57
professionalStuart Dootson11-Feb-09 21:57 
GeneralRe: COM : ATL DLL? Pin
sam_psycho11-Feb-09 22:07
sam_psycho11-Feb-09 22:07 
AnswerRe: COM : ATL DLL? Pin
frx9616-Feb-09 14:11
frx9616-Feb-09 14:11 
QuestionDeleting data from XML Pin
brucewayn11-Feb-09 19:54
brucewayn11-Feb-09 19:54 
AnswerRe: Deleting data from XML Pin
sam_psycho11-Feb-09 20:04
sam_psycho11-Feb-09 20:04 
AnswerRe: Deleting data from XML Pin
Cedric Moonen11-Feb-09 20:15
Cedric Moonen11-Feb-09 20:15 
AnswerRe: Deleting data from XML Pin
sam_psycho11-Feb-09 20:23
sam_psycho11-Feb-09 20:23 
GeneralRe: Deleting data from XML Pin
Cedric Moonen11-Feb-09 20:50
Cedric Moonen11-Feb-09 20:50 
GeneralRe: Deleting data from XML Pin
CPallini11-Feb-09 22:16
mveCPallini11-Feb-09 22:16 
GeneralRe: Deleting data from XML Pin
Cedric Moonen11-Feb-09 22:28
Cedric Moonen11-Feb-09 22:28 
QuestionFindWindow() Pin
AnithaSubramani11-Feb-09 19:48
AnithaSubramani11-Feb-09 19:48 
AnswerRe: FindWindow() Pin
Perspx11-Feb-09 20:06
Perspx11-Feb-09 20:06 
AnswerRe: FindWindow() Pin
«_Superman_»11-Feb-09 20:28
professional«_Superman_»11-Feb-09 20:28 
AnswerRe: FindWindow() Pin
Stuart Dootson11-Feb-09 21:36
professionalStuart Dootson11-Feb-09 21:36 
Questionconverting TCHAR to CString giving some garbage value Pin
VCProgrammer11-Feb-09 19:47
VCProgrammer11-Feb-09 19:47 

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.