Solved

IShellWindowsPtr strange. (Running out of points. Sorry!)

Posted on 2001-08-26
2
429 Views
Last Modified: 2008-03-10
Why can't i use:
IShellWindowsPtr m_spSHWinds ?
The compiler complains of missing GetCount() but when i list the members in the quick list i can se it there.
Please help.

Sorry about the small amount of points.

Regards
Andla



#include <comdef.h>
#include <exdisp.h>
#include <mshtml.h>

//#import <mshtml.dll> // Internet Explorer 4.0x
#import <mshtml.tlb> // Internet Explorer 5
#import <shdocvw.dll>



void main(void)
{
OleInitialize (NULL);

//IShellWindowsPtr m_spSHWinds;
SHDocVw::IShellWindowsPtr m_spSHWinds;


m_spSHWinds.CreateInstance(__uuidof(SHDocVw::ShellWindows));
long nCount = m_spSHWinds->GetCount();

OleUninitialize();
}
0
Comment
Question by:andla
2 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 5 total points
ID: 6427029
This is often a sign of using an old version of the SDK.  I'd suggest you download the latest SDK from MSDN and make sure your compiler is using those header files first and the linker is linking those libs first.
0
 
LVL 1

Author Comment

by:andla
ID: 6427919
Thanks Jhance!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

758 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