DLL's, storing user options, and TOpenDialog
Just for the fun of it, I wrote my first ever Delphi app last week. It's a file uploader (see here) . I admit that it's just a wrapper for pscp.exe and there's lots missing, hence the following questions:
o Is there a more elegant way of calling pscp instead of using CreateProcess?. I would like to be able to use a dll instead and report upload progress through the application UI instead of a popup .exe screen. Any ideas on how this could be done?
o Users can only select multiple files at the moment. I have considered changing the function used here to "SelectDirectory" with a checkbox option to upload recursively. However, the ultimate solution would allow either a directory selection OR a multiple file selection. Is there a graceful way of calling a single dialog which would allow this?
o The app builds a remove path as /home/<username>. The user has the option of changing the path if required. A better plan would allow user options to save a 'default path', a 'pscp.exe location', a 'default hostname' etc and load it in every time the app runs. I intend to store this data on a user-based config file, but can't decide where to put it (assuming user is on WinXP). What's the usual protocol here?
I'll have plenny more naff questions over the next couple weeks
This is me: http://chris.uk.com