Skip to Content
author's profile photo Former Member
Former Member

Add-On-Registration fails

I can't register my add-on application using the SDK 6.5 wth Delphi 6 and Type Libraries.

I get the install path (AddOn Folder) from the first function call and the app file was copied into this folder.

But the registration always fails.

The function calls of RegisterAddOn always returns 0

Is this a known bug/problem in the SBO SDK ?

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 16, 2004 at 10:20 AM

    Hi,

    if a function returns the error code 0, that usually means "no error". You have registered your addon correctly.

    Use the following in order to make it work

    If RegisterAddOn <>0 then

    'Your error handling

    end if

    HTH Lutz Morrien

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 20, 2004 at 11:58 PM

    Hi Lutz,

    Thanks for your reply.

    I'm a little bit confused because the documentation and the samples say the registration is successfull if the returned value is 1.

    If RegisterAddOn = 1 Then

    MsgBox "Add-On Was Registered Successfully"

    Else

    MsgBox "Failed To Register Add-On"

    End If

    The function call in my test app always returns 0 although I called GetInstallPath and the file was copied in the returned folder.

    SBO therefore doesn't start my application.

    I would appreciate any help or ideas.

    I'm using Delphi by the way.

    Thanks.

    Regards,

    Gerold

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi all,

      Finally I managed to register/unregister my add-on!

      I made a stupid mistake:

      I had added the path to the application file when generating the SLD file. But only the filename is obviously required.

      The error message in SBO could be improved, e.g. "file not found".

      The registration process creates a key in the registry and adds a valid (encyrpted) connection string.

      Regards,

      Gerold