Solved

DIID_HTMLDocumentEvents2 ?

Posted on 2001-08-17
7
782 Views
Last Modified: 2008-03-17
anyone know where is this defined in microsoft header files ? my mshtml.h does not contain it
0
Comment
Question by:matans
  • 4
  • 3
7 Comments
 
LVL 4

Expert Comment

by:AssafLavie
ID: 6398930
#import shdocvw.dll
it has it.
0
 

Author Comment

by:matans
ID: 6400231
Assaf,

I added #import <shdocvw.dll>
I'm afraid it didn't solve the problem. The symptoms are exactly the same!
(error C2065: 'DIID_HTMLDocumentEvents2' : undeclared identifier MfcObjMdl.cpp)
0
 
LVL 4

Expert Comment

by:AssafLavie
ID: 6401418
add 'named_guids no_namespace' to the import line

#import "shdocvw.dll" named_guids no_namespace

The problem is that by default the #import operation doesn't create the appropriate constans (DIID_...s) for you (since you can use __uuidof).
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 4

Accepted Solution

by:
AssafLavie earned 50 total points
ID: 6401424
The no_namespace keyword tells the #import operation not to create the imported symbols inside a namespace (which makes it easier to use them usually).
You can read about these argument and #import in MSDN.
0
 

Author Comment

by:matans
ID: 6402917
(It turned out I had to download updates to the sdk, so I doubt that importing would have solved)
0
 
LVL 4

Expert Comment

by:AssafLavie
ID: 6402920
It would have.
0
 

Author Comment

by:matans
ID: 6402938
even if updated header files did not exist yet when this dll was installed ?
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now