>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