Click here to Skip to main content
15,895,667 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralMinimizing Memory Pin
Matt Gerrans9-Sep-04 12:38
Matt Gerrans9-Sep-04 12:38 
GeneralRe: Minimizing Memory Pin
Michael Dunn9-Sep-04 13:18
sitebuilderMichael Dunn9-Sep-04 13:18 
GeneralRe: Minimizing Memory Pin
Jörgen Sigvardsson9-Sep-04 13:40
Jörgen Sigvardsson9-Sep-04 13:40 
GeneralRe: Minimizing Memory Pin
Michael Dunn9-Sep-04 15:38
sitebuilderMichael Dunn9-Sep-04 15:38 
GeneralRe: Minimizing Memory Pin
Jörgen Sigvardsson9-Sep-04 23:58
Jörgen Sigvardsson9-Sep-04 23:58 
GeneralRe: Minimizing Memory Pin
Michael Dunn10-Sep-04 7:09
sitebuilderMichael Dunn10-Sep-04 7:09 
GeneralRe: Minimizing Memory Pin
Matt Gerrans9-Sep-04 13:51
Matt Gerrans9-Sep-04 13:51 
GeneralHandling .Net Events in VC++ Pin
nalan8-Sep-04 21:08
nalan8-Sep-04 21:08 
Hi,

I have a componenet developed in C#.Net which will fire an event. The .Net component will send two parameters of type object (typecode : System.String )with that event.
I used the tlb file of that component for my VC++ client.

In the corresponding .tlh file generated by the VC++ compiler, the signature of the event handler is like
HRESULT HandlerforEvent (
const _variant_t & send,
const _variant_t & tkInfo );

I have done the following in my VC++ application.

1. I have created a class derived from IDispEventSimpleImpl
2. I used SINK_ENTRY_INFO with _ATL_FUNC_INFO as one of the parameter.

_ATL_FUNC_INFO OnEventInfo = {CC_STDCALL, VT_HRESULT, 2, {VT_BSTR,VT_BSTR}};

3. I have written a handler for the event.
4. Inthe CPP file,
I get the address using cocreateinstance and I used the DispEventAdvise for my object. Also I have written the implemention code for the event handler.
But still I am not able to capture the event from the component.

Can any one of you please tell me the solution for my problem... or is there any other way to capture the event from a .Net component in VC++.






Thanks
Kannan
GeneralRe: Handling .Net Events in VC++ Pin
andy_cn8-Sep-04 21:39
andy_cn8-Sep-04 21:39 
GeneralObject of MFC class in ATL DLL Pin
zahid_ash8-Sep-04 21:00
zahid_ash8-Sep-04 21:00 
General(?:) CAxDialogImpl does not receive WM_CREATE Pin
.Suchit7-Sep-04 0:16
.Suchit7-Sep-04 0:16 
GeneralRe: (?:) CAxDialogImpl does not receive WM_CREATE Pin
Jörgen Sigvardsson7-Sep-04 1:50
Jörgen Sigvardsson7-Sep-04 1:50 
GeneralATL dialog with ActiveX control used inside Windows service Pin
.Suchit6-Sep-04 2:40
.Suchit6-Sep-04 2:40 
GeneralRe: ATL dialog with ActiveX control used inside Windows service Pin
Jörgen Sigvardsson6-Sep-04 8:46
Jörgen Sigvardsson6-Sep-04 8:46 
GeneralThanks/Solved: ATL dialog with ActiveX control used inside Windows service Pin
.Suchit7-Sep-04 1:39
.Suchit7-Sep-04 1:39 
GeneralRe: Thanks/Solved: ATL dialog with ActiveX control used inside Windows service Pin
Jörgen Sigvardsson7-Sep-04 1:48
Jörgen Sigvardsson7-Sep-04 1:48 
GeneralRe: Thanks/Solved: ATL dialog with ActiveX control used inside Windows service Pin
.Suchit14-Sep-04 4:04
.Suchit14-Sep-04 4:04 
QuestionATLControls.h? Pin
Anthony_Yio5-Sep-04 22:36
Anthony_Yio5-Sep-04 22:36 
AnswerRe: ATLControls.h? Pin
Jörgen Sigvardsson6-Sep-04 8:47
Jörgen Sigvardsson6-Sep-04 8:47 
AnswerRe: ATLControls.h? Pin
Michael Dunn7-Sep-04 7:55
sitebuilderMichael Dunn7-Sep-04 7:55 
Generalvery odd IExtractImage::Extract() behaviour Pin
seriema4-Sep-04 11:53
seriema4-Sep-04 11:53 
GeneralIs It a Memory leak Pin
omarjchaudry2-Sep-04 17:37
omarjchaudry2-Sep-04 17:37 
GeneralRe: Is It a Memory leak Pin
Stuart Dootson2-Sep-04 21:31
professionalStuart Dootson2-Sep-04 21:31 
GeneralRe: Is It a Memory leak Pin
Jörgen Sigvardsson3-Sep-04 8:28
Jörgen Sigvardsson3-Sep-04 8:28 
GeneralRe: Is It a Memory leak Pin
Stuart Dootson3-Sep-04 8:44
professionalStuart Dootson3-Sep-04 8:44 

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.