Click here to Skip to main content
15,741,531 members
Home / Discussions / COM
   

COM

 
AnswerRe: Unhandled exception in CreateCompatibleBitmap() Pin
serzh833-Nov-09 1:59
serzh833-Nov-09 1:59 
QuestionIs it possible for a 32-bit app to call a 64-bit COM server? Pin
darwei29-Oct-09 15:53
darwei29-Oct-09 15:53 
AnswerRe: Is it possible for a 32-bit app to call a 64-bit COM server? Pin
cariolihome7-Nov-09 10:59
cariolihome7-Nov-09 10:59 
QuestionCSharp com interop wrapper events... Pin
Arish rivlin26-Oct-09 20:11
Arish rivlin26-Oct-09 20:11 
AnswerRe: CSharp com interop wrapper events... Pin
«_Superman_»27-Oct-09 7:35
professional«_Superman_»27-Oct-09 7:35 
QuestionWhat happened to regtlib? Pin
RugbyLeague22-Oct-09 4:03
RugbyLeague22-Oct-09 4:03 
AnswerRe: What happened to regtlib? Pin
Baltoro22-Oct-09 13:53
Baltoro22-Oct-09 13:53 
QuestionCatch an event, fired within a custom late-bounded DLL Pin
MatthysDT20-Oct-09 1:37
MatthysDT20-Oct-09 1:37 
I'm not sure if I'm posting in the correct forum, this is regarding late binding on a custom DLL in C#.

Basically, I have a self-written DLL which I wrapped using TLBIMP.exe.
Now I am trying to map the DLL's events to that of my own form. The events inside the DLL originate from a class.
I have tried almost every solution I was able to Google and nothing works.

Please do not reply to my thread if you have just Googled a solution, I need to hear from someone who has done this before. I've tried Google.

Details:

O.k, I'm going to use simpler names than that of my actual code.

My DLL file is called wrapper_MyDLL.dll and I load it as follows:
System.Reflection.Assembly _assembly = Assembly.LoadFile("wrapper_MyDLL.dll");


I save the Type as follows:
System.Type _classType = _assembly.GetType("wrapper_MyDLL.MyModuleClass");


I save the Class Object as follows:
object _classObject = Activator.CreateInstance(_classType);


Now from this point on I have tried so many different pieces of code to get the event that I'd rather not try to provide my attempted solution.
However, I can give some detail about my DLL.

If I loop through _assembly.getTypes() I get (among other) the following two classes:
* wrapper_MyDLL.MyModuleClass
* wrapper_MyDLL.__MyModule_ReceivedMessageEventHandler

Inside the class wrapper_MyDLL.MyModuleClass, the DLL exposes the following (among other):
Methods:
* add_ReceivedMessage
* remove_ReceivedMessage
Event(s):
* ReceivedMessage

Inside the class wrapper_MyDLL.__MyModule_ReceivedMessageEventHandler, the DLL exposes the following (among other):
Methods:
* get_Method
* get_Target
Properties:
* Method
* Target

Now, how do I go about having that event (ReceivedMessage) fire in a method in my C# project?

If you think you can help and need any more info, let me know. Smile | :)

Kind Regards


QuestionIWebbrowser: Toolbar handling and event for modifying content? Pin
AlexInter19-Oct-09 21:41
AlexInter19-Oct-09 21:41 
AnswerRe: IWebbrowser: Toolbar handling and event for modifying content? Pin
Cool_Dev23-Oct-09 5:38
Cool_Dev23-Oct-09 5:38 
Questionerror C4772: #import referenced a type from a missing type library Pin
samfromcn18-Oct-09 20:15
samfromcn18-Oct-09 20:15 
AnswerRe: error C4772: #import referenced a type from a missing type library Pin
Stuart Dootson18-Oct-09 22:10
professionalStuart Dootson18-Oct-09 22:10 
GeneralRe: error C4772: #import referenced a type from a missing type library Pin
samfromcn18-Oct-09 23:35
samfromcn18-Oct-09 23:35 
GeneralRe: error C4772: #import referenced a type from a missing type library Pin
Stuart Dootson19-Oct-09 0:12
professionalStuart Dootson19-Oct-09 0:12 
Questiontwo questions about shell extensions Pin
xalspaero16-Oct-09 12:10
xalspaero16-Oct-09 12:10 
AnswerRe: two questions about shell extensions Pin
Michael Dunn22-Oct-09 14:05
sitebuilderMichael Dunn22-Oct-09 14:05 
GeneralRe: two questions about shell extensions [modified] Pin
xalspaero22-Oct-09 15:33
xalspaero22-Oct-09 15:33 
GeneralRe: two questions about shell extensions Pin
Michael Dunn27-Oct-09 14:30
sitebuilderMichael Dunn27-Oct-09 14:30 
QuestionGetting the running instance from PID using COM Pin
KTTransfer15-Oct-09 8:26
KTTransfer15-Oct-09 8:26 
AnswerRe: Getting the running instance from PID using COM Pin
«_Superman_»15-Oct-09 13:27
professional«_Superman_»15-Oct-09 13:27 
AnswerRe: Getting the running instance from PID using COM Pin
Vi216-Oct-09 0:30
Vi216-Oct-09 0:30 
GeneralRe: Getting the running instance from PID using COM Pin
KTTransfer18-Oct-09 6:31
KTTransfer18-Oct-09 6:31 
GeneralRe: Getting the running instance from PID using COM Pin
Vi218-Oct-09 19:11
Vi218-Oct-09 19:11 
GeneralRe: Getting the running instance from PID using COM Pin
KTTransfer18-Oct-09 22:32
KTTransfer18-Oct-09 22:32 
GeneralRe: Getting the running instance from PID using COM Pin
Jörgen Sigvardsson1-Nov-09 11:23
Jörgen Sigvardsson1-Nov-09 11:23 

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.