Hello,
Can anyone tell me how many classes are allowed in an ActiveX DLL project?Is there any limit or can we have unlimited number of classes??
Thanks.
Printable View
Hello,
Can anyone tell me how many classes are allowed in an ActiveX DLL project?Is there any limit or can we have unlimited number of classes??
Thanks.
I just built an ActiveX dll with 64 empty classes, the compiler did not complain.
:D
Don't know what would happened if the class wasn't empty though
There is a limit, but I could not find the exact number...
http://support.microsoft.com/default...b;en-us;316010
...maybe it also depends on your machine resources, but also on the whole of
your project: you have 32,000 identifiers you can use....But that includes not only
modules, but also variables...!
However, I hope you do not have more than 100 modules... ;)
[see next post for more details]
for example, speaking of forms:
Speaking of project:Quote:
The maximum number of controls allowed on a single form depends on the type of
controls used and available system resources. However, there is a fixed limit of
254 control names per form.
Speaking of code:Quote:
Project Limitations
A single project can contain up to 32,000 "identifiers" (any nonreserved keyword),
which include, but are not limited to, forms, controls, modules, variables,
constants, procedures, functions, and objects. Note that the actual number of
identifiers is limited to available memory.
Variable names in Visual Basic can be no longer than 255 characters, and the
names of forms, controls, modules, and classes cannot be longer than 40
characters. Visual Basic imposes no limit on the actual number of distinct objects
in a project.
To read from Msdn:Quote:
Code Limitations
The amount of code that can be loaded into a form, class, or standard module is
limited to 65,534 lines. A single line of code can consist of up to 1023 bytes. Up to
256 blank spaces can precede the actual text on a single line, and no more than
twenty-four line-continuation characters ( _) can be included in a single logical line.
Quote:
For more information about project, control, and code limitations in Visual Basic,
please see the following topics in the Visual Basic Programmers Guide, the Online
Help, or the MSDN Web site:
Project Limitations at:
http://msdn.microsoft.com/library/de...imitations.htm
Control Limitations at:
http://msdn.microsoft.com/library/de...imitations.htm
Code Limitations at:
http://msdn.microsoft.com/library/de...imitations.htm
Data Limitations at:
http://msdn.microsoft.com/library/de...imitations.htm
System Resource Limitations at:
http://msdn.microsoft.com/library/de...imitations.htm