Results 1 to 5 of 5

Thread: ActiveX DLL problem......

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 1999
    Posts
    52

    Post

    hi all,

    I am creating a ActiveX DLL proj. in the declaration section i am using the below code:
    Public Type ComboIndexType
    ID As Variant
    Value As Variant
    Other As Variant
    End Type

    After it has been converted to DLL the public type is not getting exposed in the client.problem is Illegal operation.....

    any1 suggest me out....

    kandan.

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    You have to declare a variable of that type:
    Code:
    Public Type ComboIndexType
        ID As Variant
        Value As Variant
        Other As Variant
    End Type
    
    Public tComboIndexType As ComboIndexType
    ------------------

    Serge

    Software Developer
    [email protected]
    [email protected]
    ICQ#: 51055819



    [This message has been edited by Serge (edited 12-15-1999).]

  3. #3

    Thread Starter
    Member
    Join Date
    Aug 1999
    Posts
    52

    Post


    Hi serge,

    Thanx for ur response..butt while i am making that proj. into DLL its giving compile time error..

    User-Defined type and declare statements not allowed as public members of object modules.

    plzzz help me out from this...

    kandan.

  4. #4
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    Because you're probably declaring it in a Class Module. If yes, then change it to Private and still have your variable tComboIndexType As ComboIndexType as Public.
    Code:
    Private Type ComboIndexType
        ID As Variant
        Value As Variant
        Other As Variant
    End Type
    
    Public tComboIndexType As ComboIndexType
    ------------------

    Serge

    Software Developer
    [email protected]
    [email protected]
    ICQ#: 51055819



    [This message has been edited by Serge (edited 12-16-1999).]

  5. #5

    Thread Starter
    Member
    Join Date
    Aug 1999
    Posts
    52

    Post

    hi serge,

    Still the same problem....same error giving....

    help me out....

    kandan

Posting Permissions

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



Click Here to Expand Forum to Full Width