S
Stefan
Hi,
I cannot make my COM Object external, so I can access it from other
..cpp project files. Here is a bit of the code:
(globals.cpp)
....
#include "globals.h"
#include <oleacc.h>
#include <mshtml.h>
#include <atlbase.h>
....
CComPtr<IHTMLDocument2> spDoc;
(globals.h)
#include <windows.h>
#include <ole2.h>
#include <olectl.h>
#include <oleacc.h>
#include <assert.h>
#include "msctf.h"
....
extern CComPtr<IHTMLDocument2> spDoc;
The problem is with the extern line in globals.h I think, but I don't
know how to fix it. Could someone please help me?
I cannot make my COM Object external, so I can access it from other
..cpp project files. Here is a bit of the code:
(globals.cpp)
....
#include "globals.h"
#include <oleacc.h>
#include <mshtml.h>
#include <atlbase.h>
....
CComPtr<IHTMLDocument2> spDoc;
(globals.h)
#include <windows.h>
#include <ole2.h>
#include <olectl.h>
#include <oleacc.h>
#include <assert.h>
#include "msctf.h"
....
extern CComPtr<IHTMLDocument2> spDoc;
The problem is with the extern line in globals.h I think, but I don't
know how to fix it. Could someone please help me?