PDA

Click to See Complete Forum and Search --> : ActiveX DLL problem......


kandan
Dec 14th, 1999, 06:17 PM
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.

Serge
Dec 14th, 1999, 07:12 PM
You have to declare a variable of that type:

Public Type ComboIndexType
ID As Variant
Value As Variant
Other As Variant
End Type

Public tComboIndexType As ComboIndexType


------------------

Serge

Software Developer
Serge_Dymkov@vertexinc.com
Access8484@aol.com
ICQ#: 51055819 (http://www.icq.com/51055819)



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

kandan
Dec 15th, 1999, 06:39 PM
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.

Serge
Dec 15th, 1999, 07:28 PM
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.

Private Type ComboIndexType
ID As Variant
Value As Variant
Other As Variant
End Type

Public tComboIndexType As ComboIndexType


------------------

Serge

Software Developer
Serge_Dymkov@vertexinc.com
Access8484@aol.com
ICQ#: 51055819 (http://www.icq.com/51055819)



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

kandan
Dec 16th, 1999, 11:37 AM
hi serge,

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

help me out....

kandan