com dll中的VB6 .Bas文件未在VB.net中显示? [英] VB6 .Bas File in com dll not showing in VB.net?

查看:121
本文介绍了com dll中的VB6 .Bas文件未在VB.net中显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,在vb6代码中,我有一些.bas文件和一个.cls文件,我希望将其编译为com dll.将dll注册到计算机后,一切看起来都很好,然后可以在程序中添加对该dll的引用.问题是我只能从.cls中看到dll的公共子目录,而从我已添加到dll的.bas文件中什么也看不到?


我已经读到应该有这种可能,所以我迷失了哪里.

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.

推荐答案

VB6无法将VB模块的代码编译为标准的Windows DLL.

但是,有一种方法可以在本文 http://www.hermetic.ch/vbm2dll.htm 中进行描述. ^ ]

它还链接到原始资源,罗恩·佩特鲁沙(Ron Petrusha)的文章.
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 http://www.hermetic.ch/vbm2dll.htm[^]

It also links to the original source, the article of Ron Petrusha.


这篇关于com dll中的VB6 .Bas文件未在VB.net中显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆