View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Dave Patrick Dave Patrick is offline
external usenet poster
 
Posts: 249
Default calling C# DLL from VBA

Seems strange you would ask a C# question here rather than
http://www.microsoft.com/communities...&lang=en&cr=US

I'd run depends.exe against the DLL to see what functions are exposed.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Paul" wrote:
| Dear all,
|
| I am very new to microsoft programming world and would definitely need
| help. I tried created a C++ DLL and I can call it from Excel VBA, and
| it works well.
|
| Now I am trying to create a C# DLL, I can compile the DLL but I can't
| call it from my Excel VBA. Everytime when I invoke the VBA macro it
| complains the entry point of the DLL is not found. Are there something
| missing during my DLL compilation step??
|
| I remember that I have to define the "functions to be exposed" in a DEF
| files for the C++ Linker. Do I have to do something similar for C#?
|
| Thanks a lot.
|
| Paul
|