Tuesday, July 26, 2011

VB6 Make Exe Menu Disabled

We are noticing that every so often with no reason we can determine the Make Exe menu disables.  The only solution we have been able to find is detailed below.

1.  Right click any toolbar.
2. Click the Toolbars tab.
3. Click Reset.

Thursday, March 10, 2011

Windows Installer Error on Windows 7

I was getting the error with any Microsoft Installer (MSI) that I would try to install, repair, or uninstall "A network error occurred while attempting to read from the file:" on Windows 7.


It was pointing to a J: drive on my machine.  It said that the MSI was being looked for in that path.  I finally created the path it was looking for and put the file there and then it would tell me that the MSI file was invalid or corrupt.


I tried using the upgrade option of my Windows 7 install disk.  At first it told me that I had a more current version of Windows 7 already installed, even though the setup program went out and got the latest setup files before starting to try to install.  I found a DVD with Windows 7 Service Pack 1 and tried again.  It still went to download updated files, but this time it succeeded.  Unfortunately, when I booted windows back up it had not fix Microsoft Installer.


After becoming desperate after several days of research and assuming I was to the point of reformatting and reinstalling Windows and all of my software I decided to hack the registry.  I went through and searched for every reference to j: in the registry and removed almost all of them.  This did not fix the problem.  All it did was cause the installer to not auto fill the path when it gave me the error.


I then found this link with registry keys that Microsoft Installer uses.  http://msdn.microsoft.com/en-us/library/aa367758(v=vs.85).aspx  I deleted all of these keys and tried again.  All of the installers worked after that.

Friday, February 4, 2011

TrueDBGrid Not Clearing Last Row

I have a TrueDBGrid that is bound to an XArray in Visual Basic 6 (VB6).  I was finding that when I would delete all the rows from the XArray and rebind to the TrueDBGrid the grid would still contain the data, even though the XArray did not.  After spending hours trying every property and method of the TrueDBGrid and the XArray I finally stumbled across a way that worked.

I was clearing the array that was previously assigned to the grid and then rebinding the grid, but the grid wasn't updating.

Original Code:

    xaData.Clear
    tdbGrid.ReBind

I found that even though the TrueDBGrid's array property had previously set to the XArray it needed to be set again after the clear and then rebound.

New Code:

    xaData.Clear
    tdbGrid.Array = xaData
    tdbGrid.ReBind