DIID_HTMLDocumentEvents2 ?

anyone know where is this defined in microsoft header files ? my mshtml.h does not contain it
matansAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
AssafLavieConnect With a Mentor Commented:
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
 
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
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
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
 
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
All Courses

From novice to tech pro — start learning today.