This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
vb_6.0_tips [2013/02/09 19:00] 127.0.0.1 external edit |
vb_6.0_tips [2016/08/03 12:54] ko4bb |
||
---|---|---|---|
Line 3: | Line 3: | ||
* **Optimize string handling in VB6** - Part I: http://www.aivosto.com/vbtips/stringopt.html | * **Optimize string handling in VB6** - Part I: http://www.aivosto.com/vbtips/stringopt.html | ||
* **Fixing slow down when moving controls under Windows 7** - right click vb6.exe and click Properties, go under Compatibility and check Disable Desktop Composition. | * **Fixing slow down when moving controls under Windows 7** - right click vb6.exe and click Properties, go under Compatibility and check Disable Desktop Composition. | ||
- | * **Error 0x80004005** trying to register vb6idemousewheeladdin.dll on Win 7: Create a batch file with the regsvr32 command, pointing to wherever the dll is, and execute the batch file as administrator by right-clicking on it from Explorer: ''C:\Windows\System32\RegSvr32.exe "C:\users\xxxxx\downloads\VB6IDEMouseWheelAddin.dll"'' | + | * **Error 0x80004005** trying to register vb6idemousewheeladdin.dll on Win 7: Create a batch file with the regsvr32 command, pointing to wherever the dll is, and execute the batch file as administrator by right-clicking on it from Explorer: \\ |
+ | <code> | ||
+ | ''C:\Windows\System32\RegSvr32.exe "C:\users\xxxxx\downloads\VB6IDEMouseWheelAddin.dll"'' | ||
+ | </code> | ||
* **An Atan2(y, x) function** for Visual Basic 6.0 Pro: | * **An Atan2(y, x) function** for Visual Basic 6.0 Pro: | ||
<code> | <code> | ||
Line 22: | Line 25: | ||
</code> | </code> | ||
* **Automation Error while trying to access the OLE registry** on Windows 7: Open the VB executable at "C:\Program Files (x86)\Microsoft Visual Studio\VB98\VB6.EXE", right click and select Properties. In the Compatibility tab, select Windows XP compatibility mode and "Run this program as an administrator" (path is for 64 bits, but it works for 32 bit Windows 7 as well) | * **Automation Error while trying to access the OLE registry** on Windows 7: Open the VB executable at "C:\Program Files (x86)\Microsoft Visual Studio\VB98\VB6.EXE", right click and select Properties. In the Compatibility tab, select Windows XP compatibility mode and "Run this program as an administrator" (path is for 64 bits, but it works for 32 bit Windows 7 as well) | ||
+ | * **“Object library not registered” when adding Microsoft Rich Textbox Control 6.0 (SP6)** The problem has been resolved by running the following in elevated command prompt: | ||
+ | <code> | ||
+ | cd C:\Windows\System32\ | ||
+ | regtlib msdatsrc.tlb | ||
+ | </code> | ||
+ | This also helped with other older .ocx files, like Graph32.ocx and Threed32.ocx \\ | ||
+ | - Ilya Kurnosov Apr 15 '13 at 14:51 \\ | ||
+ | If there is no regtlib.exe in C:\Windows\System32, use this one C:\Windows\Microsoft.NET\Framework\v4.0.30319\regtlibv12.exe \\ | ||
+ | – Bulletmagnet Apr 17 '14 at 10:04 \\ | ||
+ | |||
+ |