Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / DLLs from Perl

Author
Message
Dejunai
18
Years of Service
User Offline
Joined: 19th Jul 2005
Location: Mentally: Manhattan; Physically: LA -doh
Posted: 21st Jul 2005 02:45
Whoa is me...
I am a Perl coder...
I use Perl for a great many things...
I have always relied heavily on Perl's regex functions...
And I was thinking regex could be useful inside DBP...
I own the PerlDevKit, using it to make Perl EXEs...
After a recent upgrade of the Kit,
I am happy to discover I can now compile scripts to DLLs...
So I made a very simple DLL with Perl using the example script,
provided with the DLL compiler.
And to my complete and utter astonishment it doesn't work with DBP...
Ok, ok, so I wasn't remotely surprised...
So I read the help file regarding "Thrid Party",
and it answered a few questions, but failed to help significantly...
It would appear that I cannot add a STRING TABLE...

Does anybody have any help to offer?
Am I being silly?

I have attached the Perl code and the DLL ( as a zip )...
It has one function "Hello"
that returns the string "Hello World"
And the snippet trying to use the DLL is below...



I can't tell you how much I want to use Perl as the
logic engine under my game... So any help would be
greeatly appreciated...

Thanks in Advance,

================
-Dejunai
================
Dejunai
18
Years of Service
User Offline
Joined: 19th Jul 2005
Location: Mentally: Manhattan; Physically: LA -doh
Posted: 21st Jul 2005 13:54
So I am a NoOb... no surprise...
So my posts are taking a long time to post...
No complaints...
Any reason the Source and ZIP weren't attached?
Noobs can't post source code?
Noobs can't post ZIP files?
The site somehow managed to scan my ZIP file
and was opposed to posting a DLL within a ZIP file?
What gives?

================
-Dejunai
================
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 23rd Jul 2005 01:16
Quote: "What gives?"


*Shrug* Dunno.

You can add resource strings to your DLL using reshack or a similar tool, but if it doesn't work using the CALL DLL command, it's not going to work using the full 'third-party' stuff either.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins and source code http://www.matrix1.demon.co.uk
Dejunai
18
Years of Service
User Offline
Joined: 19th Jul 2005
Location: Mentally: Manhattan; Physically: LA -doh
Posted: 29th Jul 2005 20:36 Edited at: 29th Jul 2005 20:38
Just a late follow up...
After some more research on the subject...
I realized that the DLLs created by Perl's DevKit,
are in fact ActiveX DLLs/controls...

And ActiveX controls are obviously not supported by
Dark Basic... ( Sure Would be Nice if they were, eh? )

Not to bump an old topic, but if any other newcomers
have the same problem, at least when they search and
find this topic they'll get a final answer.

I suppose that last silly question is,
anyone know of a tool, utility, or resource
that can convert an ActiveX DLL, to a standard DLL?
( not holding my breath )

================
-Dejunai
================
IanG
19
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 30th Jul 2005 13:12
you could write a wrapper for the active x functions in c++, there was a tutorial round here showing you how to do it but i can't remember the link

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon xp 2600+, 1280mb, GeForce FX 5200 128mb, 200gb, xp pro sp2

Login to post a reply

Server time is: 2024-05-06 04:44:45
Your offset time is: 2024-05-06 04:44:45