Thanks for your help Dare2. Perhaps if I post some screenshots of my project I'll linger some people in.
(One small one and a few links to others.)
http://curvedbasic.dbspot.com/water.bmp
http://curvedbasic.dbspot.com/Tidus.JPG
As you can see this project is really developing for me, and it's important I have an easy to use GUI if I plan on commercial success (Or even a good freeware tool). Must find definite anwser.
-------------------------------------
Alright, here's the source I'm currently working on.(Message requester was too boring.

)
As far as my understanding, this code should be legal. This is because I'm not just wrapping one command for my use, for I'm using a bunch of commands to determine which file requester to open, and what data to return. Am I correct in my thinking, or totally wrong?
(These are the kinds of functions I want to use in my dll. I recommend you run it and play with the flags at the bottom first.

)
Code: Select all
;Flag 1 is the Save File Requester. By using this you can specify where to save a file.
;Flag 2 is the Open File Requester. By using this you can specify which file to open.
;If Retrieve is set to 1, then data will be returned through the message requester.
;Any other value for Retrieve and no data will be returned.
ProcedureDLL FileRequester(Title$,Text$,Pattern$,PatternPosition,Flag,Retrieve)
If Flag=1
Filename$=SaveFileRequester(Title$, DefaultFile$, Pattern$, PatternPosition)
If Retrieve=1
Path$ = GetPathPart(Filename$)
Extension$ = GetFilePart(Filename$)
Size = FileSize(FileName$)
MessageRequester("Retrieved Data","Filepath: "+Path$+""+Extension$+" "+"File Size: "+Str(Size) )
EndIf
EndIf
If Retrieve=2
Filename$=OpenFileRequester(Title$, DefaultFile$, Pattern$, PatternPosition)
If Flag2=1
Path$ = GetPathPart(Filename$)
Extension$ = GetFilePart(Filename$)
Size = FileSize(FileName$)
MessageRequester("Retrieved Data","Filepath: "+Path$+""+Extension$+" "+"File Size: "+Str(Size) )
EndIf
EndIf
EndProcedure
FileRequester("Title","hello","Text file | *.txt | Image Formats | *.bmp;*.jpg",1,1,1)