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::S hellWindow s));
long nCount = m_spSHWinds->GetCount();
OleUninitialize();
}
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
long nCount = m_spSHWinds->GetCount();
OleUninitialize();
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER