CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    13

    Seriously Desperate. Registering a DLL via VB

    My app, put together with VB5 SetupWiz, has to register a third-party DLL. It installs OK but doesn't register the dll, even though the setup.lst line contains $(DLLSelfRegister). The dll is supposed to be self registering and MS tell me it should have an Export Table when looked at in Quick View (it hasn't). Is there a quick way for my app to register dlls, or do I have to modify setup1.frm with CreateRegKey etc.

    Voice Recognition, Microphones, and Text-To-Speech.
    Products, Support, and International Sales.

  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: Seriously Desperate. Registering a DLL via VB

    Hi,
    If the dll is a ActiveX component(dll) then you can use regsvr32. something like:
    shell("regsvr32 YourDLL.dll") . You can find regsvr32 program somewhere.( VB/VC CDs or MSDN)
    This is what the setup program is also supposed to be doing, anyway!!

    Another way to do it: Put all the info, as to where it is supposed to go, in a INI file and use regini INIFILENAME.ini to load all of it in one go into the registry. This ini file should follow a perticular style. This method is followed usually to install (device) Drivers. For general usage(activex exe/dlls) this procedure is quite combursome, as it involves editing/updating under quite-a-few registry keys. Advice: This is **** powerful method, and you could end up with inconsistencies in the registry entries

    If no export table is found, it is probably not a activex dll. in which case you dont need to register at all. Could you check?

    Ravi


  3. #3
    Join Date
    May 1999
    Posts
    1

    Re: Seriously Desperate. Registering a DLL via VB

    I agree with using RegSvr32 but only use the latest version. There are various versions of the RegSvr32.exe (primarily located at the Visual Studio folder). Do a find at the file system.

    In addition, write a batch file to run at the end of the installation.

    Hope this helps.


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