How to use .net delegate in vba -


i have .net dll written in c# exposes delegates. now, visible in vba object explorer , appear 'class'. how can instantiate , make point vba function same signature , pass c# function takes delegate argument?

i should able that, right!? dll registered com interop, there com attributes must decorate delegates or what?

thanks, andrei!

use late binding, won't able use vba intellisense program, call functions right parameter:

for example: instantiate class

private obj object set obj = createobject("namespace.class") 

and use methods class

obj.method(a,b,c) 

if need register ddl programmaticaly, can use

shell "c:\windows\microsoft.net\framework\v4.0.30319\regasm.exe c:\mydll.dll /codebase" 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -