Hi, all:
I have found that there exists a sample code for VC++ (page 2-16) on training
slides named “Tamino DOM API for ActiveX”. I write down the same code and try
to compile it in VC++ 6.0, however, it is failed. The main problem seems to
the compiler cannot parse the following code
CComPtr<_DTaminoX>taminoX;
Could you give me some idea ?
Thank you very much
SCW
Part of the sample code is as following:
//-----------------------------
#include “atlbase.h”
#import “TaminoX.ocx”
#import “msxml3.dll”
using namespace MSXML2;
long rc,number=0;
VARIANT message;
IXMLDOMDocumentPtr doc;
IXMLDOMNodeListPtr nodeList;
IXMLDOMNodePtr item,node1,node2;
void read()
{
HRESULT hr=CoInitialize(0);
try{
CComPtr<_DTaminoX>taminoX;
HRESULT hr=taminoX.CoCreateInstance(_uuidof(TaminoX));
} catch (_com_error e) { (void) fprintf(stderr,“com_error exception: %s\n”, e.ErrorMessage());}
}
//--------------------------------