Solved

DIID_HTMLDocumentEvents2 ?

Posted on 2001-08-17
7
814 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C++ get user from AD  (VS6) 7 87
How to copy an image file into clipboard C/C++? 1 199
How to gracefully close the c++ 11 thread? 3 109
Outlook 13 45
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…
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…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

808 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