Originally published by Roger Rines on PowerBASIC users forum.
Link: http://powerbasic.com/support/pbforums/ ... adestation
Extending PowerLanguage with a DLL
Extending PowerLanguage with a DLL
- 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 351 times
Last edited by geizer on 27 Feb 2010, edited 1 time in total.
- TJ
- Posts: 7744
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
-
- Posts: 407
- Joined: 01 Jan 2008
- Been thanked: 3 times
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 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.Janus inspired me to look at various flavours of Basic's by posting his DLL example recently.
Thanks a lot
Pavel
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 ?
.......
ElementValue = ArrayElementValue( &MyTestArray[Num], 0, elStartAddr, elArraySize);
PRINT("ArrayElementValue=", &MyTestArray[Num],
............
could anyone help ?
- TJ
- Posts: 7744
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
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.
Thanks TJ,
I did as told but was not successful... see my screen shot.
I did as told but was not successful... see my screen shot.
- Attachments
-
- error in compiling.png
- (197.45 KiB) Downloaded 1246 times
- TJ
- Posts: 7744
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times