I’m trying to add a new feature to an application of mine and can’t quite get it right.

I want to be able to click on a button and have one “instance” (I think that’s the term) of Internet Explorer open up, with about half a dozen tabs open within that - each with a different website.

I am able to do it fine with just one URL, but don’t know how to do multiples.
Basically, I do this now ...

ret = spawnl(P_NOWAIT,
ProgramFileName.c_str( ),
ProgramFileName.c_str( ),
Url.c_str( ),
NULL);

where ProgramFileName is “C:\Program Files\Internet Explorer\iexplore.exe”
and Url is one the URL of the websites I wish to have opened in one of the tabs.


Any suggestions ?

Thanks