Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

3 cool questions - could you help?

Status
Not open for further replies.

Robertus

Programmer
Feb 16, 2001
81
RO
Hi there, I really need to know these:

1.-How do I find out from Vc++ if IE is installed on a system, and if it is then how could I find out wich version is installed?

2.-How do I load a string into a VARIANT variable???

3.-In a MFC dialog-based app, how do I remove the border arround a Webbrowser ActiveX Control so that it looks flat and how could I determine the vertical scroll dispappear and appear only when the contents of the page need more space, need scroll?


Thanks anyway! (Maybe you won't answer me but I hope you do...)
 
Robertus,

As for your first question one possibility (there may be other ways of doing it) could be to lookup Windows Registry. If IE is installed then there will be a key ==>

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer
(Note: This path is for Windows 2000 server version, you may want to double check the path for other window versions)

present in the registry, if this key doesnot exist then IE is not present. As for the version number the Above mentioned key will have all the IE information in it. You may explore this key and find out the version, and all other related configuration information pertaining to IE.

As for your other two questions, Sorry i am not an ActiveX guy, i prefer Java platform :)

cheers,
Kashif When the going gets tough; the tough gets going; and the toughest of all sleeps zzzZZZ
 


COleVariant aVar;
CString str;
str.Format( "%s", aVar.bstrVal);

Thierry

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top