Extending PowerLanguage with a DLL

Studies that have been contributed to the community by other users. If you’ve got something useful to share, that’s great!
User avatar
geizer
Posts: 375
Joined: 16 Jun 2008
Has thanked: 40 times
Been thanked: 38 times

Extending PowerLanguage with a DLL

Postby geizer » 26 Feb 2010

Attachments
PB-Bones.zip
How to create PowerBASIC DLLs for Easy Language. Documentation and examples. Restore directory structure when unzipping. Freeware by Roger D. Rines.
(90.01 KiB) Downloaded 193 times
Last edited by geizer on 27 Feb 2010, edited 1 time in total.

User avatar
TJ
Posts: 6518
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 957 times
Been thanked: 1883 times

Postby TJ » 26 Feb 2010

thanks !
good find.

brodnicki steven
Posts: 407
Joined: 01 Jan 2008
Been thanked: 3 times

Postby brodnicki steven » 26 Feb 2010

I've used PowerBasic for years, it's VERY fast (they claim as fast as "C") and works great with MC or TS.

User avatar
geizer
Posts: 375
Joined: 16 Jun 2008
Has thanked: 40 times
Been thanked: 38 times

Postby geizer » 27 Feb 2010

When (very long time ago) I was learning programming I wrote a code in x86 Assembler and TurboBASIC by Borland ... a great compiler at that time... and, what a surprise! it's still alive and now called PowerBASIC - still being developed by it's original creator.

Janus inspired me to look at various flavours of Basic's by posting his DLL example recently.
Thanks a lot


--
Pavel

janus
Posts: 747
Joined: 25 May 2009
Has thanked: 41 times
Been thanked: 82 times

Postby janus » 27 Feb 2010

Janus inspired me to look at various flavours of Basic's by posting his DLL example recently.
Thanks a lot
Pavel


You are welcome - glad to be of help. It's worth nothing I've gone well beyond just using DLL's. I now have a small DLL stub to act as a gateway to other applications to perform parallel operations, order overrides, and windows gui charts of my own. It's not so much which language one should use - they all have the good and bad points. I leave that up to the individual as there are other factors at play, such as past experiences and the task to be performed. The main point is once you use and understand the DLL approach, there's a lot more you can do.

LMC
Posts: 28
Joined: 08 Jul 2010

Postby LMC » 12 Jul 2010

I tried to compile the ELA codes into PowerLanguage but was not successful because PL editor did not recognize '&'s in the following lines of code,
.......
ElementValue = ArrayElementValue( &MyTestArray[Num], 0, elStartAddr, elArraySize);
PRINT("ArrayElementValue=", &MyTestArray[Num],
............

could anyone help ?

User avatar
TJ
Posts: 6518
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 957 times
Been thanked: 1883 times

Postby TJ » 13 Jul 2010

I tried to compile the ELA codes into PowerLanguage but was not successful because PL editor did not recognize '&'s in the following lines of code,
.......
ElementValue = ArrayElementValue( &MyTestArray[Num], 0, elStartAddr, elArraySize);
PRINT("ArrayElementValue=", &MyTestArray[Num],
............

could anyone help ?



change &MyTestArray to _MyTestArray.

LMC
Posts: 28
Joined: 08 Jul 2010

Postby LMC » 13 Jul 2010

Thanks TJ,
I did as told but was not successful... see my screen shot.
Attachments
error in compiling.png
error in compiling.png (197.45 KiB) Viewed 407 times

User avatar
TJ
Posts: 6518
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 957 times
Been thanked: 1883 times

Postby TJ » 13 Jul 2010

did you change all instances of the array, including the declaration?

Nick
Posts: 490
Joined: 04 Aug 2006
Has thanked: 4 times
Been thanked: 24 times

Re: Extending PowerLanguage with a DLL

Postby Nick » 06 Aug 2010

Great find! Thanks.


Return to “User Contributed Studies and Indicator Library”