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.GenericS tub.win32I nvoke0(Nat ive Method)
at org.jawin.marshal.GenericS tub.win32I nvoke(Gene ricStub.ja va:152)
at org.jawin.FuncPtr.invoke(F uncPtr.jav a:186)
at org.jawin.FuncPtr.invoke(F uncPtr.jav a:205)
at org.jawin.win32.Ole32.CLSI DFromProgI D(Ole32.ja va:115)
at org.jawin.win32.Ole32.GetF romProgID( Ole32.java :95)
at org.jawin.COMPtr.<init>(CO MPtr.java: 126)
at org.jawin.DispatchPtr.<ini t>(Dispatc hPtr.java: 93)
at com.Dispatches.IStore.<ini t>(IStore. java:41)My code is below.
What I'm doing wrong?
Thanks
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.GenericS
at org.jawin.marshal.GenericS
at org.jawin.FuncPtr.invoke(F
at org.jawin.FuncPtr.invoke(F
at org.jawin.win32.Ole32.CLSI
at org.jawin.win32.Ole32.GetF
at org.jawin.COMPtr.<init>(CO
at org.jawin.DispatchPtr.<ini
at com.Dispatches.IStore.<ini
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);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
:-)
ASKER