on 07-16-2004 2:00 AM
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 ?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gerold,
I just checked and you are right. The RegisterAddon function returns a boolean. If it returns 0 (or any other integer except -1) it does in fact return false , at least in VB6 is does.
Maybe Delphi uses other boolean values? I do not know Delphi at all so I cannot tell.
You can check whether RegisterAddon actually did register the Addon by checking the registry.
The following key should exist after calling RegisterAddon.
HKLM/Software/SAP/SAP Manage/AddOns/YourCompanyName/YourAddonName
HTH Lutz Morrien
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.