Tool Bar-IE

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,
I am making a COM comonent and i am using WebBrowser class
methods, the project contains a reference to the Microsoft Internet Controls
COM components that are defined in the ShDocVW.dll file.(using namespace
Interop::SHDocVw)

Basically i am making use of the sample given at
http://support.microsoft.com/kb/821793#appliesto


I added a reference to this dll by following the below steps.

1. In Solution Explorer, right-click the project node, and then click Add
Reference.
2. In the Add Reference dialog box, click the COM tab.
3. In the list of COM components, click Microsoft Internet Controls, and
then click Select.
4. Click OK to close the Add Reference dialog box.


But still i am getting the error

error C2653: 'Interop' : is not a class or namespace name


in Visual c++ 2005.

Can anyone let me know how can i fix this?

Thanks,
Senthil
 
Senthil said:
Hi All,
I am making a COM comonent and i am using WebBrowser class
methods, the project contains a reference to the Microsoft Internet
Controls
COM components that are defined in the ShDocVW.dll file.(using namespace
Interop::SHDocVw)

Basically i am making use of the sample given at
http://support.microsoft.com/kb/821793#appliesto


I added a reference to this dll by following the below steps.

1. In Solution Explorer, right-click the project node, and then click Add
Reference.
2. In the Add Reference dialog box, click the COM tab.
3. In the list of COM components, click Microsoft Internet Controls, and
then click Select.
4. Click OK to close the Add Reference dialog box.


But still i am getting the error

error C2653: 'Interop' : is not a class or namespace name

Looks to me like the interop namespace is just ::SHDocVw, not
::Interop::SHDocVw

You can use .NET Reflector to inspect the interop assembly.
 
Back
Top