@zenassem - Sent you an email.
@Da-Rhyno - Attached is an updated and fully working dll.
Commands so far:
String = W32 FSEL()
String = W32 GETCURRENTDIRECTORY()
W32 SETCURRENTDIRECTORY dir$
String = W32 GETRELATIVEFILENAME(currdir$,absfile$)
int result = W32 MESSAGEBOX(message$,title$,type)
Here's some information for using the "W32 MESSAGEBOX()" function:
MB_ABORTRETRYIGNORE 0x00000002L
MB_CANCELTRYCONTINUE 0x00000006L
MB_HELP 0x00004000L
MB_OK 0x00000000L
MB_OKCANCEL 0x00000001L
MB_RETRYCANCEL 0x00000005L
MB_YESNO 0x00000004L
MB_YESNOCANCEL 0x00000003L
MB_ICONEXCLAMATION 0x00000030L
MB_ICONWARNING 0x00000030L
MB_ICONINFORMATION 0x00000040L
MB_ICONASTERISK 0x00000040L
MB_ICONQUESTION 0x00000020L
MB_ICONSTOP 0x00000010L
MB_ICONERROR 0x00000010L
MB_ICONHAND 0x00000010L
Return code/value Description
IDABORT 3 The Abort button was selected.
IDCANCEL 2 The Cancel button was selected.
IDCONTINUE 11 The Continue button was selected.
IDIGNORE 5 The Ignore button was selected.
IDNO 7 The No button was selected.
IDOK 1 The OK button was selected.
IDRETRY 4 The Retry button was selected.
IDTRYAGAIN 10 The Try Again button was selected.
IDYES 6 The Yes button was selected
Also, I tested it out with this very simple piece of code:
c$ = w32 getcurrentdirectory()
` program will pause while the file selector is active as its modal
f$ = w32 fsel()
print f$
print c$
r$ = w32 getrelativefilename(c$,f$)
print r$
` program will pause while the message box is active as it is modal also
ret=w32 messagebox("Relative paths work great as well as the file selector...","All done",0)
print ret
wait key
Hope it helps!!!
EDIT: Looking into creating an input box similar to the message box that will return a string for DBP to use...
Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!