I have written an AddIn for the VB6 IDE, to save and load the bookmarks.
This is done project specific, for each project the bookmarks are save separately (by project name).
When the AddIn is loaded, it will add a menu "Bookmarks" with the items
- Save Bookmarks
- Load Bookmarks
in it.
It uses timers — so on very slow machines it may not work correctly
Attached the code and the dll in a zip file.
For the project these files are required:
MSADDNDR.DLL (Add-In Designer/Instance Control Library)
MSO97RT.DLL (Microsoft Office 8.0 Object Library)
VB6EXT.OLB (Microsoft Visual Basic 6.0 Extensibility)
Re: AddIn to save and load bookmarks in the VB6 IDE
I have Windows 10; i installed "MSADDNDR.DLL" in SysWow64 folder and registered it, i installed "MSO97RT.DLL" in the same folder, while "VB6EXT.OLB" is already present in VB98 folder. In the "add management" menu there is the item: "Load/Save Bookmarks for Visual Basic 6" but there is no new "Bookmarks" menu. And now?
Re: AddIn to save and load bookmarks in the VB6 IDE
the dll in a zip file.
Please remove the dll and re-submit the zip file. Compiled code shouldn't be included, only source code. We've had problems in the past getting burned by malicious code from people.
Re: AddIn to save and load bookmarks in the VB6 IDE
I corrected this way "AddinInstance_OnConnection" (I'm italian and I have Visual Basic 6 in my language) and it works.
Code:
'If MenuBar.Controls.Item(1).Caption = "&File" Then
' Lang = "EN"
'End If
'MenuItemSave = "&Save Bookmarks"
'MenuItemLoad = "&Load Bookmarks"
Select Case Lang
Case "DE"
MenuCaption = "Le&sezeichen"
MenuItemSave = "Lesezeichen &speichern"
MenuItemLoad = "Lesezeichen &laden"
Case "IT"
MenuCaption = "Se&gnalibri"
MenuItemSave = "&Salva segnalibri"
MenuItemLoad = "&Carica segnalibri"
Case Else
MenuCaption = "&BookMarks"
MenuItemSave = "&Save Bookmarks"
MenuItemLoad = "&Load Bookmarks"
End Select
In published version MenuCaption is empty and it would be after "?" in the menu bar.
The "MSADDNDR.DLL" file can also be in the VB98 folder as long as it is registered with regsvr32 (therefore not in SysWow64); while "mso97rt.dll" and "vb6ext.olb" do not need registration and can stay in the VB98 folder.
There are things to fix; e.g. bookmarks are saved but not deleted when they are no longer needed
Last edited by fabel358; Mar 7th, 2023 at 06:59 AM.