Click here to Skip to main content
14,975,219 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Currently I have a few .bas files and one .cls file in vb6 code that I wish to compile to a com dll. Everything looks good once I register the dll to my computer and then I can add reference to the dll in my program. The problem is that I can only see the public subs of the dll from the .cls and nothing from the .bas files that I have added to the dll?

I have read that it should be possible so I am lost as to where I have went wrong.
Maciej Los 5-May-12 5:13am
Is it really VB.NET. In my opinion it is VB (without .NET)!

"I can only see the public subs of the dll" - becouse only public subs will be visible!
Dale 2012 7-May-12 2:41am
What are you talking about?
Dale 2012 7-May-12 2:49am
It is not the public subs that i am worried about if you have read my question. I understand that only public subs will be visible in the dll but its only the public subs in the .cls file that show and not the public subs in the .bas files

1 solution

VB6 is not able to compile the code for a VB module to a standard Windows DLL.

There is however a way, which is described in this article[^]

It also links to the original source, the article of Ron Petrusha.
Maciej Los 7-May-12 15:40pm
Very good answer and link! My 5!
Dale 2012 11-May-12 0:28am
thank you very much I have read the article and will also give this a 5 with accepted answer.

take care thank you!

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