I've got a similar question as luis had about 10 years ago.
PB 5.72 LTS still raises the same compiler warning in this context.
I would like to create a DLL with PB 5.72 that contains a procedure with a linked list as parameter. The main EXE program (also compiled with PB 5.72) should call the procedure in the DLL, that procedure should create elements in the linked list and populate them. Then the main program should read the contens of the linked list.
Something that essentially works like this:
Code: Select all
; PB 5.72 LTS
; ----------------------------------------------
;-- DLL
ProcedureDLL Foo (List myList$())
ClearList(myList$())
AddElement(myList$()) : myList$() = "one"
AddElement(myList$()) : myList$() = "two"
AddElement(myList$()) : myList$() = "three"
EndProcedure
; ----------------------------------------------
; ----------------------------------------------
;-- Main program
NewList bar$()
Foo(bar$())
ForEach bar$()
Debug bar$()
Next
; ----------------------------------------------
Is that possible?
What does the compiler warning
List, Array and Map parameters can cause issue when exported with ProcedureDLL
exactly mean?
luis wrote:If Fred / freak can clarify this beyond any doubt would be nice...
Yes, please.