none
Calling VB6 Wrapper dll

    Question

  • A long time ago I wrote a VB6 dll that is a wrapper to a full set of vendor dlls for an OMS system.

     

    We are rewriting the system to C#.  I instantiate two dlls.  The first one works and the second doesn't.  I can't find the error message for the second one.

     

     

    protected NACMUTIL.SendEmail se;

    Home grown dll

     

    protected NACMCompliance.CheckOrder chkO;

    This dll calls dlls in a vendor package.

     

     

    se = new NACMUTIL.SendEmail();  <---- This Works

     

     

    chkO = new NACMCompliance.CheckOrder();  <--- This Doesn't Work

    I am getting "{"Creating an instance of the COM component with CLSID {7BF57F67-E5E5-4A57-B8B3-21BF7B5B7F32} from the IClassFactory failed due to the following error: 84500001."}"

     

    Any ideas?

    Wednesday, May 14, 2008 5:09 PM

Answers

  • 1. can you CoCreate the instance of CheckOrder from a VB6 app?

    In this way, we can see whether the error is due to .NET COM interop or the COM itself.

     

    2. would you let us know the steps that your generate the RCW if vb6 client works in (1)?

     

    Monday, May 19, 2008 8:42 AM