Solved

DIID_HTMLDocumentEvents2 ?

Posted on 2001-08-17
7
793 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

863 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

18 Experts available now in Live!

Get 1:1 Help Now