Trouble with chestysoft's csXImage active-x component

171 views
Skip to first unread message

Viktor Rafajloski

unread,
Apr 9, 2013, 8:17:12 AM4/9/13
to ff-acti...@googlegroups.com
Hi,
I'm trying to load the csXImage active-x component trough the ff-activex plugin.
The component works fine under IE, however with the ff-activex plugin it does not.

The csXImage active-x component needs a LPK to be loaded before the actual active-x object is loaded.
The LPK is loaded as it should.

<OBJECT 
     TYPE="application/x-itst-activex" 
     clsid="{5220cb21-c88d-11cf-b347-00aa00a28331}" 
</OBJECT>

However, the actual ocx (included in a .cab file) is not loaded.

<OBJECT id=csxi 
TYPE="application/x-itst-activex" 
clsid="{62E57FC5-1CCD-11D7-8344-00C1261173F0}" 
logger="logger" debugLevel="5"
width=1000  height=1000>
</OBJECT>

The debug info:

AxHost.NPP_New: debug level set to 5
The operation completed successfully.
AxHost.CreateControl: failed to create site
AxHost.NPP_New: failed to create the control
AxHost.~AXHost: destroying the control...
NPP_Destroy: destroying the control...


When debugging with VS i found that  the "failed to create site" is due to the return in ControlSite.cpp:
Line 346:
        hr = CoCreateInstance(clsid, NULL, CLSCTX_ALL, IID_IUnknown, (void **) &spObject);

"hr" gets the value "0x80040112 Class is not licensed for use".

Could someone help me? I'm not an expert. As I said in the beginning the csXImage works perfectly in Internet Explorer. 


Leeor Aharon

unread,
Apr 14, 2013, 3:37:24 AM4/14/13
to ff-activex-host
Not an expert on licensed ActiveX objects either, but I'll try.

I'm assuming the LPK file contains the license information, and that the license information needs to be resolved and verified during the loading process (CoCreateInstance). There's a good chance that the issue is lack of licensing support in the plugin which does not provide certain information or callbacks needed for loading the license. It might be as simple as passing the path to the LPK file somehow to the CoCreateInstance call, but I don't really know for sure.

A short google search confirmed my suspicion - http://msdn.microsoft.com/en-us/library/windows/desktop/ms692720(v=vs.85).aspx. A different interface needs to be used for loading licensed controls.

I don't have the ability to fix & test the code (no VS license I can use), but if you're willing to try to do it yourself and send me a patch, I'll introduce it into the code.

Leeor.


--
You received this message because you are subscribed to the Google Groups "ff-activex-host" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ff-activex-ho...@googlegroups.com.
To post to this group, send email to ff-acti...@googlegroups.com.
Visit this group at http://groups.google.com/group/ff-activex-host?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages