View Full Version : Calling DLL at runtime
NewsArchive
10-28-2008, 02:36 AM
Ok, I just built my first DLL to be called at runtime.
It worked first time and in general it was incredibly easy using the example
SB6 file.
Question about how to compile DLL:
My DLL is a simple Clarion DLL. No parameters and ir returns a long. It
wimply reads a registry entry and unscrambles it to check if the maintenance
plan is valid so that updating can continue.
I have compiled it "Local" and "DLL".
I want to verify that my settings are correct given that the DLL will be
extracted to a temporary folder at install time and probably won't have
access to any Clarion runtime. DLL's.
Mike
NewsArchive
10-28-2008, 02:37 AM
I usually remove clarion6 from the path before doing this sort of testing.
Or test it on a machine with no clarion on it if there is such a thing in
your house:)
--
Mark Riffey
http://www.rescuemarketing.com/blog/
Guy Kawasaki & the Wall Street
Journal staff read it, maybe you should too.
NewsArchive
10-28-2008, 02:37 AM
Mike,
> It worked first time and in general it was incredibly easy using the
> example SB6 file.
>
> Question about how to compile DLL:
>
> My DLL is a simple Clarion DLL. No parameters and ir returns a long. It
> wimply reads a registry entry and unscrambles it to check if the
> maintenance plan is valid so that updating can continue.
>
> I have compiled it "Local" and "DLL".
>
> I want to verify that my settings are correct given that the DLL will be
> extracted to a temporary folder at install time and probably won't have
> access to any Clarion runtime. DLL's.
Compiled as "Local" (Run-Time Library) and "DLL" (Target Type) is correct.
Friedrich
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder
Create Windows Vista ready installations in minutes
-- Official Comodo Code Signing and SSL Certificate Partner
NewsArchive
10-29-2008, 07:36 AM
Thanks for verifying.
MDB
NewsArchive
10-31-2008, 02:59 AM
> Or test it on a machine with no clarion on it if there is such a thing in
> your house:)
VM for the win.....
--
Geoff (Capesoft)
www.capesoft.com
NewsArchive
10-31-2008, 03:00 AM
> VM for the win.....
Thats what I do, but Im not aware that Mike has vmware.
--
Mark Riffey
http://www.rescuemarketing.com/blog/
Guy Kawasaki & the Wall Street
Journal staff read it, maybe you should too.
NewsArchive
10-31-2008, 03:00 AM
I do also... but just for what I'm testing.
I open a command prompt,
type PATH=.
then run the app I'm testing from that prompt.
The period in the path statement tells that window not do search outside
that folder.
Jane
NewsArchive
10-31-2008, 03:14 AM
> I do also... but just for what I'm testing.
> I open a command prompt,
> type PATH=.
> then run the app I'm testing from that prompt.
> The period in the path statement tells that window not do search outside
> that folder.
I do that when Im in a hurry and not on the VMWare box:)
--
Mark Riffey
http://www.rescuemarketing.com/blog/
Guy Kawasaki & the Wall Street
Journal staff read it, maybe you should too.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.