Since Command(0) does not return the dynamic lib name "libMyPlugin.so" or "MyPlugin.dll" ?
I'm sure years ago (V ~0.15)
fbc -dll MyPlugin.bas
command(0) returned the name of the library.
(or it was only a dream)
Joshy
No Command(0) for dynamic lib ?
-
- Posts: 8586
- Joined: May 28, 2005 3:28
- Contact:
Re: No Command(0) for dynamic lib ?
@Joshy
I, personally, don't go back longer than Ver. 0.24.0 but:
Since 'blanks' are used as 'separators', on command line, AFAIK.
I, personally, don't go back longer than Ver. 0.24.0 but:
command(0) = "fbc(.exe)", command(1) = "-dll", command(2) = "MyPlugin.bas" ... etc. ???D.J.Peters wrote:fbc -dll MyPlugin.bas
Since 'blanks' are used as 'separators', on command line, AFAIK.
-
- Posts: 8586
- Joined: May 28, 2005 3:28
- Contact:
Re: No Command(0) for dynamic lib ?
If stuff was build as dynamic lib *.dll or *.so not static *.a
command(0) returned inside the library "thename.dll" or "libthename.so"
but again may be it was only in my world :-)
Joshy
command(0) returned inside the library "thename.dll" or "libthename.so"
but again may be it was only in my world :-)
Joshy
Re: No Command(0) for dynamic lib ?
With fbc version 0.15, Command(0) from a dll returns an empty string.
Compiled with fbc 0.15:
Code: Select all
' mylib.bas
Function Command0 () As String Export
Return "'" & Command(0) & "'"
End Function
Code: Select all
' mytest.bas
#inclib "mylib"
Declare Function Command0() As String
Print Command0()
Sleep
Code: Select all
''
Re: No Command(0) for dynamic lib ?
Hi Joshy,
and provide a function for the answer.
Adi
if you just want the DLL to tell you her name, I would try somewhere in the codeD.J.Peters wrote:If [...] command(0) returned "thename.dll" or "libthename.so"
Code: Select all
VAR myName=__FILE__
Adi