Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2001-08-26
2
Medium Priority
?
505 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 20 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
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…
Suggested Courses

596 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