Groups > Superbase > Superbase 2 programming > Re: Writing a DLL for Superbase V2.4 Sorted!




Re: Writing a DLL for Superbase V2.4

Re: Writing a DLL for Superbase V2.4
Wed, 25 Jan 2006 07:24:49 -050
When I get "Can't open library," it usually means the .DLL is not in
the path Superbase expects, as in:

  REGISTER "mydll.exe"
vs.
  REGISTER "c:\myapp\mydll.exe"

I suggest you post your code.
What is the SBL code for your .DLL call?
What are the arguments the .DLL requires?

Somebody will probably post a much better answer. But that's my 2 cents' worth.

Peter




On Wed, 25 Jan 2006 05:08:22 -0500, Jim <nospam@tosh.com> wrote:

> Hi,
>
> I need to be able to call a DLL to handle printing a 2 page document (one
> side portrait, the other landscape) from Superbase.
> I have written the DLL in Delphi 7 and a Delphi test harness works fine,
> Superbase however will not load the DLL (Error 165 "Can't Open
Library"). I
> tried defining the routines as CDecl or STDCALL with no effect..
>
> Suggestions anyone?
>
> Regards James.
>
>
>



-- 
Post Reply
Writing a DLL for Superbase V2.4
Wed, 25 Jan 2006 10:08:22 -000
Hi,

I need to be able to call a DLL to handle printing a 2 page document (one
side portrait, the other landscape) from Superbase.
I have written the DLL in Delphi 7 and a Delphi test harness works fine,
Superbase however will not load the DLL (Error 165 "Can't Open
Library"). I
tried defining the routines as CDecl or STDCALL with no effect..

Suggestions anyone?

Regards James.

Post Reply
Re: Writing a DLL for Superbase V2.4
Wed, 25 Jan 2006 13:50:57 +000
Jim wrote:
> Hi,
> 
> I need to be able to call a DLL to handle printing a 2 page document (one
> side portrait, the other landscape) from Superbase.
> I have written the DLL in Delphi 7 and a Delphi test harness works fine,
> Superbase however will not load the DLL (Error 165 "Can't Open
Library"). I
> tried defining the routines as CDecl or STDCALL with no effect..
> 
> Suggestions anyone?

Superbase v2 is not able to call DLLs written for Win32. This capability 
was only added to Superbase with release of the Superbase 3.6i 
maintenance release. You also wouldn't have needed this DLL from 
Superbase 3.6i, since Superbase 3.2 added the ability to prevent the 
printer from closing between print jobs, so you could have printed the 
page, changed the orientation, then printed again I believe (though you 
might want to test it first with the demo).

Post Reply
Re: Writing a DLL for Superbase V2.4 Sorted!
Fri, 27 Jan 2006 12:17:15 -000
Now sorted, As Neil says SB2 could not access Win32 DLLs.
 Dusted off a copy of Delphi 1, rewrote code as a Win16 DLL and got it
working :)

James.



"Jim" <nospam@tosh.com> wrote in message
news:dr7ilr$n48$1@cecsamba.superbase.co.uk...
> Hi,
>
> I need to be able to call a DLL to handle printing a 2 page document (one
> side portrait, the other landscape) from Superbase.
> I have written the DLL in Delphi 7 and a Delphi test harness works fine,
> Superbase however will not load the DLL (Error 165 "Can't Open
Library").
I
> tried defining the routines as CDecl or STDCALL with no effect..
>
> Suggestions anyone?
>
> Regards James.
>
>

Post Reply
about | contact