How can make a FreeBASIC DLL find its own filename and path? I've tried this so far: (ran it with rundll32 filename,DllMain) Code:
#include "windows.bi"
Extern "Windows-MS"
Sub DllMain() Export
dim This as String
This = dir(command$(0))
MessageBox( null, "Hello World", This, MB_OK )
End Sub
End Extern
. . . but it doesn't work.
When I compile it as an EXE though, it works fine.
Any suggestions? Thanks!