No public class modules can be created. Press the F1 key to obtain more information.

Source: Internet
Author: User

 

I wrote a project of the ActiveX dll type, but the following problem occurs during running:

No public class modules can be created. Press the F1 key to obtain more information.

ActiveX EXE, ActiveX DLL, and ActiveX controls must have at least one public class module.

What is a public class module that can be created? How can this problem be solved?

 

Re: ActiveX DLL

 

Change the instancing attribute of the class that can be accessed externally to 5-multiuse.

 

No.1 reply by: Viena at 2004-11-8 10:47:00> top

 

Select 5-multiuse for instancing

 

No. 2 reply by: online at 2004-11-8 10:47:56> top

 

VB ActiveX dll is a COM component and must be called through objects. Therefore, it must have a public class module.

View the attributes of the class (F4 ).

1: private, externally invisible, and thus cannot be called

2: the public cannot be created. It is usually used as an attribute of other classes and a member of a set.

5: public, the most common type

6: Public global, an instance with the same name will be automatically created based on one more feature in step 5, such as the app object in VB.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.