Your favorite Visual Basic 6.0 tools and tips [closed]
Enable mouse wheel in VB6: Microsoft:enable the mouse scroll wheel
Enable mouse wheel in VB6: Microsoft:enable the mouse scroll wheel
The problem has been resolved by running the following in elevated command prompt: cd C:\Windows\SysWOW64\ regtlib msdatsrc.tlb This also helped with other older .ocx files, like Graph32.ocx and Threed32.ocx
In VB6, you can specify that you want errors to be handled by particular code later in the routine: Sub Bar() On Error Goto MyHandler … …some code that throws an error… … Exit Sub MyHandler: …some error handler code (maybe pops up a dialog) End Sub It may be the case, however, that the … Read more
You can try setting the compatibility of your VB6 project. It is clearly explained here: http://www.techrepublic.com/article/demystifying-version-compatibility-settings-in-visual-basic/ Maybe the change in the associated GUID causes the pdb mismatch.
Try &HABCD, that’s how it works for most BASIC languages.
VB is a full-fledged programming language which can be used to create compiled applications, while VBScript is a sub-set of VB and is a scripting language that can be used to run a set of commands, similar to an old-school DOS batch file. Generally, a scripting language can not be used to create a full-fledged … Read more
Not that I know of. However, if you look at the toolbar when you have a code editor window open, there is a section that tells you the current line and column number the cursor is on: Another possibility is to write an add-in for the IDE that can quickly highlight a range of lines. … Read more
After hours of effort, system restore, register, unregister cycles and a night’s sleep I have managed to pinpoint the problem. It turns out that the project file contains the below line: Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0; MSCOMCTL.OCX The version information “2.0” it seems was the reason of not loading. Changing it to “2.1” in notepad solved the problem: Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.1#0; … Read more
For the final, compiled code of your application, the short answer is “no”. Different tools are able to extract different information from the code (e.g. the forms setups) and there are P code decompilers (see Edgar’s excellent link for such tools). However, up to this day, there is no decompiler for native code. I’m not … Read more
Function returns value, Sub doesn’t. It’s that simple.