G
Guest
Dear all,
I have a VB.NET application which is able to identify and load dynamically
other dll's.
created for my application. Those dll's are working as plugins for my main
application.
I need to used Delegate type for my plugins and then rehister to that
delegate from my main application.
I delcare my DElegate type as follow :
Delegate Sub ProcessEventHandler(ByVal iHnd As Int32)
Function SetProcessDelegateRef(ByVal ProcessEventHandler) As Boolean
I have tested that on a small test application , it is workig fine.
The problem I nmet when implementing this to my application is that my
application is creating dynamic reference to existing plug-ins and the only
way I have to communication between my plug in and my applciation is a common
Interface that I have defined.
Now, how can I defined my delegate type in my Interface and in my
application to be able to work correctly.
Thnaks for your help
Serge
I have a VB.NET application which is able to identify and load dynamically
other dll's.
created for my application. Those dll's are working as plugins for my main
application.
I need to used Delegate type for my plugins and then rehister to that
delegate from my main application.
I delcare my DElegate type as follow :
Delegate Sub ProcessEventHandler(ByVal iHnd As Int32)
Function SetProcessDelegateRef(ByVal ProcessEventHandler) As Boolean
I have tested that on a small test application , it is workig fine.
The problem I nmet when implementing this to my application is that my
application is creating dynamic reference to existing plug-ins and the only
way I have to communication between my plug in and my applciation is a common
Interface that I have defined.
Now, how can I defined my delegate type in my Interface and in my
application to be able to work correctly.
Thnaks for your help
Serge