Link to home
Start Free TrialLog in
Avatar of tropocolo
tropocolo

asked on

jawin - loading stuff

I'm trying to use jawin to acces a CAPICOM and store a certificate in Windows store.
I have generated CAPICOM code with jawinTypeBrowser and when I try to initialice the CAPICOM Store, I get this error
org.jawin.COMException: 800401f3:  Invalid class string
        at org.jawin.marshal.GenericStub.win32Invoke0(Native Method)
        at org.jawin.marshal.GenericStub.win32Invoke(GenericStub.java:152)
        at org.jawin.FuncPtr.invoke(FuncPtr.java:186)
        at org.jawin.FuncPtr.invoke(FuncPtr.java:205)
        at org.jawin.win32.Ole32.CLSIDFromProgID(Ole32.java:115)
        at org.jawin.win32.Ole32.GetFromProgID(Ole32.java:95)
        at org.jawin.COMPtr.<init>(COMPtr.java:126)
        at org.jawin.DispatchPtr.<init>(DispatchPtr.java:93)
        at com.Dispatches.IStore.<init>(IStore.java:41)My code is below.

What I'm doing wrong?
Thanks
Ole32.CoInitialize();
IStore store = new IStore("e860ef75-1b63-4254-AF47-960DAA3DD337");//This the program IID
store.Open(1, "MY", 1);

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tropocolo
tropocolo

ASKER

I register the dll and change the cisid, and it works, very thanks
Thanks
:-)