Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Integrate the COM with VFP
Message
De
14/09/2004 07:17:54
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
14/09/2004 07:11:20
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00941814
Message ID:
00941842
Vues:
18
>Hi Cetin,
>thank you for your reply.
>I do the next:
>
>local oCom as 'Active_MACI' && where 'Active_MACI.dll' is the COM file
>and
>oCom = CREATEOBJECT('Active_MACI') or
>oCom = CREATEOBJECT('Active_MACI.dll')
>
>and i get "Class definition 'Active_MACI' is not found"(I was placed it on my dir)
>Why?

Class is not the same as the dll. DLL is a container. It should be:

oCom = CreateObject('COM_DLLNAME.ClassNameInDLL')
Yours should look like:
oCom = CreateObject('Active_MACI.SomeClassName')

If you don't know the classname (or even if you do know) you can check it in Object explorer.

Also you might check registry to see classes - under HKEY_CLASSES_ROOT check those start as "Active_MACI."
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform