• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 854
  • Last Modified:

DIID_HTMLDocumentEvents2 ?

anyone know where is this defined in microsoft header files ? my mshtml.h does not contain it
0
matans
Asked:
matans
  • 4
  • 3
1 Solution
 
AssafLavieCommented:
#import shdocvw.dll
it has it.
0
 
matansAuthor Commented:
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
 
AssafLavieCommented:
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
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
AssafLavieCommented:
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
 
matansAuthor Commented:
(It turned out I had to download updates to the sdk, so I doubt that importing would have solved)
0
 
AssafLavieCommented:
It would have.
0
 
matansAuthor Commented:
even if updated header files did not exist yet when this dll was installed ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now