Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Integrate the COM with VFP
Message
From
14/09/2004 07:17:54
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
14/09/2004 07:11:20
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00941814
Message ID:
00941842
Views:
19
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform