1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Problem using Type Library in vc++

Discussion in 'C++' started by AhmerParkar, Mar 17, 2009.

  1. AhmerParkar

    AhmerParkar New Member

    Joined:
    Mar 17, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I am using redemption type library in VC++ (VS6) Application.
    its working amazing on my PC.
    but when i run the exe on some other machine it gives me error.
    As REGDB_E_CLASSNOTREG thought redemption is registered over there.
    and the program crash

    but when i compile my code on the other machine it works very well.
    And the exe created on that machine does not work on my machine.
    (I do have redemption registered)

    i.e in order to run exe i need to compile code on that machine only...

    i m using Redemption 4.7

    I do registered the dll properly and got the Success Message as well
    but the problem is very weird.

    suppose there are two PCs 'A' and 'B'.
    when i compile code on PC 'A' it works very well on PC 'A'
    but this compiled EXE on PC 'A' donot work on BC 'B'

    And when I compile code on PC 'B' it works very well on it...
    but doesn't work on PC 'A'.....

    that means I need to compile the code on every machine i intend to run my exe(practically impossible)

    THE PROBLEM IS THAT
    I could not create redemption session on other machine.
    I am using VC++ (VS6)

    this is the piece of code

    // Declaration
    COleException e;
    COleVariant covOptional((long) DISP_E_PARAMNOTFOUND, VT_ERROR);

    // SESSION DECLARATION
    IRDOSession rSession;

    //function to create session.
    rSession.CreateDispatch("Redemption.RDOSession", &e);

    // And here i get Error
    // REGDB_E_CLASSNOTREG
    // only if exe not compiled on the same machine
    // else it works very well

    any help would be appreciated.
    plz suggest where I m going wrong.
    or am i using the correct interface or not??
     

Share This Page