Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2007
    Location
    Melbourne, Australia.
    Posts
    16

    Spurious error message when trying to register DAO350.DLL on Vista

    Hi all:

    I have been in touch with Indigo Rose Tech Support about this issue, but thought it may be helpful for other users that may encounter this problem.

    SUF v7.0.6.1 IS registering the dll OK - but is outputting a SPURIOUS error message, "Failed to register COM (ActiveX) control".

    Background to DAO350.DLL

    The dll, DAO350.DLL, is a database component used by many VB6 applications.
    By the way, Microsoft announced that VB6 is supported on Vista, see: http://msdn2.microsoft.com/en-us/vbasic/ms788708.aspx.
    Furthermore that announcement includes DAO350.DLL on the list "Tested and Not Shipping In Windows Vista".

    Usually DAO350.DLL is installed to %CommonFilesFolder%\Microsoft Shared\DAO.
    I have run some independent tests that confirm that DAO350.DLL can be registered on Vista without any error messages:

    1. When installing the VB6 IDE
    2. Running regsvr32.exe from Vista command prompt (opened using "Run as administrator")

    Just for the record, Vista comes with DAO360.DLL (a successor to DAO350.DLL) pre-installed (and registered), located in %CommonFilesFolder%\Microsoft Shared\DAO). So clearly it is still Microsoft's intention that these DAO files are to be installed to that folder on Vista.

    Different Target Location?

    The error doesn't appear to be related to the choice of target folder. For example, the same error occurs if DAO350.DLL installed to %SystemFolder%. That is - SUF 7.0.6.1 reports an error, but the file in fact is registered.

    Earlier versions of SUF don't have this problem

    An installer created with SUF v7.0.4.0 using the same .sf7 file and source files worked fine on Vista (I have never used any SUF version between v7.0.4.0 and v7.0.6.1).

    Regards,
    Leigh Wardle
    Last edited by Leigh W; 03-05-2007 at 04:09 PM. Reason: addition

  2. #2
    Join Date
    Mar 2008
    Posts
    30
    I just hit this error myself. Is there a workaround?

  3. #3
    Join Date
    Feb 2007
    Location
    Melbourne, Australia.
    Posts
    16
    I call this function....

    Code:
    function g_boolRegister_DAO350DLL()
    
    	strCommonFilesFolder = SessionVar.Expand("%CommonFilesFolder%");
    	strDAOFolder = strCommonFilesFolder .. "\\Microsoft Shared\\DAO" ;
    
    	System.RegisterActiveX(strDAOFolder .. "\\DAO350.DLL");
    
    	--Check to see if an error occurred.
    	error = Application.GetLastError();
    
    	-- If an error occurred, display the error message (skip if Vista).
    	if not g_boolIsVista() then
    		if (error ~= 0) then
    	    	Dialog.Message("Error - RegisterActiveX - DAO350.DLL", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION);
    		end
    	end
    
    end
    Regards,
    Leigh

  4. #4
    Join Date
    Mar 2008
    Posts
    30
    Wow- thanks a lot. I'm a newbie here, can I bother you for the g_boolIsVista() function too?

  5. #5
    Join Date
    Feb 2007
    Location
    Melbourne, Australia.
    Posts
    16
    We all started as newbies once...

    Code:
    function g_boolIsVista()
    
    -- Get the current OS Version information
    tVersionInfo = System.GetOSVersionInfo();
    
    return (String.ToNumber(tVersionInfo.MajorVersion) == 6);
    
    end
    Cheers,
    Leigh

  6. #6
    Join Date
    Mar 2008
    Posts
    30
    Thanks again- looks to be working correctly now.

  7. #7
    Join Date
    Dec 2009
    Posts
    1
    Please advise where to place the Function and how to call it.

    Thanks

Similar Threads

  1. Vista Gold-RTM - confirm functions
    By Eagle in forum Setup Factory 7.0
    Replies: 10
    Last Post: 12-21-2006, 01:08 PM
  2. HOWTO: Register an ActiveX Control
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-27-2002, 02:13 PM
  3. When to register fonts
    By alanK in forum Setup Factory 6.0
    Replies: 2
    Last Post: 07-30-2002, 04:34 PM

Posting Permissions

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