Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

DIID_HTMLDocumentEvents2 ?

Posted on 2001-08-17
7
Medium Priority
?
848 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 4

Accepted Solution

by:
AssafLavie earned 150 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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…

782 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