Link to home
Start Free TrialLog in
Avatar of matans
matans

asked on

DIID_HTMLDocumentEvents2 ?

anyone know where is this defined in microsoft header files ? my mshtml.h does not contain it
Avatar of AssafLavie
AssafLavie

#import shdocvw.dll
it has it.
Avatar of matans

ASKER

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)
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).
ASKER CERTIFIED SOLUTION
Avatar of AssafLavie
AssafLavie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of matans

ASKER

(It turned out I had to download updates to the sdk, so I doubt that importing would have solved)
It would have.
Avatar of matans

ASKER

even if updated header files did not exist yet when this dll was installed ?