Code: Select all
Global Text.s = "Nothing was called!"
ProcedureDLL AttachProcess(Instance) ; ProcedureCDLL doesn't work, too.
Text = "AttachProcess was called!"
EndProcedure
ProcedureDLL.s GetText()
ProcedureReturn Text
EndProcedure
Code: Select all
If OpenLibrary(0, "/tmp/bla.so")
Debug PeekS(CallFunction(0, "GetText"))
CloseLibrary(0)
EndIf
Source: http://www.purebasic.fr/english/viewtop ... 33#p485833Fred wrote:AttachProcess() should be called on linux as well, if not it's a bug.