No. of classes permissible in ActiveX DLL
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: No. of classes permissible in ActiveX DLL

  1. #1
    Join Date
    Apr 2002
    Location
    Mumbai, India
    Posts
    106

    No. of classes permissible in ActiveX DLL

    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.
    -Ekta

  2. #2
    Join Date
    Nov 2002
    Location
    Baby Land
    Posts
    646
    I just built an ActiveX dll with 64 empty classes, the compiler did not complain.

    Don't know what would happened if the class wasn't empty though

  3. #3
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726
    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]
    Last edited by Cimperiali; August 9th, 2004 at 05:24 AM.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  4. #4
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726
    for example, speaking of forms:
    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 project:
    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.
    Speaking of code:
    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.
    To read from Msdn:
    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
    Last edited by Cimperiali; August 9th, 2004 at 05:20 AM.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center