Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem using a DLL
Message
De
24/11/1997 20:59:13
Nicolas Bastien
Point Exe Informatique Inc.
Montréal, Québec, Canada
 
 
À
24/11/1997 11:05:06
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Divers
Thread ID:
00061055
Message ID:
00062058
Vues:
29
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform