|
-
Dec 14th, 1999, 07:17 PM
#1
Thread Starter
Member
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.
-
Dec 14th, 1999, 08:12 PM
#2
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).]
-
Dec 15th, 1999, 07:39 PM
#3
Thread Starter
Member
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.
-
Dec 15th, 1999, 08:28 PM
#4
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).]
-
Dec 16th, 1999, 12:37 PM
#5
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|