Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
3.67/5 (3 votes)
See more:
I developed a .dll in C# and now Id like to use it in a vbs file but I dont know how.

I already registered the dll with regasm, set ComVisible to true and made all modifiers public in my class but I cant include it into my vbs project.
How do I call the CreateObject function propperly? Like this:
Set hpdll = CreateObject("HP_34401A_DLL.HP_34401A") ?
The namespace of my dll is called HP_34401A_DLL and the class HP_34401A.

thanks in advance :)
Posted
Comments
[no name] 26-Jul-11 9:43am    
Post your error message here.

1 solution

This sounds exactly like what you need: C# Com[^]. Its from an article here on CP that was written by one of our members Rakesh Gunijan[^]

Best Regards,
—MRB
 
Share this answer
 
Comments
ZeZe el X 27-Jul-11 3:33am    
Thank you!
Manfred Rudolf Bihy 27-Jul-11 3:41am    
Your welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900