Link to home
Start Free TrialLog in
Avatar of andla
andla

asked on

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

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();
}
ASKER CERTIFIED SOLUTION
Avatar of jhance
jhance

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of andla
andla

ASKER

Thanks Jhance!