Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem using a DLL
Message
From
24/11/1997 20:59:13
Nicolas Bastien
Point Exe Informatique Inc.
Montréal, Quebec, Canada
 
 
To
24/11/1997 11:05:06
General information
Forum:
Visual Basic
Category:
ActiveX controls
Miscellaneous
Thread ID:
00061055
Message ID:
00062058
Views:
34
>>You could declare your variable as
>>
>> Dim MyProperty as MyServer.MyFormClass
>>
>>And you could direcly instiance your object by using :
>> Dim MyProperty as new MyFormClass
>>Or
>> Dim MyProperty as new MyServer.MyFormClass
>
>I can now execute the dim line. However, the set line returns "Invalid use of New keyword".
>
>Dim MyProperty As fournier.maforme
>Set MyProperty = New fournier.maforme


If your Dim work, That meen that your object is reconise by the "Type Library". Now if your unable to Make a new on it,
Eider in
Dim MyProperty as new fournier.maforme
Or
Set MyPreperty = new fournier.maforme

That meen that your form is propably "Public non createble".
To Fix that, if is the problem, you need to have a other class in your server that create the instance of that class.
That class as to be "MultiUse".

Ex.:

In The server Fournier:

Class maforme
end class

Class Master


Public Function CreateMaForme() as MaForme
Dim X as new maForme

CreateMaForme = X


End Cass

In Your Application :
Dim XYZ as new Fournier.Master
Dim MyProperty As fournier.maforme

Set MyProperty = XYZ.CreateMaForme()
Nicolas Bastien
President de Point EXE informatique inc.
President du Groupe Visual Basic Montreal
Email : pointexe@ergonet.com
Info : (514) 522-3255
Previous
Reply
Map
View

Click here to load this message in the networking platform