20#import "C:\Program Files\Microsoft Office\Office\MSO9.DLL"
21#import "C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB"
22#import "C:\Program Files\Microsoft Office\Office\Msword9.olb" rename(
"ExitWindows",
"ExitWindowsDOC")
37 HRESULT hRes = ::CoInitialize(NULL);
44 pDOC.CreateInstance(L
"Word.Application");
48 DocumentsPtr pDocments = pDOC->GetDocuments();
49 _DocumentPtr pDocment = pDocments->Add();
63 pDOC.CreateInstance(L
"Word.Application");
67 DocumentsPtr pDocuments = pDOC->GetDocuments();
70 v.SetString(
"c:\\ななな.doc");
71 _DocumentPtr pDocument = pDocuments->Open(&v);
76 pDOC->ActiveDocument->Content->Text =
"aaaaaaaaaaaaaaaa\nbbbbbbbbbbbbbbb";
78 pDocument->Application->Selection->Range->Text =
"TEST";
80 pDocument->Range(&_variant_t((
short)2), &_variant_t((
short)6))->Text =
"TEST";
83 TablePtr pTable = pDOC->ActiveDocument->Tables->Add(pDocument->Range(),5,6);
86 pTable->Cell(2,2)->Range->Text =
"Test Data";
void IgnoreUnusedValue(const T &value)
[宣言] 参照しない値宣言.