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

tropocoloAsked:
Who is Participating?
 
CEHJConnect With a Mentor Commented:
Make sure you have the clsid absolutely right
0
 
objectsConnect With a Mentor Commented:
have you registered your dll's

0
 
tropocoloAuthor Commented:
I register the dll and change the cisid, and it works, very thanks
0
 
tropocoloAuthor Commented:
Thanks
0
 
CEHJCommented:
:-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.