In my app, I have a form that contains two DB fields - email and website, with two associated buttons - Send and Connect, respectively. If there is data in the field, its corresponding button becomes enabled. Clicking on the button reads from an .ini file looking for the values stored in the [Email] or [Browser] sections. If 'None' is found, the user is prompted with a dialog box allowing them to specify the e-mail or browsers of their choice and saves it in the .ini file. Obviously, I'd like to start the e-mail or Internet Browser the user specified in the .ini file AND populate the To: field of the e-mail program with my apps DB email field data and/or populate the URL/Website field of the user's browser with my app's DB website field data. My questions are;
1 Does it make sense for me to use .ini file, since it is a Win95/NT only app. I'm not too familiar with the registry or Win95's equivalent to an ini file.
2 Is there a key in the registry detailing the e-mail and/or Internet browser programs? If so, how do I use it?
3 How to I start (execute) the email or browser program using the values found in the .ini file. For example, when I use the readString method it returns D:\MyApp\MyApp.exe. Since this is a string, I can't figure out how to make WinExec or CreateProcess use this value.
4 Once I figure out how to start the program, how do I populate the fields mentioned above.