Problem for registering DLL RRS feed

  • Question

  • Hello,

     We have an application  to convert proprietary structure into XSD using SOM from .NET framework.

     The problem is that the this application was registering and working successfully  in VC++6.0 environment but is not working anymore since VS2008 environment.

     The existing logic for this export utility that was working in VC6.0 and MSXML4 is that:


    1.       1. Functions related to XSD  writer are present in the .net framework and hence not available to the core of the project modules as they are defined in unmanaged code. So, a wrapper class  was created with member functions, in a manner that they can be used to call functions of xsd writer.  In this wrapper class, several namespaces have been used like :

    using namespace System;

    using namespace System::IO;

    using namespace System::Xml;

    using namespace System::Xml::Schema;

    using namespace System::Runtime::InteropServices;

    using namespace System::Globalization;

       2. The code has been compiled in VC++ .net Environment to generate a dll called ABIWriter.dll.

    3.       3. To call the managed code functions in unmanaged code, ABIWriter.dll has been registered as,  com  ,using command  “regasm /tlb”.

    4.     4.   By importing the dll in source code the functions required to make an XSD writer is called in VC++ environment. For that, #import “mscorlib.tlb” was and #import “abiwriter.tlb” for the wrapper class as tlb file was done in the client application.

    This was working fine in VC++ 6.0, but as the development environment was upgraded to VS 2008, and later 2010, it was impossible to register that DLL, for unknown reasons.

    If anyone dealt with this problem or knows how to come up with a solution for it.

     Thanks in advance!

    the world is mine
    Friday, January 20, 2012 11:08 AM


All replies

  • Hi,


    Since there are some differences between VC++ 6 and Visual Studio 2008. Could you please provide more detail about your issue? For example, is there any error or warning appeared in your project?


    In addition, here are some reference for you about migrating VC++ 6 projects to VC++ 2008:

    ·         How to: Upgrade Projects from Previous Versions of Visual C++

    Migrating from VC6 to VC8: Resources

    Migrating from VC6 to VC9


    Best Regards,



    Rob Pan [MSFT]
    MSDN Community Support | Feedback to us
    • Marked as answer by Rob Pan Tuesday, January 31, 2012 8:39 AM
    Tuesday, January 24, 2012 8:02 AM
  • Is it your own Dll or some third party dll .If it is your's Check out your Dll dependency with dependency walker .Did you tried to debug your code. What is the error you are getting while registering your dll.



    Rupesh Shukla
    Thursday, January 26, 2012 3:48 PM