jawin - loading stuff

Posted on 2009-02-23
Last Modified: 2012-05-06
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(
        at org.jawin.FuncPtr.invoke(
        at org.jawin.FuncPtr.invoke(
        at org.jawin.win32.Ole32.CLSIDFromProgID(
        at org.jawin.win32.Ole32.GetFromProgID(
        at org.jawin.COMPtr.<init>(
        at org.jawin.DispatchPtr.<init>(
        at com.Dispatches.IStore.<init>( code is below.

What I'm doing wrong?

IStore store = new IStore("e860ef75-1b63-4254-AF47-960DAA3DD337");//This the program IID

store.Open(1, "MY", 1);

Open in new window

Question by:tropocolo
    LVL 86

    Accepted Solution

    Make sure you have the clsid absolutely right
    LVL 92

    Assisted Solution

    have you registered your dll's


    Author Closing Comment

    I register the dll and change the cisid, and it works, very thanks

    Author Comment

    LVL 86

    Expert Comment


    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Conflicting setter definitions for property Exception 5 38
    count8 challlenge 13 69
    changeXy challenge 13 42
    strCopies  challenge 17 60
    Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
    In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
    Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
    Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now