Solved

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

Posted on 2001-08-26
2
445 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

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
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.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

895 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

13 Experts available now in Live!

Get 1:1 Help Now