PDA

View Full Version : %_SB_ERRORCODE% values



NewsArchive
04-16-2008, 03:31 AM
Hi Friedrich,

I've started getting a DLL function fail with -1 in %_SB_ERRORCODE%
(Only under W98). What sort of thing should I be looking for?

Thanks,

John Newman
Software Partners Australia

NewsArchive
04-16-2008, 03:31 AM
Hi John,

> I've started getting a DLL function fail with -1 in %_SB_ERRORCODE%
> (Only under W98). What sort of thing should I be looking for?

Whatever you would do to find out why the DLL does not work when called from
your Clarion application under Win98. If you call that DLL from your
Clarion DLL on this Win98 machine then it will also fail. I would suggest
to check the dependencies for the DLL.

Does this help?

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
04-17-2008, 01:43 AM
> I would suggest to check the dependencies for the DLL.

The DLL is linked Local, and should have no external dependencies. It only
uses Clarion and FM3 (and removing FM3 removes the symptom<g>). I'm just
looking for ideas.

Thanks for the suggestion, I might see what Capesoft has to say.


John Newman
Software Partners Australia

NewsArchive
04-17-2008, 01:43 AM
Hi John,

>> I would suggest to check the dependencies for the DLL.
>
> The DLL is linked Local, and should have no external dependencies. It only
> uses Clarion and FM3 (and removing FM3 removes the symptom<g>). I'm just
> looking for ideas.
>
> Thanks for the suggestion, I might see what Capesoft has to say.

Sometimes a DLL that makes use of 3rd party products calls into a Visual C++
runtime library. Perhaps that VC++ library is not available on the Win98
machines.

You can check this with the SetupBuilder Static Scan Wizard (I would suggest
to disable the "Filter" option) and see if there is a call to the VC++ from
your DLL.

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
04-17-2008, 01:44 AM
> You can check this with the SetupBuilder Static Scan Wizard (I would suggest
> to disable the "Filter" option) and see if there is a call to the VC++ from
> your DLL.

Mmm, doesn't seem to be, but I don't know what the stuff in WinSxS folder is about...

C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x
-ww_ac3f9c03\COMCTL32.dll
C:\WINDOWS\system32\ADVAPI32.dll
C:\WINDOWS\system32\GDI32.dll
C:\WINDOWS\system32\KERNEL32.dll
C:\WINDOWS\system32\MPR.dll
C:\WINDOWS\system32\OLEAUT32.dll
C:\WINDOWS\system32\RPCRT4.dll
C:\WINDOWS\system32\SHELL32.dll
C:\WINDOWS\system32\SHLWAPI.dll
C:\WINDOWS\system32\USER32.dll
C:\WINDOWS\system32\WINSPOOL.DRV
C:\WINDOWS\system32\comdlg32.dll
C:\WINDOWS\system32\msvcrt.dll
C:\WINDOWS\system32\ntdll.dll
C:\WINDOWS\system32\ole32.dll
D:\bin6\statDLL.dll

Best regards,

John Newman
Software Partners Australia

NewsArchive
04-17-2008, 01:44 AM
msvcrt.dll in your list is the Microsoft Visual C++ Run Time library. That
is not a problem per-se. If your DLL depends on a specific msvcrt.dll build
then the question is whether that library is available on the Win98 machine.

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
04-17-2008, 01:45 AM
By the way, if you are interested, you can send your DLL to support (at)
lindersoft (dot) com and we'll check if it tries to load msvcrt.dll
statically.

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
04-17-2008, 01:45 AM
> By the way, if you are interested, you can send your DLL to support (at)
> lindersoft (dot) com and we'll check if it tries to load msvcrt.dll
> statically.

I'll do that. Thank you!


John Newman
Software Partners Australia