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
Solved

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

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
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…
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 use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

840 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