Thanks to various posts and msdn.microsoft.com, I have this gotten to work.
- in Outlook, define the various profiles you want to use, eg "profileA" and "profileB"
- the trick is not to specify a userid/pwd in the program, but only the profile name. In the profile (=outlook...