M
M
Maxim Barulin2015-05-18 17:36:47
PHP
Maxim Barulin, 2015-05-18 17:36:47

Why can't create a COM class object?

Good day!
There are such comrades . They have a client for their system. The client has an api through com. Put the client. I check in the registry, the class is registered https://yadi.sk/i/KHyURBwJghua3 . Through component services, all components related to the client added a user with the right to work with this object. But when running a simple test script:

var_dump(com_load_typelib('EApi.Head'));
try
{
  $obj = new COM("eapi.head");
}
catch(Exception $e)
{
  echo $e->getMessage();
}

or
dim oHead
set oHead=CreateObject("EAPI.Head")

the result is always the same: the class is not registered in the system. I tried to manually install the dll:
regsvr32 /i Eapi.dll
in this case, an error about the wrong entry point https://yadi.sk/i/yfHyqUVsghxH8 . I tried this set of actions both under a simple user and under the administrator. On a server and your local machine. Launched from under the Apache and from the console. What else can you try?
System winsrv2008, win7 both x64
I would be grateful for any help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Golubev, 2015-05-28
@wladyspb

Look here, it might help.
stackoverflow.com/questions/4897685/how-do-i-regis...
Somehow I jumped around with a tambourine around a similar problem, but to be honest I don't remember how I solved it...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question