Results 1 to 6 of 6

Thread: AddIn to save and load bookmarks in the VB6 IDE

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2023
    Posts
    32

    AddIn to save and load bookmarks in the VB6 IDE

    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)


    -attachment removed-
    Last edited by dday9; Mar 2nd, 2023 at 04:55 PM.

  2. #2
    Addicted Member
    Join Date
    Nov 2016
    Location
    GB
    Posts
    144

    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?

  3. #3
    Smooth Moperator techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,538

    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.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4
    Hyperactive Member
    Join Date
    Jun 2016
    Location
    España
    Posts
    508

    Re: AddIn to save and load bookmarks in the VB6 IDE

    The menu does not appear for me

  5. #5
    Addicted Member
    Join Date
    Nov 2016
    Location
    GB
    Posts
    144

    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
    Attached Files Attached Files
    Last edited by fabel358; Mar 7th, 2023 at 06:59 AM.

  6. #6

    Thread Starter
    Member
    Join Date
    Feb 2023
    Posts
    32

    Re: AddIn to save and load bookmarks in the VB6 IDE

    Here is the current version, incl source and dll
    Bookmarks.zip

Posting Permissions

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



Click Here to Expand Forum to Full Width