Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / April 2007

Tip: Looking for answers? Try searching our database.

Tool Bar-IE

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Senthil - 03 Apr 2007 19:02 GMT
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
Ben Voigt - 05 Apr 2007 19:22 GMT
> Hi All,
>          I am making a COM comonent and i am using WebBrowser class
[quoted text clipped - 18 lines]
>
> 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.

> in Visual c++ 2005.
>
> Can anyone let me know how can i fix this?
>
> Thanks,
> Senthil

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.