Return more than one variable?

Just starting out? Need help? Post your questions and find answers here.
Intrigued
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Post by Intrigued »

FloHimself wrote:
Intrigued wrote:The other development platform I am using these PB created .dlls for does not allow direct access to memory. What happens is that there is an "Action" (aka. procedure) that calls the .dll...
Just discovered this thread and haven't read all... but sounds to me you
are trying to write something like a *lua extension* with PB?
The Platform Autoplay Media Studio 6 uses LUA as its scripting language and I would like to extend (toes in the water at this point) such platform with .dlls created in PB. (as well as .exes).

What happens is we have an Action (Procedure) that allows for the calling of a .dll. We can get either one string or one long as a return that's into a variable being named of our choosing.

What I want to do is to be able to easily access Window OS activities via PB .dlls and have returned values of all sorts, either strings or say longs and multiples of them.

That's what I was gunning for in the most simplest, convenient way.

I appreciate any input you may have for me regarding this endeavor.

Again, AMS 6 has several hundred Actions based on the LUA scripting engine.

TIA
Intrigued - Registered PureBasic, lifetime updates user
FloHimself
Enthusiast
Enthusiast
Posts: 229
Joined: Wed May 14, 2003 3:38 pm
Location: Lüneburg - Germany

Post by FloHimself »

I am switching my coding box from a desktop to a notebook solution
atm. Because of that, i don't have any PB or Lua related stuff on this
machine, yet.

Did you take a look at the "Indigo Rose Plugin SDK"?
What i can see is that they are using Lua 5.0.2 for scripting, and
the plugins are linking static to the Lua library.

Probably you can just use the PBLua lib. Probably you have to
use the original Lua lib.

I started an include file for the PB4.0 beta for usage with the original Lua
lib (beside an include and example on how to use the NekoVM with haXe in/with
PB). This also should be cross-platform, when someday PB 4.0 reaches all
platforms, and work with the official lua libs. Anyway, its not finished and i
had some trouble with linking.

I haven't installed/used Autoplay Media Studio 6, so i guess i can't help atm.
My favorite numbers: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
Intrigued
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Post by Intrigued »

FloHimself wrote:I am switching my coding box from a desktop to a notebook solution
atm. Because of that, i don't have any PB or Lua related stuff on this
machine, yet.

Did you take a look at the "Indigo Rose Plugin SDK"?
What i can see is that they are using Lua 5.0.2 for scripting, and
the plugins are linking static to the Lua library.

Probably you can just use the PBLua lib. Probably you have to
use the original Lua lib.

I started an include file for the PB4.0 beta for usage with the original Lua
lib (beside an include and example on how to use the NekoVM with haXe in/with
PB). This also should be cross-platform, when someday PB 4.0 reaches all
platforms, and work with the official lua libs. Anyway, its not finished and i
had some trouble with linking.

I haven't installed/used Autoplay Media Studio 6, so i guess i can't help atm.
I have downloaded the AMS SDK, but it was still above my head at the time. I'll have to reinvestigate as time allows. I look forward to your offering down the road.

Thanks for the help FloHimself.

Sincerely,
Intrigued - Registered PureBasic, lifetime updates user
Post Reply