PDA

View Full Version : Creating a DLL



NewsArchive
08-28-2007, 02:46 AM
How do i create a DLL that can be called from a non-clarion app?, in this
case its SetupBuilder. I would like to create a function that validates a
serial number before continuing with an installation script.

I would like it to be an .APP file (cause i dont know how to hand code .PRJ
files)

SetupBuilder will pass a varaible to the DLL, and the DLL will pass a
varaible back.

TIA

Tim Morrison

NewsArchive
08-28-2007, 02:47 AM
Tim -

If your DLL is simply doing a calculation, then it's way better to do
a .PRJ IMO. There's an awful lot of bloaty stuff in the generated code
that you probably don't need to be loaded.

You might want to do it as a LOCAL compile so that you don't have to
have all of the dependencies there, too.

I recently had to create such a dll. There really isn't much to it,
except that you need to mind the parameter types that you pass.

What kind of parameter(s) do you need to pass?

Jeff Slarve

NewsArchive
08-28-2007, 02:48 AM
Nope, its more complicated than that. I will use nettalk, and make some
calls to a server that will serify the serial number, then return a result.

Tim Morrison

NewsArchive
08-28-2007, 02:49 AM
Tim,

A) SetupBuilder IS in Clarion (hand coded)

B) why a DLL? just use the 'Run Program' option of SB (see Help on
RUN) and create a stand alone application.
Using the script editor you can call you ow external program. If you
need to make sure that it works only with SB, add parameters to your
call to the external program.

C) there is a Call DLL function within SB, while Friedrich talk only
about using it during uninstall, it should be possible to use it
during install.


Didier G. Le Duc
Francened sarl

NewsArchive
08-28-2007, 02:49 AM
Hi Tim,

There are several DLL source code demos in the SetupBuilder Examples
package:

http://www.lindersoft.com/downloads_licensed.htm

It's located in the \Examples\Files\C6X Src subfolder.

One example demonstrates (external) serial number validation.

Friedrich

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

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

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
08-28-2007, 01:22 PM
I dont see any problem doing it as an .EXE. However, it was suggested that i
would have more control as a .DLL. I didnt understand why, but i went with
it, lol.

Tim Morrison