CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2011
    Posts
    9

    Registering Win32 COM DLL gives Error

    I have created a C++ Win32 Dll.
    I have created a .def File which contains the names of the functions in Win32.Dll
    As: 1Win32.cpp includes a class library file named gs.tlb
    It has functions named sum, strupper

    1win32.def as
    LIBRARY "1WIN32"

    EXPORTS
    sum
    strupper

    When i try to register the DLL i am getting error
    The module 1Win32.dll loaded but the entry-point DllRegisterServer was not found.

    How to register the dll to be used at different places/environments ?
    I am using COM components.

    Help would be really appreciated.

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: Registering Win32 COM DLL gives Error

    That's something wrong in your explanation. COM dll indeed requires for registration. But COM dll does not export anything but standard entries required by COM specification, i.e. DllRegisterServer, etc.

    On the other hand, regular dll can export any function entries. But such regular dll does not require any registration. To be successfully found by dll clients it should be placed either next to client's binary or somewhere in PATH.
    Last edited by Igor Vartanov; March 8th, 2011 at 12:20 PM.
    Best regards,
    Igor

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured