├── Debug
├── msado15.tlh
├── msado15.tli
├── vc141.idb
├── vc141.pdb
├── 中间代码优化.obj
├── 中间代码翻译器(Lr0).obj
├── 中间代码翻译器.obj
├── 目标代码生成.obj
├── 符号表.obj
├── 词法分析.obj
├── 语法分析(LL1).obj
├── 语法分析器.exe
├── 语法分析器.ilk
├── 语法分析器.log
├── 语法分析器.pdb
├── 语法分析器.tlog
│ ├── CL.command.1.tlog
│ ├── CL.read.1.tlog
│ ├── CL.write.1.tlog
│ ├── link.command.1.tlog
│ ├── link.read.1.tlog
│ ├── link.write.1.tlog
│ └── 语法分析器.lastbuildstate
└── 调试.obj
├── README.md
├── action.dat
├── analysistable.accdb
├── analysistable.dat
├── end.dat
├── fourelem.dat
├── fourelement.dat
├── func.dat
├── grammar.txt
├── main(void)
├── optimize.dat
├── symboltable.dat
├── target.asm
├── text.cpp
├── vall.dat
├── wordsequence.dat
├── 中间代码优化.cpp
├── 中间代码翻译器.cpp
├── 完成版文法.docx
├── 文法数据统计.xlsx
├── 标头.h
├── 目标代码生成.cpp
├── 符号表.cpp
├── 词法分析.cpp
├── 语法分析(LL1).cpp
├── 语法分析器.rar
├── 语法分析器.sln
├── 语法分析器.vcxproj
├── 语法分析器.vcxproj.filters
├── 语法分析器.vcxproj.user
└── 调试.cpp
/Debug/msado15.tli:
--------------------------------------------------------------------------------
1 | // Created by Microsoft (R) C/C++ Compiler Version 14.16.27031.1 (2c448ad3).
2 | //
3 | // d:\编译器\--master\debug\msado15.tli
4 | //
5 | // Wrapper implementations for type library C:\Program Files\Common Files\System\ADO\msado15.dll
6 | // compiler-generated file created 08/02/19 at 23:41:59 - DO NOT EDIT!
7 |
8 | #pragma once
9 |
10 | //
11 | // interface _Collection wrapper method implementations
12 | //
13 |
14 | inline long _Collection::GetCount ( ) {
15 | long _result = 0;
16 | HRESULT _hr = get_Count(&_result);
17 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
18 | return _result;
19 | }
20 |
21 | inline IUnknownPtr _Collection::_NewEnum ( ) {
22 | IUnknown * _result = 0;
23 | HRESULT _hr = raw__NewEnum(&_result);
24 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
25 | return IUnknownPtr(_result, false);
26 | }
27 |
28 | inline HRESULT _Collection::Refresh ( ) {
29 | HRESULT _hr = raw_Refresh();
30 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
31 | return _hr;
32 | }
33 |
34 | //
35 | // interface _DynaCollection wrapper method implementations
36 | //
37 |
38 | inline HRESULT _DynaCollection::Append ( IDispatch * Object ) {
39 | HRESULT _hr = raw_Append(Object);
40 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
41 | return _hr;
42 | }
43 |
44 | inline HRESULT _DynaCollection::Delete ( const _variant_t & Index ) {
45 | HRESULT _hr = raw_Delete(Index);
46 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
47 | return _hr;
48 | }
49 |
50 | //
51 | // interface Property wrapper method implementations
52 | //
53 |
54 | inline _variant_t Property::GetValue ( ) {
55 | VARIANT _result;
56 | VariantInit(&_result);
57 | HRESULT _hr = get_Value(&_result);
58 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
59 | return _variant_t(_result, false);
60 | }
61 |
62 | inline void Property::PutValue ( const _variant_t & pval ) {
63 | HRESULT _hr = put_Value(pval);
64 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
65 | }
66 |
67 | inline _bstr_t Property::GetName ( ) {
68 | BSTR _result = 0;
69 | HRESULT _hr = get_Name(&_result);
70 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
71 | return _bstr_t(_result, false);
72 | }
73 |
74 | inline enum DataTypeEnum Property::GetType ( ) {
75 | enum DataTypeEnum _result;
76 | HRESULT _hr = get_Type(&_result);
77 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
78 | return _result;
79 | }
80 |
81 | inline long Property::GetAttributes ( ) {
82 | long _result = 0;
83 | HRESULT _hr = get_Attributes(&_result);
84 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
85 | return _result;
86 | }
87 |
88 | inline void Property::PutAttributes ( long plAttributes ) {
89 | HRESULT _hr = put_Attributes(plAttributes);
90 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
91 | }
92 |
93 | //
94 | // interface Properties wrapper method implementations
95 | //
96 |
97 | inline PropertyPtr Properties::GetItem ( const _variant_t & Index ) {
98 | struct Property * _result = 0;
99 | HRESULT _hr = get_Item(Index, &_result);
100 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
101 | return PropertyPtr(_result, false);
102 | }
103 |
104 | //
105 | // interface _ADO wrapper method implementations
106 | //
107 |
108 | inline PropertiesPtr _ADO::GetProperties ( ) {
109 | struct Properties * _result = 0;
110 | HRESULT _hr = get_Properties(&_result);
111 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
112 | return PropertiesPtr(_result, false);
113 | }
114 |
115 | //
116 | // interface Error wrapper method implementations
117 | //
118 |
119 | inline long Error::GetNumber ( ) {
120 | long _result = 0;
121 | HRESULT _hr = get_Number(&_result);
122 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
123 | return _result;
124 | }
125 |
126 | inline _bstr_t Error::GetSource ( ) {
127 | BSTR _result = 0;
128 | HRESULT _hr = get_Source(&_result);
129 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
130 | return _bstr_t(_result, false);
131 | }
132 |
133 | inline _bstr_t Error::GetDescription ( ) {
134 | BSTR _result = 0;
135 | HRESULT _hr = get_Description(&_result);
136 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
137 | return _bstr_t(_result, false);
138 | }
139 |
140 | inline _bstr_t Error::GetHelpFile ( ) {
141 | BSTR _result = 0;
142 | HRESULT _hr = get_HelpFile(&_result);
143 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
144 | return _bstr_t(_result, false);
145 | }
146 |
147 | inline long Error::GetHelpContext ( ) {
148 | long _result = 0;
149 | HRESULT _hr = get_HelpContext(&_result);
150 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
151 | return _result;
152 | }
153 |
154 | inline _bstr_t Error::GetSQLState ( ) {
155 | BSTR _result = 0;
156 | HRESULT _hr = get_SQLState(&_result);
157 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
158 | return _bstr_t(_result, false);
159 | }
160 |
161 | inline long Error::GetNativeError ( ) {
162 | long _result = 0;
163 | HRESULT _hr = get_NativeError(&_result);
164 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
165 | return _result;
166 | }
167 |
168 | //
169 | // interface Errors wrapper method implementations
170 | //
171 |
172 | inline ErrorPtr Errors::GetItem ( const _variant_t & Index ) {
173 | struct Error * _result = 0;
174 | HRESULT _hr = get_Item(Index, &_result);
175 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
176 | return ErrorPtr(_result, false);
177 | }
178 |
179 | inline HRESULT Errors::Clear ( ) {
180 | HRESULT _hr = raw_Clear();
181 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
182 | return _hr;
183 | }
184 |
185 | //
186 | // interface Field20 wrapper method implementations
187 | //
188 |
189 | inline long Field20::GetActualSize ( ) {
190 | long _result = 0;
191 | HRESULT _hr = get_ActualSize(&_result);
192 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
193 | return _result;
194 | }
195 |
196 | inline long Field20::GetAttributes ( ) {
197 | long _result = 0;
198 | HRESULT _hr = get_Attributes(&_result);
199 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
200 | return _result;
201 | }
202 |
203 | inline long Field20::GetDefinedSize ( ) {
204 | long _result = 0;
205 | HRESULT _hr = get_DefinedSize(&_result);
206 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
207 | return _result;
208 | }
209 |
210 | inline _bstr_t Field20::GetName ( ) {
211 | BSTR _result = 0;
212 | HRESULT _hr = get_Name(&_result);
213 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
214 | return _bstr_t(_result, false);
215 | }
216 |
217 | inline enum DataTypeEnum Field20::GetType ( ) {
218 | enum DataTypeEnum _result;
219 | HRESULT _hr = get_Type(&_result);
220 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
221 | return _result;
222 | }
223 |
224 | inline _variant_t Field20::GetValue ( ) {
225 | VARIANT _result;
226 | VariantInit(&_result);
227 | HRESULT _hr = get_Value(&_result);
228 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
229 | return _variant_t(_result, false);
230 | }
231 |
232 | inline void Field20::PutValue ( const _variant_t & pvar ) {
233 | HRESULT _hr = put_Value(pvar);
234 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
235 | }
236 |
237 | inline unsigned char Field20::GetPrecision ( ) {
238 | unsigned char _result = 0;
239 | HRESULT _hr = get_Precision(&_result);
240 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
241 | return _result;
242 | }
243 |
244 | inline unsigned char Field20::GetNumericScale ( ) {
245 | unsigned char _result = 0;
246 | HRESULT _hr = get_NumericScale(&_result);
247 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
248 | return _result;
249 | }
250 |
251 | inline HRESULT Field20::AppendChunk ( const _variant_t & Data ) {
252 | HRESULT _hr = raw_AppendChunk(Data);
253 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
254 | return _hr;
255 | }
256 |
257 | inline _variant_t Field20::GetChunk ( long Length ) {
258 | VARIANT _result;
259 | VariantInit(&_result);
260 | HRESULT _hr = raw_GetChunk(Length, &_result);
261 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
262 | return _variant_t(_result, false);
263 | }
264 |
265 | inline _variant_t Field20::GetOriginalValue ( ) {
266 | VARIANT _result;
267 | VariantInit(&_result);
268 | HRESULT _hr = get_OriginalValue(&_result);
269 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
270 | return _variant_t(_result, false);
271 | }
272 |
273 | inline _variant_t Field20::GetUnderlyingValue ( ) {
274 | VARIANT _result;
275 | VariantInit(&_result);
276 | HRESULT _hr = get_UnderlyingValue(&_result);
277 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
278 | return _variant_t(_result, false);
279 | }
280 |
281 | inline IUnknownPtr Field20::GetDataFormat ( ) {
282 | IUnknown * _result = 0;
283 | HRESULT _hr = get_DataFormat(&_result);
284 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
285 | return IUnknownPtr(_result, false);
286 | }
287 |
288 | inline void Field20::PutRefDataFormat ( IUnknown * ppiDF ) {
289 | HRESULT _hr = putref_DataFormat(ppiDF);
290 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
291 | }
292 |
293 | inline void Field20::PutPrecision ( unsigned char pbPrecision ) {
294 | HRESULT _hr = put_Precision(pbPrecision);
295 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
296 | }
297 |
298 | inline void Field20::PutNumericScale ( unsigned char pbNumericScale ) {
299 | HRESULT _hr = put_NumericScale(pbNumericScale);
300 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
301 | }
302 |
303 | inline void Field20::PutType ( enum DataTypeEnum pDataType ) {
304 | HRESULT _hr = put_Type(pDataType);
305 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
306 | }
307 |
308 | inline void Field20::PutDefinedSize ( long pl ) {
309 | HRESULT _hr = put_DefinedSize(pl);
310 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
311 | }
312 |
313 | inline void Field20::PutAttributes ( long pl ) {
314 | HRESULT _hr = put_Attributes(pl);
315 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
316 | }
317 |
318 | //
319 | // interface Field wrapper method implementations
320 | //
321 |
322 | inline long Field::GetStatus ( ) {
323 | long _result = 0;
324 | HRESULT _hr = get_Status(&_result);
325 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
326 | return _result;
327 | }
328 |
329 | //
330 | // interface Fields15 wrapper method implementations
331 | //
332 |
333 | inline FieldPtr Fields15::GetItem ( const _variant_t & Index ) {
334 | struct Field * _result = 0;
335 | HRESULT _hr = get_Item(Index, &_result);
336 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
337 | return FieldPtr(_result, false);
338 | }
339 |
340 | //
341 | // interface Fields20 wrapper method implementations
342 | //
343 |
344 | inline HRESULT Fields20::_Append ( _bstr_t Name, enum DataTypeEnum Type, long DefinedSize, enum FieldAttributeEnum Attrib ) {
345 | HRESULT _hr = raw__Append(Name, Type, DefinedSize, Attrib);
346 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
347 | return _hr;
348 | }
349 |
350 | inline HRESULT Fields20::Delete ( const _variant_t & Index ) {
351 | HRESULT _hr = raw_Delete(Index);
352 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
353 | return _hr;
354 | }
355 |
356 | //
357 | // interface Fields wrapper method implementations
358 | //
359 |
360 | inline HRESULT Fields::Append ( _bstr_t Name, enum DataTypeEnum Type, long DefinedSize, enum FieldAttributeEnum Attrib, const _variant_t & FieldValue ) {
361 | HRESULT _hr = raw_Append(Name, Type, DefinedSize, Attrib, FieldValue);
362 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
363 | return _hr;
364 | }
365 |
366 | inline HRESULT Fields::Update ( ) {
367 | HRESULT _hr = raw_Update();
368 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
369 | return _hr;
370 | }
371 |
372 | inline HRESULT Fields::Resync ( enum ResyncEnum ResyncValues ) {
373 | HRESULT _hr = raw_Resync(ResyncValues);
374 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
375 | return _hr;
376 | }
377 |
378 | inline HRESULT Fields::CancelUpdate ( ) {
379 | HRESULT _hr = raw_CancelUpdate();
380 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
381 | return _hr;
382 | }
383 |
384 | //
385 | // interface _Parameter wrapper method implementations
386 | //
387 |
388 | inline _bstr_t _Parameter::GetName ( ) {
389 | BSTR _result = 0;
390 | HRESULT _hr = get_Name(&_result);
391 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
392 | return _bstr_t(_result, false);
393 | }
394 |
395 | inline void _Parameter::PutName ( _bstr_t pbstr ) {
396 | HRESULT _hr = put_Name(pbstr);
397 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
398 | }
399 |
400 | inline _variant_t _Parameter::GetValue ( ) {
401 | VARIANT _result;
402 | VariantInit(&_result);
403 | HRESULT _hr = get_Value(&_result);
404 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
405 | return _variant_t(_result, false);
406 | }
407 |
408 | inline void _Parameter::PutValue ( const _variant_t & pvar ) {
409 | HRESULT _hr = put_Value(pvar);
410 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
411 | }
412 |
413 | inline enum DataTypeEnum _Parameter::GetType ( ) {
414 | enum DataTypeEnum _result;
415 | HRESULT _hr = get_Type(&_result);
416 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
417 | return _result;
418 | }
419 |
420 | inline void _Parameter::PutType ( enum DataTypeEnum psDataType ) {
421 | HRESULT _hr = put_Type(psDataType);
422 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
423 | }
424 |
425 | inline void _Parameter::PutDirection ( enum ParameterDirectionEnum plParmDirection ) {
426 | HRESULT _hr = put_Direction(plParmDirection);
427 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
428 | }
429 |
430 | inline enum ParameterDirectionEnum _Parameter::GetDirection ( ) {
431 | enum ParameterDirectionEnum _result;
432 | HRESULT _hr = get_Direction(&_result);
433 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
434 | return _result;
435 | }
436 |
437 | inline void _Parameter::PutPrecision ( unsigned char pbPrecision ) {
438 | HRESULT _hr = put_Precision(pbPrecision);
439 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
440 | }
441 |
442 | inline unsigned char _Parameter::GetPrecision ( ) {
443 | unsigned char _result = 0;
444 | HRESULT _hr = get_Precision(&_result);
445 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
446 | return _result;
447 | }
448 |
449 | inline void _Parameter::PutNumericScale ( unsigned char pbScale ) {
450 | HRESULT _hr = put_NumericScale(pbScale);
451 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
452 | }
453 |
454 | inline unsigned char _Parameter::GetNumericScale ( ) {
455 | unsigned char _result = 0;
456 | HRESULT _hr = get_NumericScale(&_result);
457 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
458 | return _result;
459 | }
460 |
461 | inline void _Parameter::PutSize ( long pl ) {
462 | HRESULT _hr = put_Size(pl);
463 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
464 | }
465 |
466 | inline long _Parameter::GetSize ( ) {
467 | long _result = 0;
468 | HRESULT _hr = get_Size(&_result);
469 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
470 | return _result;
471 | }
472 |
473 | inline HRESULT _Parameter::AppendChunk ( const _variant_t & Val ) {
474 | HRESULT _hr = raw_AppendChunk(Val);
475 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
476 | return _hr;
477 | }
478 |
479 | inline long _Parameter::GetAttributes ( ) {
480 | long _result = 0;
481 | HRESULT _hr = get_Attributes(&_result);
482 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
483 | return _result;
484 | }
485 |
486 | inline void _Parameter::PutAttributes ( long plParmAttribs ) {
487 | HRESULT _hr = put_Attributes(plParmAttribs);
488 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
489 | }
490 |
491 | //
492 | // interface Parameters wrapper method implementations
493 | //
494 |
495 | inline _ParameterPtr Parameters::GetItem ( const _variant_t & Index ) {
496 | struct _Parameter * _result = 0;
497 | HRESULT _hr = get_Item(Index, &_result);
498 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
499 | return _ParameterPtr(_result, false);
500 | }
501 |
502 | //
503 | // dispinterface ConnectionEvents wrapper method implementations
504 | //
505 |
506 | inline HRESULT ConnectionEvents::InfoMessage ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
507 | HRESULT _result = 0;
508 | _com_dispatch_method(this, 0x0, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
509 | L"\x0009\x4003\x0009", pError, adStatus, pConnection);
510 | return _result;
511 | }
512 |
513 | inline HRESULT ConnectionEvents::BeginTransComplete ( long TransactionLevel, struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
514 | HRESULT _result = 0;
515 | _com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
516 | L"\x0003\x0009\x4003\x0009", TransactionLevel, pError, adStatus, pConnection);
517 | return _result;
518 | }
519 |
520 | inline HRESULT ConnectionEvents::CommitTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
521 | HRESULT _result = 0;
522 | _com_dispatch_method(this, 0x3, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
523 | L"\x0009\x4003\x0009", pError, adStatus, pConnection);
524 | return _result;
525 | }
526 |
527 | inline HRESULT ConnectionEvents::RollbackTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
528 | HRESULT _result = 0;
529 | _com_dispatch_method(this, 0x2, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
530 | L"\x0009\x4003\x0009", pError, adStatus, pConnection);
531 | return _result;
532 | }
533 |
534 | inline HRESULT ConnectionEvents::WillExecute ( BSTR * Source, enum CursorTypeEnum * CursorType, enum LockTypeEnum * LockType, long * Options, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) {
535 | HRESULT _result = 0;
536 | _com_dispatch_method(this, 0x4, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
537 | L"\x4008\x4003\x4003\x4003\x4003\x0009\x0009\x0009", Source, CursorType, LockType, Options, adStatus, pCommand, pRecordset, pConnection);
538 | return _result;
539 | }
540 |
541 | inline HRESULT ConnectionEvents::ExecuteComplete ( long RecordsAffected, struct Error * pError, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) {
542 | HRESULT _result = 0;
543 | _com_dispatch_method(this, 0x5, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
544 | L"\x0003\x0009\x4003\x0009\x0009\x0009", RecordsAffected, pError, adStatus, pCommand, pRecordset, pConnection);
545 | return _result;
546 | }
547 |
548 | inline HRESULT ConnectionEvents::WillConnect ( BSTR * ConnectionString, BSTR * UserID, BSTR * Password, long * Options, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
549 | HRESULT _result = 0;
550 | _com_dispatch_method(this, 0x6, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
551 | L"\x4008\x4008\x4008\x4003\x4003\x0009", ConnectionString, UserID, Password, Options, adStatus, pConnection);
552 | return _result;
553 | }
554 |
555 | inline HRESULT ConnectionEvents::ConnectComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
556 | HRESULT _result = 0;
557 | _com_dispatch_method(this, 0x7, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
558 | L"\x0009\x4003\x0009", pError, adStatus, pConnection);
559 | return _result;
560 | }
561 |
562 | inline HRESULT ConnectionEvents::Disconnect ( enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
563 | HRESULT _result = 0;
564 | _com_dispatch_method(this, 0x8, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
565 | L"\x4003\x0009", adStatus, pConnection);
566 | return _result;
567 | }
568 |
569 | //
570 | // dispinterface RecordsetEvents wrapper method implementations
571 | //
572 |
573 | inline HRESULT RecordsetEvents::WillChangeField ( long cFields, const _variant_t & Fields, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
574 | HRESULT _result = 0;
575 | _com_dispatch_method(this, 0x9, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
576 | L"\x0003\x000c\x4003\x0009", cFields, &Fields, adStatus, pRecordset);
577 | return _result;
578 | }
579 |
580 | inline HRESULT RecordsetEvents::FieldChangeComplete ( long cFields, const _variant_t & Fields, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
581 | HRESULT _result = 0;
582 | _com_dispatch_method(this, 0xa, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
583 | L"\x0003\x000c\x0009\x4003\x0009", cFields, &Fields, pError, adStatus, pRecordset);
584 | return _result;
585 | }
586 |
587 | inline HRESULT RecordsetEvents::WillChangeRecord ( enum EventReasonEnum adReason, long cRecords, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
588 | HRESULT _result = 0;
589 | _com_dispatch_method(this, 0xb, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
590 | L"\x0003\x0003\x4003\x0009", adReason, cRecords, adStatus, pRecordset);
591 | return _result;
592 | }
593 |
594 | inline HRESULT RecordsetEvents::RecordChangeComplete ( enum EventReasonEnum adReason, long cRecords, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
595 | HRESULT _result = 0;
596 | _com_dispatch_method(this, 0xc, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
597 | L"\x0003\x0003\x0009\x4003\x0009", adReason, cRecords, pError, adStatus, pRecordset);
598 | return _result;
599 | }
600 |
601 | inline HRESULT RecordsetEvents::WillChangeRecordset ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
602 | HRESULT _result = 0;
603 | _com_dispatch_method(this, 0xd, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
604 | L"\x0003\x4003\x0009", adReason, adStatus, pRecordset);
605 | return _result;
606 | }
607 |
608 | inline HRESULT RecordsetEvents::RecordsetChangeComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
609 | HRESULT _result = 0;
610 | _com_dispatch_method(this, 0xe, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
611 | L"\x0003\x0009\x4003\x0009", adReason, pError, adStatus, pRecordset);
612 | return _result;
613 | }
614 |
615 | inline HRESULT RecordsetEvents::WillMove ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
616 | HRESULT _result = 0;
617 | _com_dispatch_method(this, 0xf, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
618 | L"\x0003\x4003\x0009", adReason, adStatus, pRecordset);
619 | return _result;
620 | }
621 |
622 | inline HRESULT RecordsetEvents::MoveComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
623 | HRESULT _result = 0;
624 | _com_dispatch_method(this, 0x10, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
625 | L"\x0003\x0009\x4003\x0009", adReason, pError, adStatus, pRecordset);
626 | return _result;
627 | }
628 |
629 | inline HRESULT RecordsetEvents::EndOfRecordset ( VARIANT_BOOL * fMoreData, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
630 | HRESULT _result = 0;
631 | _com_dispatch_method(this, 0x11, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
632 | L"\x400b\x4003\x0009", fMoreData, adStatus, pRecordset);
633 | return _result;
634 | }
635 |
636 | inline HRESULT RecordsetEvents::FetchProgress ( long Progress, long MaxProgress, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
637 | HRESULT _result = 0;
638 | _com_dispatch_method(this, 0x12, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
639 | L"\x0003\x0003\x4003\x0009", Progress, MaxProgress, adStatus, pRecordset);
640 | return _result;
641 | }
642 |
643 | inline HRESULT RecordsetEvents::FetchComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
644 | HRESULT _result = 0;
645 | _com_dispatch_method(this, 0x13, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
646 | L"\x0009\x4003\x0009", pError, adStatus, pRecordset);
647 | return _result;
648 | }
649 |
650 | //
651 | // interface ADOConnectionConstruction15 wrapper method implementations
652 | //
653 |
654 | inline IUnknownPtr ADOConnectionConstruction15::GetDSO ( ) {
655 | IUnknown * _result = 0;
656 | HRESULT _hr = get_DSO(&_result);
657 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
658 | return IUnknownPtr(_result, false);
659 | }
660 |
661 | inline IUnknownPtr ADOConnectionConstruction15::GetSession ( ) {
662 | IUnknown * _result = 0;
663 | HRESULT _hr = get_Session(&_result);
664 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
665 | return IUnknownPtr(_result, false);
666 | }
667 |
668 | inline HRESULT ADOConnectionConstruction15::WrapDSOandSession ( IUnknown * pDSO, IUnknown * pSession ) {
669 | HRESULT _hr = raw_WrapDSOandSession(pDSO, pSession);
670 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
671 | return _hr;
672 | }
673 |
674 | //
675 | // interface _Stream wrapper method implementations
676 | //
677 |
678 | inline long _Stream::GetSize ( ) {
679 | long _result = 0;
680 | HRESULT _hr = get_Size(&_result);
681 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
682 | return _result;
683 | }
684 |
685 | inline VARIANT_BOOL _Stream::GetEOS ( ) {
686 | VARIANT_BOOL _result = 0;
687 | HRESULT _hr = get_EOS(&_result);
688 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
689 | return _result;
690 | }
691 |
692 | inline long _Stream::GetPosition ( ) {
693 | long _result = 0;
694 | HRESULT _hr = get_Position(&_result);
695 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
696 | return _result;
697 | }
698 |
699 | inline void _Stream::PutPosition ( long pPos ) {
700 | HRESULT _hr = put_Position(pPos);
701 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
702 | }
703 |
704 | inline enum StreamTypeEnum _Stream::GetType ( ) {
705 | enum StreamTypeEnum _result;
706 | HRESULT _hr = get_Type(&_result);
707 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
708 | return _result;
709 | }
710 |
711 | inline void _Stream::PutType ( enum StreamTypeEnum ptype ) {
712 | HRESULT _hr = put_Type(ptype);
713 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
714 | }
715 |
716 | inline enum LineSeparatorEnum _Stream::GetLineSeparator ( ) {
717 | enum LineSeparatorEnum _result;
718 | HRESULT _hr = get_LineSeparator(&_result);
719 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
720 | return _result;
721 | }
722 |
723 | inline void _Stream::PutLineSeparator ( enum LineSeparatorEnum pLS ) {
724 | HRESULT _hr = put_LineSeparator(pLS);
725 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
726 | }
727 |
728 | inline enum ObjectStateEnum _Stream::GetState ( ) {
729 | enum ObjectStateEnum _result;
730 | HRESULT _hr = get_State(&_result);
731 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
732 | return _result;
733 | }
734 |
735 | inline enum ConnectModeEnum _Stream::GetMode ( ) {
736 | enum ConnectModeEnum _result;
737 | HRESULT _hr = get_Mode(&_result);
738 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
739 | return _result;
740 | }
741 |
742 | inline void _Stream::PutMode ( enum ConnectModeEnum pMode ) {
743 | HRESULT _hr = put_Mode(pMode);
744 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
745 | }
746 |
747 | inline _bstr_t _Stream::GetCharset ( ) {
748 | BSTR _result = 0;
749 | HRESULT _hr = get_Charset(&_result);
750 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
751 | return _bstr_t(_result, false);
752 | }
753 |
754 | inline void _Stream::PutCharset ( _bstr_t pbstrCharset ) {
755 | HRESULT _hr = put_Charset(pbstrCharset);
756 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
757 | }
758 |
759 | inline _variant_t _Stream::Read ( long NumBytes ) {
760 | VARIANT _result;
761 | VariantInit(&_result);
762 | HRESULT _hr = raw_Read(NumBytes, &_result);
763 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
764 | return _variant_t(_result, false);
765 | }
766 |
767 | inline HRESULT _Stream::Open ( const _variant_t & Source, enum ConnectModeEnum Mode, enum StreamOpenOptionsEnum Options, _bstr_t UserName, _bstr_t Password ) {
768 | HRESULT _hr = raw_Open(Source, Mode, Options, UserName, Password);
769 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
770 | return _hr;
771 | }
772 |
773 | inline HRESULT _Stream::Close ( ) {
774 | HRESULT _hr = raw_Close();
775 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
776 | return _hr;
777 | }
778 |
779 | inline HRESULT _Stream::SkipLine ( ) {
780 | HRESULT _hr = raw_SkipLine();
781 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
782 | return _hr;
783 | }
784 |
785 | inline HRESULT _Stream::Write ( const _variant_t & Buffer ) {
786 | HRESULT _hr = raw_Write(Buffer);
787 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
788 | return _hr;
789 | }
790 |
791 | inline HRESULT _Stream::SetEOS ( ) {
792 | HRESULT _hr = raw_SetEOS();
793 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
794 | return _hr;
795 | }
796 |
797 | inline HRESULT _Stream::CopyTo ( struct _Stream * DestStream, long CharNumber ) {
798 | HRESULT _hr = raw_CopyTo(DestStream, CharNumber);
799 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
800 | return _hr;
801 | }
802 |
803 | inline HRESULT _Stream::Flush ( ) {
804 | HRESULT _hr = raw_Flush();
805 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
806 | return _hr;
807 | }
808 |
809 | inline HRESULT _Stream::SaveToFile ( _bstr_t FileName, enum SaveOptionsEnum Options ) {
810 | HRESULT _hr = raw_SaveToFile(FileName, Options);
811 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
812 | return _hr;
813 | }
814 |
815 | inline HRESULT _Stream::LoadFromFile ( _bstr_t FileName ) {
816 | HRESULT _hr = raw_LoadFromFile(FileName);
817 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
818 | return _hr;
819 | }
820 |
821 | inline _bstr_t _Stream::ReadText ( long NumChars ) {
822 | BSTR _result = 0;
823 | HRESULT _hr = raw_ReadText(NumChars, &_result);
824 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
825 | return _bstr_t(_result, false);
826 | }
827 |
828 | inline HRESULT _Stream::WriteText ( _bstr_t Data, enum StreamWriteEnum Options ) {
829 | HRESULT _hr = raw_WriteText(Data, Options);
830 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
831 | return _hr;
832 | }
833 |
834 | inline HRESULT _Stream::Cancel ( ) {
835 | HRESULT _hr = raw_Cancel();
836 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
837 | return _hr;
838 | }
839 |
840 | //
841 | // interface ADORecordConstruction wrapper method implementations
842 | //
843 |
844 | inline IUnknownPtr ADORecordConstruction::GetRow ( ) {
845 | IUnknown * _result = 0;
846 | HRESULT _hr = get_Row(&_result);
847 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
848 | return IUnknownPtr(_result, false);
849 | }
850 |
851 | inline void ADORecordConstruction::PutRow ( IUnknown * ppRow ) {
852 | HRESULT _hr = put_Row(ppRow);
853 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
854 | }
855 |
856 | inline void ADORecordConstruction::PutParentRow ( IUnknown * _arg1 ) {
857 | HRESULT _hr = put_ParentRow(_arg1);
858 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
859 | }
860 |
861 | //
862 | // interface ADOStreamConstruction wrapper method implementations
863 | //
864 |
865 | inline IUnknownPtr ADOStreamConstruction::GetStream ( ) {
866 | IUnknown * _result = 0;
867 | HRESULT _hr = get_Stream(&_result);
868 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
869 | return IUnknownPtr(_result, false);
870 | }
871 |
872 | inline void ADOStreamConstruction::PutStream ( IUnknown * ppStm ) {
873 | HRESULT _hr = put_Stream(ppStm);
874 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
875 | }
876 |
877 | //
878 | // interface ADOCommandConstruction wrapper method implementations
879 | //
880 |
881 | inline IUnknownPtr ADOCommandConstruction::GetOLEDBCommand ( ) {
882 | IUnknown * _result = 0;
883 | HRESULT _hr = get_OLEDBCommand(&_result);
884 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
885 | return IUnknownPtr(_result, false);
886 | }
887 |
888 | inline void ADOCommandConstruction::PutOLEDBCommand ( IUnknown * ppOLEDBCommand ) {
889 | HRESULT _hr = put_OLEDBCommand(ppOLEDBCommand);
890 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
891 | }
892 |
893 | //
894 | // interface ADORecordsetConstruction wrapper method implementations
895 | //
896 |
897 | inline IUnknownPtr ADORecordsetConstruction::GetRowset ( ) {
898 | IUnknown * _result = 0;
899 | HRESULT _hr = get_Rowset(&_result);
900 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
901 | return IUnknownPtr(_result, false);
902 | }
903 |
904 | inline void ADORecordsetConstruction::PutRowset ( IUnknown * ppRowset ) {
905 | HRESULT _hr = put_Rowset(ppRowset);
906 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
907 | }
908 |
909 | inline ADO_LONGPTR ADORecordsetConstruction::GetChapter ( ) {
910 | ADO_LONGPTR _result;
911 | HRESULT _hr = get_Chapter(&_result);
912 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
913 | return _result;
914 | }
915 |
916 | inline void ADORecordsetConstruction::PutChapter ( ADO_LONGPTR plChapter ) {
917 | HRESULT _hr = put_Chapter(plChapter);
918 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
919 | }
920 |
921 | inline IUnknownPtr ADORecordsetConstruction::GetRowPosition ( ) {
922 | IUnknown * _result = 0;
923 | HRESULT _hr = get_RowPosition(&_result);
924 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
925 | return IUnknownPtr(_result, false);
926 | }
927 |
928 | inline void ADORecordsetConstruction::PutRowPosition ( IUnknown * ppRowPos ) {
929 | HRESULT _hr = put_RowPosition(ppRowPos);
930 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
931 | }
932 |
933 | //
934 | // interface Field15 wrapper method implementations
935 | //
936 |
937 | inline long Field15::GetActualSize ( ) {
938 | long _result = 0;
939 | HRESULT _hr = get_ActualSize(&_result);
940 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
941 | return _result;
942 | }
943 |
944 | inline long Field15::GetAttributes ( ) {
945 | long _result = 0;
946 | HRESULT _hr = get_Attributes(&_result);
947 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
948 | return _result;
949 | }
950 |
951 | inline long Field15::GetDefinedSize ( ) {
952 | long _result = 0;
953 | HRESULT _hr = get_DefinedSize(&_result);
954 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
955 | return _result;
956 | }
957 |
958 | inline _bstr_t Field15::GetName ( ) {
959 | BSTR _result = 0;
960 | HRESULT _hr = get_Name(&_result);
961 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
962 | return _bstr_t(_result, false);
963 | }
964 |
965 | inline enum DataTypeEnum Field15::GetType ( ) {
966 | enum DataTypeEnum _result;
967 | HRESULT _hr = get_Type(&_result);
968 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
969 | return _result;
970 | }
971 |
972 | inline _variant_t Field15::GetValue ( ) {
973 | VARIANT _result;
974 | VariantInit(&_result);
975 | HRESULT _hr = get_Value(&_result);
976 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
977 | return _variant_t(_result, false);
978 | }
979 |
980 | inline void Field15::PutValue ( const _variant_t & pvar ) {
981 | HRESULT _hr = put_Value(pvar);
982 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
983 | }
984 |
985 | inline unsigned char Field15::GetPrecision ( ) {
986 | unsigned char _result = 0;
987 | HRESULT _hr = get_Precision(&_result);
988 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
989 | return _result;
990 | }
991 |
992 | inline unsigned char Field15::GetNumericScale ( ) {
993 | unsigned char _result = 0;
994 | HRESULT _hr = get_NumericScale(&_result);
995 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
996 | return _result;
997 | }
998 |
999 | inline HRESULT Field15::AppendChunk ( const _variant_t & Data ) {
1000 | HRESULT _hr = raw_AppendChunk(Data);
1001 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1002 | return _hr;
1003 | }
1004 |
1005 | inline _variant_t Field15::GetChunk ( long Length ) {
1006 | VARIANT _result;
1007 | VariantInit(&_result);
1008 | HRESULT _hr = raw_GetChunk(Length, &_result);
1009 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1010 | return _variant_t(_result, false);
1011 | }
1012 |
1013 | inline _variant_t Field15::GetOriginalValue ( ) {
1014 | VARIANT _result;
1015 | VariantInit(&_result);
1016 | HRESULT _hr = get_OriginalValue(&_result);
1017 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1018 | return _variant_t(_result, false);
1019 | }
1020 |
1021 | inline _variant_t Field15::GetUnderlyingValue ( ) {
1022 | VARIANT _result;
1023 | VariantInit(&_result);
1024 | HRESULT _hr = get_UnderlyingValue(&_result);
1025 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1026 | return _variant_t(_result, false);
1027 | }
1028 |
1029 | //
1030 | // interface Field20_Deprecated wrapper method implementations
1031 | //
1032 |
1033 | inline ADO_LONGPTR Field20_Deprecated::GetActualSize ( ) {
1034 | ADO_LONGPTR _result;
1035 | HRESULT _hr = get_ActualSize(&_result);
1036 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1037 | return _result;
1038 | }
1039 |
1040 | inline long Field20_Deprecated::GetAttributes ( ) {
1041 | long _result = 0;
1042 | HRESULT _hr = get_Attributes(&_result);
1043 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1044 | return _result;
1045 | }
1046 |
1047 | inline ADO_LONGPTR Field20_Deprecated::GetDefinedSize ( ) {
1048 | ADO_LONGPTR _result;
1049 | HRESULT _hr = get_DefinedSize(&_result);
1050 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1051 | return _result;
1052 | }
1053 |
1054 | inline _bstr_t Field20_Deprecated::GetName ( ) {
1055 | BSTR _result = 0;
1056 | HRESULT _hr = get_Name(&_result);
1057 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1058 | return _bstr_t(_result, false);
1059 | }
1060 |
1061 | inline enum DataTypeEnum Field20_Deprecated::GetType ( ) {
1062 | enum DataTypeEnum _result;
1063 | HRESULT _hr = get_Type(&_result);
1064 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1065 | return _result;
1066 | }
1067 |
1068 | inline _variant_t Field20_Deprecated::GetValue ( ) {
1069 | VARIANT _result;
1070 | VariantInit(&_result);
1071 | HRESULT _hr = get_Value(&_result);
1072 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1073 | return _variant_t(_result, false);
1074 | }
1075 |
1076 | inline void Field20_Deprecated::PutValue ( const _variant_t & pvar ) {
1077 | HRESULT _hr = put_Value(pvar);
1078 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1079 | }
1080 |
1081 | inline unsigned char Field20_Deprecated::GetPrecision ( ) {
1082 | unsigned char _result = 0;
1083 | HRESULT _hr = get_Precision(&_result);
1084 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1085 | return _result;
1086 | }
1087 |
1088 | inline unsigned char Field20_Deprecated::GetNumericScale ( ) {
1089 | unsigned char _result = 0;
1090 | HRESULT _hr = get_NumericScale(&_result);
1091 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1092 | return _result;
1093 | }
1094 |
1095 | inline HRESULT Field20_Deprecated::AppendChunk ( const _variant_t & Data ) {
1096 | HRESULT _hr = raw_AppendChunk(Data);
1097 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1098 | return _hr;
1099 | }
1100 |
1101 | inline _variant_t Field20_Deprecated::GetChunk ( long Length ) {
1102 | VARIANT _result;
1103 | VariantInit(&_result);
1104 | HRESULT _hr = raw_GetChunk(Length, &_result);
1105 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1106 | return _variant_t(_result, false);
1107 | }
1108 |
1109 | inline _variant_t Field20_Deprecated::GetOriginalValue ( ) {
1110 | VARIANT _result;
1111 | VariantInit(&_result);
1112 | HRESULT _hr = get_OriginalValue(&_result);
1113 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1114 | return _variant_t(_result, false);
1115 | }
1116 |
1117 | inline _variant_t Field20_Deprecated::GetUnderlyingValue ( ) {
1118 | VARIANT _result;
1119 | VariantInit(&_result);
1120 | HRESULT _hr = get_UnderlyingValue(&_result);
1121 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1122 | return _variant_t(_result, false);
1123 | }
1124 |
1125 | inline IUnknownPtr Field20_Deprecated::GetDataFormat ( ) {
1126 | IUnknown * _result = 0;
1127 | HRESULT _hr = get_DataFormat(&_result);
1128 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1129 | return IUnknownPtr(_result, false);
1130 | }
1131 |
1132 | inline void Field20_Deprecated::PutRefDataFormat ( IUnknown * ppiDF ) {
1133 | HRESULT _hr = putref_DataFormat(ppiDF);
1134 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1135 | }
1136 |
1137 | inline void Field20_Deprecated::PutPrecision ( unsigned char pbPrecision ) {
1138 | HRESULT _hr = put_Precision(pbPrecision);
1139 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1140 | }
1141 |
1142 | inline void Field20_Deprecated::PutNumericScale ( unsigned char pbNumericScale ) {
1143 | HRESULT _hr = put_NumericScale(pbNumericScale);
1144 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1145 | }
1146 |
1147 | inline void Field20_Deprecated::PutType ( enum DataTypeEnum pDataType ) {
1148 | HRESULT _hr = put_Type(pDataType);
1149 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1150 | }
1151 |
1152 | inline void Field20_Deprecated::PutDefinedSize ( ADO_LONGPTR pl ) {
1153 | HRESULT _hr = put_DefinedSize(pl);
1154 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1155 | }
1156 |
1157 | inline void Field20_Deprecated::PutAttributes ( long pl ) {
1158 | HRESULT _hr = put_Attributes(pl);
1159 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1160 | }
1161 |
1162 | //
1163 | // interface Field_Deprecated wrapper method implementations
1164 | //
1165 |
1166 | inline long Field_Deprecated::GetStatus ( ) {
1167 | long _result = 0;
1168 | HRESULT _hr = get_Status(&_result);
1169 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1170 | return _result;
1171 | }
1172 |
1173 | //
1174 | // interface Fields15_Deprecated wrapper method implementations
1175 | //
1176 |
1177 | inline Field_DeprecatedPtr Fields15_Deprecated::GetItem ( const _variant_t & Index ) {
1178 | struct Field_Deprecated * _result = 0;
1179 | HRESULT _hr = get_Item(Index, &_result);
1180 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1181 | return Field_DeprecatedPtr(_result, false);
1182 | }
1183 |
1184 | //
1185 | // interface Fields20_Deprecated wrapper method implementations
1186 | //
1187 |
1188 | inline HRESULT Fields20_Deprecated::_Append ( _bstr_t Name, enum DataTypeEnum Type, ADO_LONGPTR DefinedSize, enum FieldAttributeEnum Attrib ) {
1189 | HRESULT _hr = raw__Append(Name, Type, DefinedSize, Attrib);
1190 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1191 | return _hr;
1192 | }
1193 |
1194 | inline HRESULT Fields20_Deprecated::Delete ( const _variant_t & Index ) {
1195 | HRESULT _hr = raw_Delete(Index);
1196 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1197 | return _hr;
1198 | }
1199 |
1200 | //
1201 | // interface Fields_Deprecated wrapper method implementations
1202 | //
1203 |
1204 | inline HRESULT Fields_Deprecated::Append ( _bstr_t Name, enum DataTypeEnum Type, ADO_LONGPTR DefinedSize, enum FieldAttributeEnum Attrib, const _variant_t & FieldValue ) {
1205 | HRESULT _hr = raw_Append(Name, Type, DefinedSize, Attrib, FieldValue);
1206 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1207 | return _hr;
1208 | }
1209 |
1210 | inline HRESULT Fields_Deprecated::Update ( ) {
1211 | HRESULT _hr = raw_Update();
1212 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1213 | return _hr;
1214 | }
1215 |
1216 | inline HRESULT Fields_Deprecated::Resync ( enum ResyncEnum ResyncValues ) {
1217 | HRESULT _hr = raw_Resync(ResyncValues);
1218 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1219 | return _hr;
1220 | }
1221 |
1222 | inline HRESULT Fields_Deprecated::CancelUpdate ( ) {
1223 | HRESULT _hr = raw_CancelUpdate();
1224 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1225 | return _hr;
1226 | }
1227 |
1228 | //
1229 | // interface _Parameter_Deprecated wrapper method implementations
1230 | //
1231 |
1232 | inline _bstr_t _Parameter_Deprecated::GetName ( ) {
1233 | BSTR _result = 0;
1234 | HRESULT _hr = get_Name(&_result);
1235 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1236 | return _bstr_t(_result, false);
1237 | }
1238 |
1239 | inline void _Parameter_Deprecated::PutName ( _bstr_t pbstr ) {
1240 | HRESULT _hr = put_Name(pbstr);
1241 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1242 | }
1243 |
1244 | inline _variant_t _Parameter_Deprecated::GetValue ( ) {
1245 | VARIANT _result;
1246 | VariantInit(&_result);
1247 | HRESULT _hr = get_Value(&_result);
1248 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1249 | return _variant_t(_result, false);
1250 | }
1251 |
1252 | inline void _Parameter_Deprecated::PutValue ( const _variant_t & pvar ) {
1253 | HRESULT _hr = put_Value(pvar);
1254 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1255 | }
1256 |
1257 | inline enum DataTypeEnum _Parameter_Deprecated::GetType ( ) {
1258 | enum DataTypeEnum _result;
1259 | HRESULT _hr = get_Type(&_result);
1260 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1261 | return _result;
1262 | }
1263 |
1264 | inline void _Parameter_Deprecated::PutType ( enum DataTypeEnum psDataType ) {
1265 | HRESULT _hr = put_Type(psDataType);
1266 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1267 | }
1268 |
1269 | inline void _Parameter_Deprecated::PutDirection ( enum ParameterDirectionEnum plParmDirection ) {
1270 | HRESULT _hr = put_Direction(plParmDirection);
1271 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1272 | }
1273 |
1274 | inline enum ParameterDirectionEnum _Parameter_Deprecated::GetDirection ( ) {
1275 | enum ParameterDirectionEnum _result;
1276 | HRESULT _hr = get_Direction(&_result);
1277 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1278 | return _result;
1279 | }
1280 |
1281 | inline void _Parameter_Deprecated::PutPrecision ( unsigned char pbPrecision ) {
1282 | HRESULT _hr = put_Precision(pbPrecision);
1283 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1284 | }
1285 |
1286 | inline unsigned char _Parameter_Deprecated::GetPrecision ( ) {
1287 | unsigned char _result = 0;
1288 | HRESULT _hr = get_Precision(&_result);
1289 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1290 | return _result;
1291 | }
1292 |
1293 | inline void _Parameter_Deprecated::PutNumericScale ( unsigned char pbScale ) {
1294 | HRESULT _hr = put_NumericScale(pbScale);
1295 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1296 | }
1297 |
1298 | inline unsigned char _Parameter_Deprecated::GetNumericScale ( ) {
1299 | unsigned char _result = 0;
1300 | HRESULT _hr = get_NumericScale(&_result);
1301 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1302 | return _result;
1303 | }
1304 |
1305 | inline void _Parameter_Deprecated::PutSize ( ADO_LONGPTR pl ) {
1306 | HRESULT _hr = put_Size(pl);
1307 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1308 | }
1309 |
1310 | inline ADO_LONGPTR _Parameter_Deprecated::GetSize ( ) {
1311 | ADO_LONGPTR _result;
1312 | HRESULT _hr = get_Size(&_result);
1313 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1314 | return _result;
1315 | }
1316 |
1317 | inline HRESULT _Parameter_Deprecated::AppendChunk ( const _variant_t & Val ) {
1318 | HRESULT _hr = raw_AppendChunk(Val);
1319 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1320 | return _hr;
1321 | }
1322 |
1323 | inline long _Parameter_Deprecated::GetAttributes ( ) {
1324 | long _result = 0;
1325 | HRESULT _hr = get_Attributes(&_result);
1326 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1327 | return _result;
1328 | }
1329 |
1330 | inline void _Parameter_Deprecated::PutAttributes ( long plParmAttribs ) {
1331 | HRESULT _hr = put_Attributes(plParmAttribs);
1332 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1333 | }
1334 |
1335 | //
1336 | // interface Parameters_Deprecated wrapper method implementations
1337 | //
1338 |
1339 | inline _Parameter_DeprecatedPtr Parameters_Deprecated::GetItem ( const _variant_t & Index ) {
1340 | struct _Parameter_Deprecated * _result = 0;
1341 | HRESULT _hr = get_Item(Index, &_result);
1342 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1343 | return _Parameter_DeprecatedPtr(_result, false);
1344 | }
1345 |
1346 | //
1347 | // dispinterface ConnectionEvents_Deprecated wrapper method implementations
1348 | //
1349 |
1350 | inline HRESULT ConnectionEvents_Deprecated::InfoMessage ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
1351 | HRESULT _result = 0;
1352 | _com_dispatch_method(this, 0x0, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
1353 | L"\x0009\x4003\x0009", pError, adStatus, pConnection);
1354 | return _result;
1355 | }
1356 |
1357 | inline HRESULT ConnectionEvents_Deprecated::BeginTransComplete ( long TransactionLevel, struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
1358 | HRESULT _result = 0;
1359 | _com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
1360 | L"\x0003\x0009\x4003\x0009", TransactionLevel, pError, adStatus, pConnection);
1361 | return _result;
1362 | }
1363 |
1364 | inline HRESULT ConnectionEvents_Deprecated::CommitTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
1365 | HRESULT _result = 0;
1366 | _com_dispatch_method(this, 0x3, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
1367 | L"\x0009\x4003\x0009", pError, adStatus, pConnection);
1368 | return _result;
1369 | }
1370 |
1371 | inline HRESULT ConnectionEvents_Deprecated::RollbackTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
1372 | HRESULT _result = 0;
1373 | _com_dispatch_method(this, 0x2, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
1374 | L"\x0009\x4003\x0009", pError, adStatus, pConnection);
1375 | return _result;
1376 | }
1377 |
1378 | inline HRESULT ConnectionEvents_Deprecated::WillExecute ( BSTR * Source, enum CursorTypeEnum * CursorType, enum LockTypeEnum * LockType, long * Options, enum EventStatusEnum * adStatus, struct _Command_Deprecated * pCommand, struct _Recordset_Deprecated * pRecordset, struct _Connection_Deprecated * pConnection ) {
1379 | HRESULT _result = 0;
1380 | _com_dispatch_method(this, 0x4, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
1381 | L"\x4008\x4003\x4003\x4003\x4003\x0009\x0009\x0009", Source, CursorType, LockType, Options, adStatus, pCommand, pRecordset, pConnection);
1382 | return _result;
1383 | }
1384 |
1385 | inline HRESULT ConnectionEvents_Deprecated::ExecuteComplete ( long RecordsAffected, struct Error * pError, enum EventStatusEnum * adStatus, struct _Command_Deprecated * pCommand, struct _Recordset_Deprecated * pRecordset, struct _Connection_Deprecated * pConnection ) {
1386 | HRESULT _result = 0;
1387 | _com_dispatch_method(this, 0x5, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
1388 | L"\x0003\x0009\x4003\x0009\x0009\x0009", RecordsAffected, pError, adStatus, pCommand, pRecordset, pConnection);
1389 | return _result;
1390 | }
1391 |
1392 | inline HRESULT ConnectionEvents_Deprecated::WillConnect ( BSTR * ConnectionString, BSTR * UserID, BSTR * Password, long * Options, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
1393 | HRESULT _result = 0;
1394 | _com_dispatch_method(this, 0x6, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
1395 | L"\x4008\x4008\x4008\x4003\x4003\x0009", ConnectionString, UserID, Password, Options, adStatus, pConnection);
1396 | return _result;
1397 | }
1398 |
1399 | inline HRESULT ConnectionEvents_Deprecated::ConnectComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
1400 | HRESULT _result = 0;
1401 | _com_dispatch_method(this, 0x7, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
1402 | L"\x0009\x4003\x0009", pError, adStatus, pConnection);
1403 | return _result;
1404 | }
1405 |
1406 | inline HRESULT ConnectionEvents_Deprecated::Disconnect ( enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
1407 | HRESULT _result = 0;
1408 | _com_dispatch_method(this, 0x8, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
1409 | L"\x4003\x0009", adStatus, pConnection);
1410 | return _result;
1411 | }
1412 |
1413 | //
1414 | // dispinterface RecordsetEvents_Deprecated wrapper method implementations
1415 | //
1416 |
1417 | inline HRESULT RecordsetEvents_Deprecated::WillChangeField ( long cFields, const _variant_t & Fields, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
1418 | HRESULT _result = 0;
1419 | _com_dispatch_method(this, 0x9, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
1420 | L"\x0003\x000c\x4003\x0009", cFields, &Fields, adStatus, pRecordset);
1421 | return _result;
1422 | }
1423 |
1424 | inline HRESULT RecordsetEvents_Deprecated::FieldChangeComplete ( long cFields, const _variant_t & Fields, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
1425 | HRESULT _result = 0;
1426 | _com_dispatch_method(this, 0xa, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
1427 | L"\x0003\x000c\x0009\x4003\x0009", cFields, &Fields, pError, adStatus, pRecordset);
1428 | return _result;
1429 | }
1430 |
1431 | inline HRESULT RecordsetEvents_Deprecated::WillChangeRecord ( enum EventReasonEnum adReason, long cRecords, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
1432 | HRESULT _result = 0;
1433 | _com_dispatch_method(this, 0xb, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
1434 | L"\x0003\x0003\x4003\x0009", adReason, cRecords, adStatus, pRecordset);
1435 | return _result;
1436 | }
1437 |
1438 | inline HRESULT RecordsetEvents_Deprecated::RecordChangeComplete ( enum EventReasonEnum adReason, long cRecords, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
1439 | HRESULT _result = 0;
1440 | _com_dispatch_method(this, 0xc, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
1441 | L"\x0003\x0003\x0009\x4003\x0009", adReason, cRecords, pError, adStatus, pRecordset);
1442 | return _result;
1443 | }
1444 |
1445 | inline HRESULT RecordsetEvents_Deprecated::WillChangeRecordset ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
1446 | HRESULT _result = 0;
1447 | _com_dispatch_method(this, 0xd, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
1448 | L"\x0003\x4003\x0009", adReason, adStatus, pRecordset);
1449 | return _result;
1450 | }
1451 |
1452 | inline HRESULT RecordsetEvents_Deprecated::RecordsetChangeComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
1453 | HRESULT _result = 0;
1454 | _com_dispatch_method(this, 0xe, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
1455 | L"\x0003\x0009\x4003\x0009", adReason, pError, adStatus, pRecordset);
1456 | return _result;
1457 | }
1458 |
1459 | inline HRESULT RecordsetEvents_Deprecated::WillMove ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
1460 | HRESULT _result = 0;
1461 | _com_dispatch_method(this, 0xf, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
1462 | L"\x0003\x4003\x0009", adReason, adStatus, pRecordset);
1463 | return _result;
1464 | }
1465 |
1466 | inline HRESULT RecordsetEvents_Deprecated::MoveComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
1467 | HRESULT _result = 0;
1468 | _com_dispatch_method(this, 0x10, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
1469 | L"\x0003\x0009\x4003\x0009", adReason, pError, adStatus, pRecordset);
1470 | return _result;
1471 | }
1472 |
1473 | inline HRESULT RecordsetEvents_Deprecated::EndOfRecordset ( VARIANT_BOOL * fMoreData, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
1474 | HRESULT _result = 0;
1475 | _com_dispatch_method(this, 0x11, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
1476 | L"\x400b\x4003\x0009", fMoreData, adStatus, pRecordset);
1477 | return _result;
1478 | }
1479 |
1480 | inline HRESULT RecordsetEvents_Deprecated::FetchProgress ( long Progress, long MaxProgress, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
1481 | HRESULT _result = 0;
1482 | _com_dispatch_method(this, 0x12, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
1483 | L"\x0003\x0003\x4003\x0009", Progress, MaxProgress, adStatus, pRecordset);
1484 | return _result;
1485 | }
1486 |
1487 | inline HRESULT RecordsetEvents_Deprecated::FetchComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
1488 | HRESULT _result = 0;
1489 | _com_dispatch_method(this, 0x13, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
1490 | L"\x0009\x4003\x0009", pError, adStatus, pRecordset);
1491 | return _result;
1492 | }
1493 |
1494 | //
1495 | // interface _Stream_Deprecated wrapper method implementations
1496 | //
1497 |
1498 | inline ADO_LONGPTR _Stream_Deprecated::GetSize ( ) {
1499 | ADO_LONGPTR _result;
1500 | HRESULT _hr = get_Size(&_result);
1501 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1502 | return _result;
1503 | }
1504 |
1505 | inline VARIANT_BOOL _Stream_Deprecated::GetEOS ( ) {
1506 | VARIANT_BOOL _result = 0;
1507 | HRESULT _hr = get_EOS(&_result);
1508 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1509 | return _result;
1510 | }
1511 |
1512 | inline ADO_LONGPTR _Stream_Deprecated::GetPosition ( ) {
1513 | ADO_LONGPTR _result;
1514 | HRESULT _hr = get_Position(&_result);
1515 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1516 | return _result;
1517 | }
1518 |
1519 | inline void _Stream_Deprecated::PutPosition ( ADO_LONGPTR pPos ) {
1520 | HRESULT _hr = put_Position(pPos);
1521 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1522 | }
1523 |
1524 | inline enum StreamTypeEnum _Stream_Deprecated::GetType ( ) {
1525 | enum StreamTypeEnum _result;
1526 | HRESULT _hr = get_Type(&_result);
1527 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1528 | return _result;
1529 | }
1530 |
1531 | inline void _Stream_Deprecated::PutType ( enum StreamTypeEnum ptype ) {
1532 | HRESULT _hr = put_Type(ptype);
1533 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1534 | }
1535 |
1536 | inline enum LineSeparatorEnum _Stream_Deprecated::GetLineSeparator ( ) {
1537 | enum LineSeparatorEnum _result;
1538 | HRESULT _hr = get_LineSeparator(&_result);
1539 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1540 | return _result;
1541 | }
1542 |
1543 | inline void _Stream_Deprecated::PutLineSeparator ( enum LineSeparatorEnum pLS ) {
1544 | HRESULT _hr = put_LineSeparator(pLS);
1545 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1546 | }
1547 |
1548 | inline enum ObjectStateEnum _Stream_Deprecated::GetState ( ) {
1549 | enum ObjectStateEnum _result;
1550 | HRESULT _hr = get_State(&_result);
1551 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1552 | return _result;
1553 | }
1554 |
1555 | inline enum ConnectModeEnum _Stream_Deprecated::GetMode ( ) {
1556 | enum ConnectModeEnum _result;
1557 | HRESULT _hr = get_Mode(&_result);
1558 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1559 | return _result;
1560 | }
1561 |
1562 | inline void _Stream_Deprecated::PutMode ( enum ConnectModeEnum pMode ) {
1563 | HRESULT _hr = put_Mode(pMode);
1564 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1565 | }
1566 |
1567 | inline _bstr_t _Stream_Deprecated::GetCharset ( ) {
1568 | BSTR _result = 0;
1569 | HRESULT _hr = get_Charset(&_result);
1570 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1571 | return _bstr_t(_result, false);
1572 | }
1573 |
1574 | inline void _Stream_Deprecated::PutCharset ( _bstr_t pbstrCharset ) {
1575 | HRESULT _hr = put_Charset(pbstrCharset);
1576 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1577 | }
1578 |
1579 | inline _variant_t _Stream_Deprecated::Read ( long NumBytes ) {
1580 | VARIANT _result;
1581 | VariantInit(&_result);
1582 | HRESULT _hr = raw_Read(NumBytes, &_result);
1583 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1584 | return _variant_t(_result, false);
1585 | }
1586 |
1587 | inline HRESULT _Stream_Deprecated::Open ( const _variant_t & Source, enum ConnectModeEnum Mode, enum StreamOpenOptionsEnum Options, _bstr_t UserName, _bstr_t Password ) {
1588 | HRESULT _hr = raw_Open(Source, Mode, Options, UserName, Password);
1589 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1590 | return _hr;
1591 | }
1592 |
1593 | inline HRESULT _Stream_Deprecated::Close ( ) {
1594 | HRESULT _hr = raw_Close();
1595 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1596 | return _hr;
1597 | }
1598 |
1599 | inline HRESULT _Stream_Deprecated::SkipLine ( ) {
1600 | HRESULT _hr = raw_SkipLine();
1601 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1602 | return _hr;
1603 | }
1604 |
1605 | inline HRESULT _Stream_Deprecated::Write ( const _variant_t & Buffer ) {
1606 | HRESULT _hr = raw_Write(Buffer);
1607 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1608 | return _hr;
1609 | }
1610 |
1611 | inline HRESULT _Stream_Deprecated::SetEOS ( ) {
1612 | HRESULT _hr = raw_SetEOS();
1613 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1614 | return _hr;
1615 | }
1616 |
1617 | inline HRESULT _Stream_Deprecated::CopyTo ( struct _Stream_Deprecated * DestStream, ADO_LONGPTR CharNumber ) {
1618 | HRESULT _hr = raw_CopyTo(DestStream, CharNumber);
1619 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1620 | return _hr;
1621 | }
1622 |
1623 | inline HRESULT _Stream_Deprecated::Flush ( ) {
1624 | HRESULT _hr = raw_Flush();
1625 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1626 | return _hr;
1627 | }
1628 |
1629 | inline HRESULT _Stream_Deprecated::SaveToFile ( _bstr_t FileName, enum SaveOptionsEnum Options ) {
1630 | HRESULT _hr = raw_SaveToFile(FileName, Options);
1631 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1632 | return _hr;
1633 | }
1634 |
1635 | inline HRESULT _Stream_Deprecated::LoadFromFile ( _bstr_t FileName ) {
1636 | HRESULT _hr = raw_LoadFromFile(FileName);
1637 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1638 | return _hr;
1639 | }
1640 |
1641 | inline _bstr_t _Stream_Deprecated::ReadText ( long NumChars ) {
1642 | BSTR _result = 0;
1643 | HRESULT _hr = raw_ReadText(NumChars, &_result);
1644 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1645 | return _bstr_t(_result, false);
1646 | }
1647 |
1648 | inline HRESULT _Stream_Deprecated::WriteText ( _bstr_t Data, enum StreamWriteEnum Options ) {
1649 | HRESULT _hr = raw_WriteText(Data, Options);
1650 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1651 | return _hr;
1652 | }
1653 |
1654 | inline HRESULT _Stream_Deprecated::Cancel ( ) {
1655 | HRESULT _hr = raw_Cancel();
1656 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1657 | return _hr;
1658 | }
1659 |
1660 | //
1661 | // interface Field15_Deprecated wrapper method implementations
1662 | //
1663 |
1664 | inline ADO_LONGPTR Field15_Deprecated::GetActualSize ( ) {
1665 | ADO_LONGPTR _result;
1666 | HRESULT _hr = get_ActualSize(&_result);
1667 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1668 | return _result;
1669 | }
1670 |
1671 | inline long Field15_Deprecated::GetAttributes ( ) {
1672 | long _result = 0;
1673 | HRESULT _hr = get_Attributes(&_result);
1674 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1675 | return _result;
1676 | }
1677 |
1678 | inline ADO_LONGPTR Field15_Deprecated::GetDefinedSize ( ) {
1679 | ADO_LONGPTR _result;
1680 | HRESULT _hr = get_DefinedSize(&_result);
1681 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1682 | return _result;
1683 | }
1684 |
1685 | inline _bstr_t Field15_Deprecated::GetName ( ) {
1686 | BSTR _result = 0;
1687 | HRESULT _hr = get_Name(&_result);
1688 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1689 | return _bstr_t(_result, false);
1690 | }
1691 |
1692 | inline enum DataTypeEnum Field15_Deprecated::GetType ( ) {
1693 | enum DataTypeEnum _result;
1694 | HRESULT _hr = get_Type(&_result);
1695 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1696 | return _result;
1697 | }
1698 |
1699 | inline _variant_t Field15_Deprecated::GetValue ( ) {
1700 | VARIANT _result;
1701 | VariantInit(&_result);
1702 | HRESULT _hr = get_Value(&_result);
1703 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1704 | return _variant_t(_result, false);
1705 | }
1706 |
1707 | inline void Field15_Deprecated::PutValue ( const _variant_t & pvar ) {
1708 | HRESULT _hr = put_Value(pvar);
1709 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1710 | }
1711 |
1712 | inline unsigned char Field15_Deprecated::GetPrecision ( ) {
1713 | unsigned char _result = 0;
1714 | HRESULT _hr = get_Precision(&_result);
1715 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1716 | return _result;
1717 | }
1718 |
1719 | inline unsigned char Field15_Deprecated::GetNumericScale ( ) {
1720 | unsigned char _result = 0;
1721 | HRESULT _hr = get_NumericScale(&_result);
1722 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1723 | return _result;
1724 | }
1725 |
1726 | inline HRESULT Field15_Deprecated::AppendChunk ( const _variant_t & Data ) {
1727 | HRESULT _hr = raw_AppendChunk(Data);
1728 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1729 | return _hr;
1730 | }
1731 |
1732 | inline _variant_t Field15_Deprecated::GetChunk ( long Length ) {
1733 | VARIANT _result;
1734 | VariantInit(&_result);
1735 | HRESULT _hr = raw_GetChunk(Length, &_result);
1736 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1737 | return _variant_t(_result, false);
1738 | }
1739 |
1740 | inline _variant_t Field15_Deprecated::GetOriginalValue ( ) {
1741 | VARIANT _result;
1742 | VariantInit(&_result);
1743 | HRESULT _hr = get_OriginalValue(&_result);
1744 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1745 | return _variant_t(_result, false);
1746 | }
1747 |
1748 | inline _variant_t Field15_Deprecated::GetUnderlyingValue ( ) {
1749 | VARIANT _result;
1750 | VariantInit(&_result);
1751 | HRESULT _hr = get_UnderlyingValue(&_result);
1752 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1753 | return _variant_t(_result, false);
1754 | }
1755 |
1756 | //
1757 | // interface Command15 wrapper method implementations
1758 | //
1759 |
1760 | inline _ConnectionPtr Command15::GetActiveConnection ( ) {
1761 | struct _Connection * _result = 0;
1762 | HRESULT _hr = get_ActiveConnection(&_result);
1763 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1764 | return _ConnectionPtr(_result, false);
1765 | }
1766 |
1767 | inline void Command15::PutRefActiveConnection ( struct _Connection * ppvObject ) {
1768 | HRESULT _hr = putref_ActiveConnection(ppvObject);
1769 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1770 | }
1771 |
1772 | inline void Command15::PutActiveConnection ( const _variant_t & ppvObject ) {
1773 | HRESULT _hr = put_ActiveConnection(ppvObject);
1774 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1775 | }
1776 |
1777 | inline _bstr_t Command15::GetCommandText ( ) {
1778 | BSTR _result = 0;
1779 | HRESULT _hr = get_CommandText(&_result);
1780 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1781 | return _bstr_t(_result, false);
1782 | }
1783 |
1784 | inline void Command15::PutCommandText ( _bstr_t pbstr ) {
1785 | HRESULT _hr = put_CommandText(pbstr);
1786 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1787 | }
1788 |
1789 | inline long Command15::GetCommandTimeout ( ) {
1790 | long _result = 0;
1791 | HRESULT _hr = get_CommandTimeout(&_result);
1792 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1793 | return _result;
1794 | }
1795 |
1796 | inline void Command15::PutCommandTimeout ( long pl ) {
1797 | HRESULT _hr = put_CommandTimeout(pl);
1798 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1799 | }
1800 |
1801 | inline VARIANT_BOOL Command15::GetPrepared ( ) {
1802 | VARIANT_BOOL _result = 0;
1803 | HRESULT _hr = get_Prepared(&_result);
1804 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1805 | return _result;
1806 | }
1807 |
1808 | inline void Command15::PutPrepared ( VARIANT_BOOL pfPrepared ) {
1809 | HRESULT _hr = put_Prepared(pfPrepared);
1810 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1811 | }
1812 |
1813 | inline _RecordsetPtr Command15::Execute ( VARIANT * RecordsAffected, VARIANT * Parameters, long Options ) {
1814 | struct _Recordset * _result = 0;
1815 | HRESULT _hr = raw_Execute(RecordsAffected, Parameters, Options, &_result);
1816 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1817 | return _RecordsetPtr(_result, false);
1818 | }
1819 |
1820 | inline _ParameterPtr Command15::CreateParameter ( _bstr_t Name, enum DataTypeEnum Type, enum ParameterDirectionEnum Direction, long Size, const _variant_t & Value ) {
1821 | struct _Parameter * _result = 0;
1822 | HRESULT _hr = raw_CreateParameter(Name, Type, Direction, Size, Value, &_result);
1823 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1824 | return _ParameterPtr(_result, false);
1825 | }
1826 |
1827 | inline ParametersPtr Command15::GetParameters ( ) {
1828 | struct Parameters * _result = 0;
1829 | HRESULT _hr = get_Parameters(&_result);
1830 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1831 | return ParametersPtr(_result, false);
1832 | }
1833 |
1834 | inline void Command15::PutCommandType ( enum CommandTypeEnum plCmdType ) {
1835 | HRESULT _hr = put_CommandType(plCmdType);
1836 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1837 | }
1838 |
1839 | inline enum CommandTypeEnum Command15::GetCommandType ( ) {
1840 | enum CommandTypeEnum _result;
1841 | HRESULT _hr = get_CommandType(&_result);
1842 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1843 | return _result;
1844 | }
1845 |
1846 | inline _bstr_t Command15::GetName ( ) {
1847 | BSTR _result = 0;
1848 | HRESULT _hr = get_Name(&_result);
1849 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1850 | return _bstr_t(_result, false);
1851 | }
1852 |
1853 | inline void Command15::PutName ( _bstr_t pbstrName ) {
1854 | HRESULT _hr = put_Name(pbstrName);
1855 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1856 | }
1857 |
1858 | //
1859 | // interface Command25 wrapper method implementations
1860 | //
1861 |
1862 | inline long Command25::GetState ( ) {
1863 | long _result = 0;
1864 | HRESULT _hr = get_State(&_result);
1865 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1866 | return _result;
1867 | }
1868 |
1869 | inline HRESULT Command25::Cancel ( ) {
1870 | HRESULT _hr = raw_Cancel();
1871 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1872 | return _hr;
1873 | }
1874 |
1875 | //
1876 | // interface _Command wrapper method implementations
1877 | //
1878 |
1879 | inline void _Command::PutRefCommandStream ( IUnknown * pvStream ) {
1880 | HRESULT _hr = putref_CommandStream(pvStream);
1881 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1882 | }
1883 |
1884 | inline _variant_t _Command::GetCommandStream ( ) {
1885 | VARIANT _result;
1886 | VariantInit(&_result);
1887 | HRESULT _hr = get_CommandStream(&_result);
1888 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1889 | return _variant_t(_result, false);
1890 | }
1891 |
1892 | inline void _Command::PutDialect ( _bstr_t pbstrDialect ) {
1893 | HRESULT _hr = put_Dialect(pbstrDialect);
1894 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1895 | }
1896 |
1897 | inline _bstr_t _Command::GetDialect ( ) {
1898 | BSTR _result = 0;
1899 | HRESULT _hr = get_Dialect(&_result);
1900 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1901 | return _bstr_t(_result, false);
1902 | }
1903 |
1904 | inline void _Command::PutNamedParameters ( VARIANT_BOOL pfNamedParameters ) {
1905 | HRESULT _hr = put_NamedParameters(pfNamedParameters);
1906 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1907 | }
1908 |
1909 | inline VARIANT_BOOL _Command::GetNamedParameters ( ) {
1910 | VARIANT_BOOL _result = 0;
1911 | HRESULT _hr = get_NamedParameters(&_result);
1912 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1913 | return _result;
1914 | }
1915 |
1916 | //
1917 | // interface Connection15 wrapper method implementations
1918 | //
1919 |
1920 | inline _bstr_t Connection15::GetConnectionString ( ) {
1921 | BSTR _result = 0;
1922 | HRESULT _hr = get_ConnectionString(&_result);
1923 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1924 | return _bstr_t(_result, false);
1925 | }
1926 |
1927 | inline void Connection15::PutConnectionString ( _bstr_t pbstr ) {
1928 | HRESULT _hr = put_ConnectionString(pbstr);
1929 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1930 | }
1931 |
1932 | inline long Connection15::GetCommandTimeout ( ) {
1933 | long _result = 0;
1934 | HRESULT _hr = get_CommandTimeout(&_result);
1935 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1936 | return _result;
1937 | }
1938 |
1939 | inline void Connection15::PutCommandTimeout ( long plTimeout ) {
1940 | HRESULT _hr = put_CommandTimeout(plTimeout);
1941 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1942 | }
1943 |
1944 | inline long Connection15::GetConnectionTimeout ( ) {
1945 | long _result = 0;
1946 | HRESULT _hr = get_ConnectionTimeout(&_result);
1947 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1948 | return _result;
1949 | }
1950 |
1951 | inline void Connection15::PutConnectionTimeout ( long plTimeout ) {
1952 | HRESULT _hr = put_ConnectionTimeout(plTimeout);
1953 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1954 | }
1955 |
1956 | inline _bstr_t Connection15::GetVersion ( ) {
1957 | BSTR _result = 0;
1958 | HRESULT _hr = get_Version(&_result);
1959 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1960 | return _bstr_t(_result, false);
1961 | }
1962 |
1963 | inline HRESULT Connection15::Close ( ) {
1964 | HRESULT _hr = raw_Close();
1965 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1966 | return _hr;
1967 | }
1968 |
1969 | inline _RecordsetPtr Connection15::Execute ( _bstr_t CommandText, VARIANT * RecordsAffected, long Options ) {
1970 | struct _Recordset * _result = 0;
1971 | HRESULT _hr = raw_Execute(CommandText, RecordsAffected, Options, &_result);
1972 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1973 | return _RecordsetPtr(_result, false);
1974 | }
1975 |
1976 | inline long Connection15::BeginTrans ( ) {
1977 | long _result = 0;
1978 | HRESULT _hr = raw_BeginTrans(&_result);
1979 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1980 | return _result;
1981 | }
1982 |
1983 | inline HRESULT Connection15::CommitTrans ( ) {
1984 | HRESULT _hr = raw_CommitTrans();
1985 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1986 | return _hr;
1987 | }
1988 |
1989 | inline HRESULT Connection15::RollbackTrans ( ) {
1990 | HRESULT _hr = raw_RollbackTrans();
1991 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1992 | return _hr;
1993 | }
1994 |
1995 | inline HRESULT Connection15::Open ( _bstr_t ConnectionString, _bstr_t UserID, _bstr_t Password, long Options ) {
1996 | HRESULT _hr = raw_Open(ConnectionString, UserID, Password, Options);
1997 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
1998 | return _hr;
1999 | }
2000 |
2001 | inline ErrorsPtr Connection15::GetErrors ( ) {
2002 | struct Errors * _result = 0;
2003 | HRESULT _hr = get_Errors(&_result);
2004 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2005 | return ErrorsPtr(_result, false);
2006 | }
2007 |
2008 | inline _bstr_t Connection15::GetDefaultDatabase ( ) {
2009 | BSTR _result = 0;
2010 | HRESULT _hr = get_DefaultDatabase(&_result);
2011 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2012 | return _bstr_t(_result, false);
2013 | }
2014 |
2015 | inline void Connection15::PutDefaultDatabase ( _bstr_t pbstr ) {
2016 | HRESULT _hr = put_DefaultDatabase(pbstr);
2017 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2018 | }
2019 |
2020 | inline enum IsolationLevelEnum Connection15::GetIsolationLevel ( ) {
2021 | enum IsolationLevelEnum _result;
2022 | HRESULT _hr = get_IsolationLevel(&_result);
2023 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2024 | return _result;
2025 | }
2026 |
2027 | inline void Connection15::PutIsolationLevel ( enum IsolationLevelEnum Level ) {
2028 | HRESULT _hr = put_IsolationLevel(Level);
2029 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2030 | }
2031 |
2032 | inline long Connection15::GetAttributes ( ) {
2033 | long _result = 0;
2034 | HRESULT _hr = get_Attributes(&_result);
2035 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2036 | return _result;
2037 | }
2038 |
2039 | inline void Connection15::PutAttributes ( long plAttr ) {
2040 | HRESULT _hr = put_Attributes(plAttr);
2041 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2042 | }
2043 |
2044 | inline enum CursorLocationEnum Connection15::GetCursorLocation ( ) {
2045 | enum CursorLocationEnum _result;
2046 | HRESULT _hr = get_CursorLocation(&_result);
2047 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2048 | return _result;
2049 | }
2050 |
2051 | inline void Connection15::PutCursorLocation ( enum CursorLocationEnum plCursorLoc ) {
2052 | HRESULT _hr = put_CursorLocation(plCursorLoc);
2053 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2054 | }
2055 |
2056 | inline enum ConnectModeEnum Connection15::GetMode ( ) {
2057 | enum ConnectModeEnum _result;
2058 | HRESULT _hr = get_Mode(&_result);
2059 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2060 | return _result;
2061 | }
2062 |
2063 | inline void Connection15::PutMode ( enum ConnectModeEnum plMode ) {
2064 | HRESULT _hr = put_Mode(plMode);
2065 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2066 | }
2067 |
2068 | inline _bstr_t Connection15::GetProvider ( ) {
2069 | BSTR _result = 0;
2070 | HRESULT _hr = get_Provider(&_result);
2071 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2072 | return _bstr_t(_result, false);
2073 | }
2074 |
2075 | inline void Connection15::PutProvider ( _bstr_t pbstr ) {
2076 | HRESULT _hr = put_Provider(pbstr);
2077 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2078 | }
2079 |
2080 | inline long Connection15::GetState ( ) {
2081 | long _result = 0;
2082 | HRESULT _hr = get_State(&_result);
2083 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2084 | return _result;
2085 | }
2086 |
2087 | inline _RecordsetPtr Connection15::OpenSchema ( enum SchemaEnum Schema, const _variant_t & Restrictions, const _variant_t & SchemaID ) {
2088 | struct _Recordset * _result = 0;
2089 | HRESULT _hr = raw_OpenSchema(Schema, Restrictions, SchemaID, &_result);
2090 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2091 | return _RecordsetPtr(_result, false);
2092 | }
2093 |
2094 | //
2095 | // interface _Connection wrapper method implementations
2096 | //
2097 |
2098 | inline HRESULT _Connection::Cancel ( ) {
2099 | HRESULT _hr = raw_Cancel();
2100 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2101 | return _hr;
2102 | }
2103 |
2104 | //
2105 | // interface Recordset15 wrapper method implementations
2106 | //
2107 |
2108 | inline enum PositionEnum Recordset15::GetAbsolutePosition ( ) {
2109 | enum PositionEnum _result;
2110 | HRESULT _hr = get_AbsolutePosition(&_result);
2111 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2112 | return _result;
2113 | }
2114 |
2115 | inline void Recordset15::PutAbsolutePosition ( enum PositionEnum pl ) {
2116 | HRESULT _hr = put_AbsolutePosition(pl);
2117 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2118 | }
2119 |
2120 | inline void Recordset15::PutRefActiveConnection ( IDispatch * pvar ) {
2121 | HRESULT _hr = putref_ActiveConnection(pvar);
2122 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2123 | }
2124 |
2125 | inline void Recordset15::PutActiveConnection ( const _variant_t & pvar ) {
2126 | HRESULT _hr = put_ActiveConnection(pvar);
2127 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2128 | }
2129 |
2130 | inline _variant_t Recordset15::GetActiveConnection ( ) {
2131 | VARIANT _result;
2132 | VariantInit(&_result);
2133 | HRESULT _hr = get_ActiveConnection(&_result);
2134 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2135 | return _variant_t(_result, false);
2136 | }
2137 |
2138 | inline VARIANT_BOOL Recordset15::GetBOF ( ) {
2139 | VARIANT_BOOL _result = 0;
2140 | HRESULT _hr = get_BOF(&_result);
2141 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2142 | return _result;
2143 | }
2144 |
2145 | inline _variant_t Recordset15::GetBookmark ( ) {
2146 | VARIANT _result;
2147 | VariantInit(&_result);
2148 | HRESULT _hr = get_Bookmark(&_result);
2149 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2150 | return _variant_t(_result, false);
2151 | }
2152 |
2153 | inline void Recordset15::PutBookmark ( const _variant_t & pvBookmark ) {
2154 | HRESULT _hr = put_Bookmark(pvBookmark);
2155 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2156 | }
2157 |
2158 | inline long Recordset15::GetCacheSize ( ) {
2159 | long _result = 0;
2160 | HRESULT _hr = get_CacheSize(&_result);
2161 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2162 | return _result;
2163 | }
2164 |
2165 | inline void Recordset15::PutCacheSize ( long pl ) {
2166 | HRESULT _hr = put_CacheSize(pl);
2167 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2168 | }
2169 |
2170 | inline enum CursorTypeEnum Recordset15::GetCursorType ( ) {
2171 | enum CursorTypeEnum _result;
2172 | HRESULT _hr = get_CursorType(&_result);
2173 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2174 | return _result;
2175 | }
2176 |
2177 | inline void Recordset15::PutCursorType ( enum CursorTypeEnum plCursorType ) {
2178 | HRESULT _hr = put_CursorType(plCursorType);
2179 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2180 | }
2181 |
2182 | inline VARIANT_BOOL Recordset15::GetadoEOF ( ) {
2183 | VARIANT_BOOL _result = 0;
2184 | HRESULT _hr = get_adoEOF(&_result);
2185 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2186 | return _result;
2187 | }
2188 |
2189 | inline FieldsPtr Recordset15::GetFields ( ) {
2190 | struct Fields * _result = 0;
2191 | HRESULT _hr = get_Fields(&_result);
2192 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2193 | return FieldsPtr(_result, false);
2194 | }
2195 |
2196 | inline enum LockTypeEnum Recordset15::GetLockType ( ) {
2197 | enum LockTypeEnum _result;
2198 | HRESULT _hr = get_LockType(&_result);
2199 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2200 | return _result;
2201 | }
2202 |
2203 | inline void Recordset15::PutLockType ( enum LockTypeEnum plLockType ) {
2204 | HRESULT _hr = put_LockType(plLockType);
2205 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2206 | }
2207 |
2208 | inline long Recordset15::GetMaxRecords ( ) {
2209 | long _result = 0;
2210 | HRESULT _hr = get_MaxRecords(&_result);
2211 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2212 | return _result;
2213 | }
2214 |
2215 | inline void Recordset15::PutMaxRecords ( long plMaxRecords ) {
2216 | HRESULT _hr = put_MaxRecords(plMaxRecords);
2217 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2218 | }
2219 |
2220 | inline long Recordset15::GetRecordCount ( ) {
2221 | long _result = 0;
2222 | HRESULT _hr = get_RecordCount(&_result);
2223 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2224 | return _result;
2225 | }
2226 |
2227 | inline void Recordset15::PutRefSource ( IDispatch * pvSource ) {
2228 | HRESULT _hr = putref_Source(pvSource);
2229 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2230 | }
2231 |
2232 | inline void Recordset15::PutSource ( _bstr_t pvSource ) {
2233 | HRESULT _hr = put_Source(pvSource);
2234 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2235 | }
2236 |
2237 | inline _variant_t Recordset15::GetSource ( ) {
2238 | VARIANT _result;
2239 | VariantInit(&_result);
2240 | HRESULT _hr = get_Source(&_result);
2241 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2242 | return _variant_t(_result, false);
2243 | }
2244 |
2245 | inline HRESULT Recordset15::AddNew ( const _variant_t & FieldList, const _variant_t & Values ) {
2246 | HRESULT _hr = raw_AddNew(FieldList, Values);
2247 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2248 | return _hr;
2249 | }
2250 |
2251 | inline HRESULT Recordset15::CancelUpdate ( ) {
2252 | HRESULT _hr = raw_CancelUpdate();
2253 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2254 | return _hr;
2255 | }
2256 |
2257 | inline HRESULT Recordset15::Close ( ) {
2258 | HRESULT _hr = raw_Close();
2259 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2260 | return _hr;
2261 | }
2262 |
2263 | inline HRESULT Recordset15::Delete ( enum AffectEnum AffectRecords ) {
2264 | HRESULT _hr = raw_Delete(AffectRecords);
2265 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2266 | return _hr;
2267 | }
2268 |
2269 | inline _variant_t Recordset15::GetRows ( long Rows, const _variant_t & Start, const _variant_t & Fields ) {
2270 | VARIANT _result;
2271 | VariantInit(&_result);
2272 | HRESULT _hr = raw_GetRows(Rows, Start, Fields, &_result);
2273 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2274 | return _variant_t(_result, false);
2275 | }
2276 |
2277 | inline HRESULT Recordset15::Move ( long NumRecords, const _variant_t & Start ) {
2278 | HRESULT _hr = raw_Move(NumRecords, Start);
2279 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2280 | return _hr;
2281 | }
2282 |
2283 | inline HRESULT Recordset15::MoveNext ( ) {
2284 | HRESULT _hr = raw_MoveNext();
2285 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2286 | return _hr;
2287 | }
2288 |
2289 | inline HRESULT Recordset15::MovePrevious ( ) {
2290 | HRESULT _hr = raw_MovePrevious();
2291 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2292 | return _hr;
2293 | }
2294 |
2295 | inline HRESULT Recordset15::MoveFirst ( ) {
2296 | HRESULT _hr = raw_MoveFirst();
2297 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2298 | return _hr;
2299 | }
2300 |
2301 | inline HRESULT Recordset15::MoveLast ( ) {
2302 | HRESULT _hr = raw_MoveLast();
2303 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2304 | return _hr;
2305 | }
2306 |
2307 | inline HRESULT Recordset15::Open ( const _variant_t & Source, const _variant_t & ActiveConnection, enum CursorTypeEnum CursorType, enum LockTypeEnum LockType, long Options ) {
2308 | HRESULT _hr = raw_Open(Source, ActiveConnection, CursorType, LockType, Options);
2309 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2310 | return _hr;
2311 | }
2312 |
2313 | inline HRESULT Recordset15::Requery ( long Options ) {
2314 | HRESULT _hr = raw_Requery(Options);
2315 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2316 | return _hr;
2317 | }
2318 |
2319 | inline HRESULT Recordset15::_xResync ( enum AffectEnum AffectRecords ) {
2320 | HRESULT _hr = raw__xResync(AffectRecords);
2321 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2322 | return _hr;
2323 | }
2324 |
2325 | inline HRESULT Recordset15::Update ( const _variant_t & Fields, const _variant_t & Values ) {
2326 | HRESULT _hr = raw_Update(Fields, Values);
2327 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2328 | return _hr;
2329 | }
2330 |
2331 | inline enum PositionEnum Recordset15::GetAbsolutePage ( ) {
2332 | enum PositionEnum _result;
2333 | HRESULT _hr = get_AbsolutePage(&_result);
2334 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2335 | return _result;
2336 | }
2337 |
2338 | inline void Recordset15::PutAbsolutePage ( enum PositionEnum pl ) {
2339 | HRESULT _hr = put_AbsolutePage(pl);
2340 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2341 | }
2342 |
2343 | inline enum EditModeEnum Recordset15::GetEditMode ( ) {
2344 | enum EditModeEnum _result;
2345 | HRESULT _hr = get_EditMode(&_result);
2346 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2347 | return _result;
2348 | }
2349 |
2350 | inline _variant_t Recordset15::GetFilter ( ) {
2351 | VARIANT _result;
2352 | VariantInit(&_result);
2353 | HRESULT _hr = get_Filter(&_result);
2354 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2355 | return _variant_t(_result, false);
2356 | }
2357 |
2358 | inline void Recordset15::PutFilter ( const _variant_t & Criteria ) {
2359 | HRESULT _hr = put_Filter(Criteria);
2360 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2361 | }
2362 |
2363 | inline long Recordset15::GetPageCount ( ) {
2364 | long _result = 0;
2365 | HRESULT _hr = get_PageCount(&_result);
2366 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2367 | return _result;
2368 | }
2369 |
2370 | inline long Recordset15::GetPageSize ( ) {
2371 | long _result = 0;
2372 | HRESULT _hr = get_PageSize(&_result);
2373 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2374 | return _result;
2375 | }
2376 |
2377 | inline void Recordset15::PutPageSize ( long pl ) {
2378 | HRESULT _hr = put_PageSize(pl);
2379 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2380 | }
2381 |
2382 | inline _bstr_t Recordset15::GetSort ( ) {
2383 | BSTR _result = 0;
2384 | HRESULT _hr = get_Sort(&_result);
2385 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2386 | return _bstr_t(_result, false);
2387 | }
2388 |
2389 | inline void Recordset15::PutSort ( _bstr_t Criteria ) {
2390 | HRESULT _hr = put_Sort(Criteria);
2391 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2392 | }
2393 |
2394 | inline long Recordset15::GetStatus ( ) {
2395 | long _result = 0;
2396 | HRESULT _hr = get_Status(&_result);
2397 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2398 | return _result;
2399 | }
2400 |
2401 | inline long Recordset15::GetState ( ) {
2402 | long _result = 0;
2403 | HRESULT _hr = get_State(&_result);
2404 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2405 | return _result;
2406 | }
2407 |
2408 | inline _RecordsetPtr Recordset15::_xClone ( ) {
2409 | struct _Recordset * _result = 0;
2410 | HRESULT _hr = raw__xClone(&_result);
2411 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2412 | return _RecordsetPtr(_result, false);
2413 | }
2414 |
2415 | inline HRESULT Recordset15::UpdateBatch ( enum AffectEnum AffectRecords ) {
2416 | HRESULT _hr = raw_UpdateBatch(AffectRecords);
2417 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2418 | return _hr;
2419 | }
2420 |
2421 | inline HRESULT Recordset15::CancelBatch ( enum AffectEnum AffectRecords ) {
2422 | HRESULT _hr = raw_CancelBatch(AffectRecords);
2423 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2424 | return _hr;
2425 | }
2426 |
2427 | inline enum CursorLocationEnum Recordset15::GetCursorLocation ( ) {
2428 | enum CursorLocationEnum _result;
2429 | HRESULT _hr = get_CursorLocation(&_result);
2430 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2431 | return _result;
2432 | }
2433 |
2434 | inline void Recordset15::PutCursorLocation ( enum CursorLocationEnum plCursorLoc ) {
2435 | HRESULT _hr = put_CursorLocation(plCursorLoc);
2436 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2437 | }
2438 |
2439 | inline _RecordsetPtr Recordset15::NextRecordset ( VARIANT * RecordsAffected ) {
2440 | struct _Recordset * _result = 0;
2441 | HRESULT _hr = raw_NextRecordset(RecordsAffected, &_result);
2442 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2443 | return _RecordsetPtr(_result, false);
2444 | }
2445 |
2446 | inline VARIANT_BOOL Recordset15::Supports ( enum CursorOptionEnum CursorOptions ) {
2447 | VARIANT_BOOL _result = 0;
2448 | HRESULT _hr = raw_Supports(CursorOptions, &_result);
2449 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2450 | return _result;
2451 | }
2452 |
2453 | inline _variant_t Recordset15::GetCollect ( const _variant_t & Index ) {
2454 | VARIANT _result;
2455 | VariantInit(&_result);
2456 | HRESULT _hr = get_Collect(Index, &_result);
2457 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2458 | return _variant_t(_result, false);
2459 | }
2460 |
2461 | inline void Recordset15::PutCollect ( const _variant_t & Index, const _variant_t & pvar ) {
2462 | HRESULT _hr = put_Collect(Index, pvar);
2463 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2464 | }
2465 |
2466 | inline enum MarshalOptionsEnum Recordset15::GetMarshalOptions ( ) {
2467 | enum MarshalOptionsEnum _result;
2468 | HRESULT _hr = get_MarshalOptions(&_result);
2469 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2470 | return _result;
2471 | }
2472 |
2473 | inline void Recordset15::PutMarshalOptions ( enum MarshalOptionsEnum peMarshal ) {
2474 | HRESULT _hr = put_MarshalOptions(peMarshal);
2475 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2476 | }
2477 |
2478 | inline HRESULT Recordset15::Find ( _bstr_t Criteria, long SkipRecords, enum SearchDirectionEnum SearchDirection, const _variant_t & Start ) {
2479 | HRESULT _hr = raw_Find(Criteria, SkipRecords, SearchDirection, Start);
2480 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2481 | return _hr;
2482 | }
2483 |
2484 | //
2485 | // interface Recordset20 wrapper method implementations
2486 | //
2487 |
2488 | inline HRESULT Recordset20::Cancel ( ) {
2489 | HRESULT _hr = raw_Cancel();
2490 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2491 | return _hr;
2492 | }
2493 |
2494 | inline IUnknownPtr Recordset20::GetDataSource ( ) {
2495 | IUnknown * _result = 0;
2496 | HRESULT _hr = get_DataSource(&_result);
2497 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2498 | return IUnknownPtr(_result, false);
2499 | }
2500 |
2501 | inline void Recordset20::PutRefDataSource ( IUnknown * ppunkDataSource ) {
2502 | HRESULT _hr = putref_DataSource(ppunkDataSource);
2503 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2504 | }
2505 |
2506 | inline HRESULT Recordset20::_xSave ( _bstr_t FileName, enum PersistFormatEnum PersistFormat ) {
2507 | HRESULT _hr = raw__xSave(FileName, PersistFormat);
2508 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2509 | return _hr;
2510 | }
2511 |
2512 | inline IDispatchPtr Recordset20::GetActiveCommand ( ) {
2513 | IDispatch * _result = 0;
2514 | HRESULT _hr = get_ActiveCommand(&_result);
2515 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2516 | return IDispatchPtr(_result, false);
2517 | }
2518 |
2519 | inline void Recordset20::PutStayInSync ( VARIANT_BOOL pbStayInSync ) {
2520 | HRESULT _hr = put_StayInSync(pbStayInSync);
2521 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2522 | }
2523 |
2524 | inline VARIANT_BOOL Recordset20::GetStayInSync ( ) {
2525 | VARIANT_BOOL _result = 0;
2526 | HRESULT _hr = get_StayInSync(&_result);
2527 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2528 | return _result;
2529 | }
2530 |
2531 | inline _bstr_t Recordset20::GetString ( enum StringFormatEnum StringFormat, long NumRows, _bstr_t ColumnDelimeter, _bstr_t RowDelimeter, _bstr_t NullExpr ) {
2532 | BSTR _result = 0;
2533 | HRESULT _hr = raw_GetString(StringFormat, NumRows, ColumnDelimeter, RowDelimeter, NullExpr, &_result);
2534 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2535 | return _bstr_t(_result, false);
2536 | }
2537 |
2538 | inline _bstr_t Recordset20::GetDataMember ( ) {
2539 | BSTR _result = 0;
2540 | HRESULT _hr = get_DataMember(&_result);
2541 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2542 | return _bstr_t(_result, false);
2543 | }
2544 |
2545 | inline void Recordset20::PutDataMember ( _bstr_t pbstrDataMember ) {
2546 | HRESULT _hr = put_DataMember(pbstrDataMember);
2547 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2548 | }
2549 |
2550 | inline enum CompareEnum Recordset20::CompareBookmarks ( const _variant_t & Bookmark1, const _variant_t & Bookmark2 ) {
2551 | enum CompareEnum _result;
2552 | HRESULT _hr = raw_CompareBookmarks(Bookmark1, Bookmark2, &_result);
2553 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2554 | return _result;
2555 | }
2556 |
2557 | inline _RecordsetPtr Recordset20::Clone ( enum LockTypeEnum LockType ) {
2558 | struct _Recordset * _result = 0;
2559 | HRESULT _hr = raw_Clone(LockType, &_result);
2560 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2561 | return _RecordsetPtr(_result, false);
2562 | }
2563 |
2564 | inline HRESULT Recordset20::Resync ( enum AffectEnum AffectRecords, enum ResyncEnum ResyncValues ) {
2565 | HRESULT _hr = raw_Resync(AffectRecords, ResyncValues);
2566 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2567 | return _hr;
2568 | }
2569 |
2570 | //
2571 | // interface Recordset21 wrapper method implementations
2572 | //
2573 |
2574 | inline HRESULT Recordset21::Seek ( const _variant_t & KeyValues, enum SeekEnum SeekOption ) {
2575 | HRESULT _hr = raw_Seek(KeyValues, SeekOption);
2576 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2577 | return _hr;
2578 | }
2579 |
2580 | inline void Recordset21::PutIndex ( _bstr_t pbstrIndex ) {
2581 | HRESULT _hr = put_Index(pbstrIndex);
2582 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2583 | }
2584 |
2585 | inline _bstr_t Recordset21::GetIndex ( ) {
2586 | BSTR _result = 0;
2587 | HRESULT _hr = get_Index(&_result);
2588 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2589 | return _bstr_t(_result, false);
2590 | }
2591 |
2592 | //
2593 | // interface _Recordset wrapper method implementations
2594 | //
2595 |
2596 | inline HRESULT _Recordset::Save ( const _variant_t & Destination, enum PersistFormatEnum PersistFormat ) {
2597 | HRESULT _hr = raw_Save(Destination, PersistFormat);
2598 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2599 | return _hr;
2600 | }
2601 |
2602 | //
2603 | // interface ConnectionEventsVt wrapper method implementations
2604 | //
2605 |
2606 | inline HRESULT ConnectionEventsVt::InfoMessage ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
2607 | HRESULT _hr = raw_InfoMessage(pError, adStatus, pConnection);
2608 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2609 | return _hr;
2610 | }
2611 |
2612 | inline HRESULT ConnectionEventsVt::BeginTransComplete ( long TransactionLevel, struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
2613 | HRESULT _hr = raw_BeginTransComplete(TransactionLevel, pError, adStatus, pConnection);
2614 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2615 | return _hr;
2616 | }
2617 |
2618 | inline HRESULT ConnectionEventsVt::CommitTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
2619 | HRESULT _hr = raw_CommitTransComplete(pError, adStatus, pConnection);
2620 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2621 | return _hr;
2622 | }
2623 |
2624 | inline HRESULT ConnectionEventsVt::RollbackTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
2625 | HRESULT _hr = raw_RollbackTransComplete(pError, adStatus, pConnection);
2626 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2627 | return _hr;
2628 | }
2629 |
2630 | inline HRESULT ConnectionEventsVt::WillExecute ( BSTR * Source, enum CursorTypeEnum * CursorType, enum LockTypeEnum * LockType, long * Options, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) {
2631 | HRESULT _hr = raw_WillExecute(Source, CursorType, LockType, Options, adStatus, pCommand, pRecordset, pConnection);
2632 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2633 | return _hr;
2634 | }
2635 |
2636 | inline HRESULT ConnectionEventsVt::ExecuteComplete ( long RecordsAffected, struct Error * pError, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) {
2637 | HRESULT _hr = raw_ExecuteComplete(RecordsAffected, pError, adStatus, pCommand, pRecordset, pConnection);
2638 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2639 | return _hr;
2640 | }
2641 |
2642 | inline HRESULT ConnectionEventsVt::WillConnect ( BSTR * ConnectionString, BSTR * UserID, BSTR * Password, long * Options, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
2643 | HRESULT _hr = raw_WillConnect(ConnectionString, UserID, Password, Options, adStatus, pConnection);
2644 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2645 | return _hr;
2646 | }
2647 |
2648 | inline HRESULT ConnectionEventsVt::ConnectComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
2649 | HRESULT _hr = raw_ConnectComplete(pError, adStatus, pConnection);
2650 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2651 | return _hr;
2652 | }
2653 |
2654 | inline HRESULT ConnectionEventsVt::Disconnect ( enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
2655 | HRESULT _hr = raw_Disconnect(adStatus, pConnection);
2656 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2657 | return _hr;
2658 | }
2659 |
2660 | //
2661 | // interface RecordsetEventsVt wrapper method implementations
2662 | //
2663 |
2664 | inline HRESULT RecordsetEventsVt::WillChangeField ( long cFields, const _variant_t & Fields, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
2665 | HRESULT _hr = raw_WillChangeField(cFields, Fields, adStatus, pRecordset);
2666 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2667 | return _hr;
2668 | }
2669 |
2670 | inline HRESULT RecordsetEventsVt::FieldChangeComplete ( long cFields, const _variant_t & Fields, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
2671 | HRESULT _hr = raw_FieldChangeComplete(cFields, Fields, pError, adStatus, pRecordset);
2672 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2673 | return _hr;
2674 | }
2675 |
2676 | inline HRESULT RecordsetEventsVt::WillChangeRecord ( enum EventReasonEnum adReason, long cRecords, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
2677 | HRESULT _hr = raw_WillChangeRecord(adReason, cRecords, adStatus, pRecordset);
2678 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2679 | return _hr;
2680 | }
2681 |
2682 | inline HRESULT RecordsetEventsVt::RecordChangeComplete ( enum EventReasonEnum adReason, long cRecords, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
2683 | HRESULT _hr = raw_RecordChangeComplete(adReason, cRecords, pError, adStatus, pRecordset);
2684 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2685 | return _hr;
2686 | }
2687 |
2688 | inline HRESULT RecordsetEventsVt::WillChangeRecordset ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
2689 | HRESULT _hr = raw_WillChangeRecordset(adReason, adStatus, pRecordset);
2690 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2691 | return _hr;
2692 | }
2693 |
2694 | inline HRESULT RecordsetEventsVt::RecordsetChangeComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
2695 | HRESULT _hr = raw_RecordsetChangeComplete(adReason, pError, adStatus, pRecordset);
2696 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2697 | return _hr;
2698 | }
2699 |
2700 | inline HRESULT RecordsetEventsVt::WillMove ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
2701 | HRESULT _hr = raw_WillMove(adReason, adStatus, pRecordset);
2702 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2703 | return _hr;
2704 | }
2705 |
2706 | inline HRESULT RecordsetEventsVt::MoveComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
2707 | HRESULT _hr = raw_MoveComplete(adReason, pError, adStatus, pRecordset);
2708 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2709 | return _hr;
2710 | }
2711 |
2712 | inline HRESULT RecordsetEventsVt::EndOfRecordset ( VARIANT_BOOL * fMoreData, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
2713 | HRESULT _hr = raw_EndOfRecordset(fMoreData, adStatus, pRecordset);
2714 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2715 | return _hr;
2716 | }
2717 |
2718 | inline HRESULT RecordsetEventsVt::FetchProgress ( long Progress, long MaxProgress, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
2719 | HRESULT _hr = raw_FetchProgress(Progress, MaxProgress, adStatus, pRecordset);
2720 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2721 | return _hr;
2722 | }
2723 |
2724 | inline HRESULT RecordsetEventsVt::FetchComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
2725 | HRESULT _hr = raw_FetchComplete(pError, adStatus, pRecordset);
2726 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2727 | return _hr;
2728 | }
2729 |
2730 | //
2731 | // interface _Record wrapper method implementations
2732 | //
2733 |
2734 | inline _variant_t _Record::GetActiveConnection ( ) {
2735 | VARIANT _result;
2736 | VariantInit(&_result);
2737 | HRESULT _hr = get_ActiveConnection(&_result);
2738 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2739 | return _variant_t(_result, false);
2740 | }
2741 |
2742 | inline void _Record::PutActiveConnection ( _bstr_t pvar ) {
2743 | HRESULT _hr = put_ActiveConnection(pvar);
2744 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2745 | }
2746 |
2747 | inline void _Record::PutRefActiveConnection ( struct _Connection * pvar ) {
2748 | HRESULT _hr = putref_ActiveConnection(pvar);
2749 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2750 | }
2751 |
2752 | inline enum ObjectStateEnum _Record::GetState ( ) {
2753 | enum ObjectStateEnum _result;
2754 | HRESULT _hr = get_State(&_result);
2755 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2756 | return _result;
2757 | }
2758 |
2759 | inline _variant_t _Record::GetSource ( ) {
2760 | VARIANT _result;
2761 | VariantInit(&_result);
2762 | HRESULT _hr = get_Source(&_result);
2763 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2764 | return _variant_t(_result, false);
2765 | }
2766 |
2767 | inline void _Record::PutSource ( _bstr_t pvar ) {
2768 | HRESULT _hr = put_Source(pvar);
2769 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2770 | }
2771 |
2772 | inline void _Record::PutRefSource ( IDispatch * pvar ) {
2773 | HRESULT _hr = putref_Source(pvar);
2774 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2775 | }
2776 |
2777 | inline enum ConnectModeEnum _Record::GetMode ( ) {
2778 | enum ConnectModeEnum _result;
2779 | HRESULT _hr = get_Mode(&_result);
2780 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2781 | return _result;
2782 | }
2783 |
2784 | inline void _Record::PutMode ( enum ConnectModeEnum pMode ) {
2785 | HRESULT _hr = put_Mode(pMode);
2786 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2787 | }
2788 |
2789 | inline _bstr_t _Record::GetParentURL ( ) {
2790 | BSTR _result = 0;
2791 | HRESULT _hr = get_ParentURL(&_result);
2792 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2793 | return _bstr_t(_result, false);
2794 | }
2795 |
2796 | inline _bstr_t _Record::MoveRecord ( _bstr_t Source, _bstr_t Destination, _bstr_t UserName, _bstr_t Password, enum MoveRecordOptionsEnum Options, VARIANT_BOOL Async ) {
2797 | BSTR _result = 0;
2798 | HRESULT _hr = raw_MoveRecord(Source, Destination, UserName, Password, Options, Async, &_result);
2799 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2800 | return _bstr_t(_result, false);
2801 | }
2802 |
2803 | inline _bstr_t _Record::CopyRecord ( _bstr_t Source, _bstr_t Destination, _bstr_t UserName, _bstr_t Password, enum CopyRecordOptionsEnum Options, VARIANT_BOOL Async ) {
2804 | BSTR _result = 0;
2805 | HRESULT _hr = raw_CopyRecord(Source, Destination, UserName, Password, Options, Async, &_result);
2806 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2807 | return _bstr_t(_result, false);
2808 | }
2809 |
2810 | inline HRESULT _Record::DeleteRecord ( _bstr_t Source, VARIANT_BOOL Async ) {
2811 | HRESULT _hr = raw_DeleteRecord(Source, Async);
2812 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2813 | return _hr;
2814 | }
2815 |
2816 | inline HRESULT _Record::Open ( const _variant_t & Source, const _variant_t & ActiveConnection, enum ConnectModeEnum Mode, enum RecordCreateOptionsEnum CreateOptions, enum RecordOpenOptionsEnum Options, _bstr_t UserName, _bstr_t Password ) {
2817 | HRESULT _hr = raw_Open(Source, ActiveConnection, Mode, CreateOptions, Options, UserName, Password);
2818 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2819 | return _hr;
2820 | }
2821 |
2822 | inline HRESULT _Record::Close ( ) {
2823 | HRESULT _hr = raw_Close();
2824 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2825 | return _hr;
2826 | }
2827 |
2828 | inline FieldsPtr _Record::GetFields ( ) {
2829 | struct Fields * _result = 0;
2830 | HRESULT _hr = get_Fields(&_result);
2831 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2832 | return FieldsPtr(_result, false);
2833 | }
2834 |
2835 | inline enum RecordTypeEnum _Record::GetRecordType ( ) {
2836 | enum RecordTypeEnum _result;
2837 | HRESULT _hr = get_RecordType(&_result);
2838 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2839 | return _result;
2840 | }
2841 |
2842 | inline _RecordsetPtr _Record::GetChildren ( ) {
2843 | struct _Recordset * _result = 0;
2844 | HRESULT _hr = raw_GetChildren(&_result);
2845 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2846 | return _RecordsetPtr(_result, false);
2847 | }
2848 |
2849 | inline HRESULT _Record::Cancel ( ) {
2850 | HRESULT _hr = raw_Cancel();
2851 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2852 | return _hr;
2853 | }
2854 |
2855 | //
2856 | // interface ConnectionEventsVt_Deprecated wrapper method implementations
2857 | //
2858 |
2859 | inline HRESULT ConnectionEventsVt_Deprecated::InfoMessage ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
2860 | HRESULT _hr = raw_InfoMessage(pError, adStatus, pConnection);
2861 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2862 | return _hr;
2863 | }
2864 |
2865 | inline HRESULT ConnectionEventsVt_Deprecated::BeginTransComplete ( long TransactionLevel, struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
2866 | HRESULT _hr = raw_BeginTransComplete(TransactionLevel, pError, adStatus, pConnection);
2867 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2868 | return _hr;
2869 | }
2870 |
2871 | inline HRESULT ConnectionEventsVt_Deprecated::CommitTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
2872 | HRESULT _hr = raw_CommitTransComplete(pError, adStatus, pConnection);
2873 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2874 | return _hr;
2875 | }
2876 |
2877 | inline HRESULT ConnectionEventsVt_Deprecated::RollbackTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
2878 | HRESULT _hr = raw_RollbackTransComplete(pError, adStatus, pConnection);
2879 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2880 | return _hr;
2881 | }
2882 |
2883 | inline HRESULT ConnectionEventsVt_Deprecated::WillExecute ( BSTR * Source, enum CursorTypeEnum * CursorType, enum LockTypeEnum * LockType, long * Options, enum EventStatusEnum * adStatus, struct _Command_Deprecated * pCommand, struct _Recordset_Deprecated * pRecordset, struct _Connection_Deprecated * pConnection ) {
2884 | HRESULT _hr = raw_WillExecute(Source, CursorType, LockType, Options, adStatus, pCommand, pRecordset, pConnection);
2885 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2886 | return _hr;
2887 | }
2888 |
2889 | inline HRESULT ConnectionEventsVt_Deprecated::ExecuteComplete ( long RecordsAffected, struct Error * pError, enum EventStatusEnum * adStatus, struct _Command_Deprecated * pCommand, struct _Recordset_Deprecated * pRecordset, struct _Connection_Deprecated * pConnection ) {
2890 | HRESULT _hr = raw_ExecuteComplete(RecordsAffected, pError, adStatus, pCommand, pRecordset, pConnection);
2891 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2892 | return _hr;
2893 | }
2894 |
2895 | inline HRESULT ConnectionEventsVt_Deprecated::WillConnect ( BSTR * ConnectionString, BSTR * UserID, BSTR * Password, long * Options, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
2896 | HRESULT _hr = raw_WillConnect(ConnectionString, UserID, Password, Options, adStatus, pConnection);
2897 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2898 | return _hr;
2899 | }
2900 |
2901 | inline HRESULT ConnectionEventsVt_Deprecated::ConnectComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
2902 | HRESULT _hr = raw_ConnectComplete(pError, adStatus, pConnection);
2903 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2904 | return _hr;
2905 | }
2906 |
2907 | inline HRESULT ConnectionEventsVt_Deprecated::Disconnect ( enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
2908 | HRESULT _hr = raw_Disconnect(adStatus, pConnection);
2909 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2910 | return _hr;
2911 | }
2912 |
2913 | //
2914 | // interface Connection15_Deprecated wrapper method implementations
2915 | //
2916 |
2917 | inline _bstr_t Connection15_Deprecated::GetConnectionString ( ) {
2918 | BSTR _result = 0;
2919 | HRESULT _hr = get_ConnectionString(&_result);
2920 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2921 | return _bstr_t(_result, false);
2922 | }
2923 |
2924 | inline void Connection15_Deprecated::PutConnectionString ( _bstr_t pbstr ) {
2925 | HRESULT _hr = put_ConnectionString(pbstr);
2926 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2927 | }
2928 |
2929 | inline long Connection15_Deprecated::GetCommandTimeout ( ) {
2930 | long _result = 0;
2931 | HRESULT _hr = get_CommandTimeout(&_result);
2932 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2933 | return _result;
2934 | }
2935 |
2936 | inline void Connection15_Deprecated::PutCommandTimeout ( long plTimeout ) {
2937 | HRESULT _hr = put_CommandTimeout(plTimeout);
2938 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2939 | }
2940 |
2941 | inline long Connection15_Deprecated::GetConnectionTimeout ( ) {
2942 | long _result = 0;
2943 | HRESULT _hr = get_ConnectionTimeout(&_result);
2944 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2945 | return _result;
2946 | }
2947 |
2948 | inline void Connection15_Deprecated::PutConnectionTimeout ( long plTimeout ) {
2949 | HRESULT _hr = put_ConnectionTimeout(plTimeout);
2950 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2951 | }
2952 |
2953 | inline _bstr_t Connection15_Deprecated::GetVersion ( ) {
2954 | BSTR _result = 0;
2955 | HRESULT _hr = get_Version(&_result);
2956 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2957 | return _bstr_t(_result, false);
2958 | }
2959 |
2960 | inline HRESULT Connection15_Deprecated::Close ( ) {
2961 | HRESULT _hr = raw_Close();
2962 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2963 | return _hr;
2964 | }
2965 |
2966 | inline _Recordset_DeprecatedPtr Connection15_Deprecated::Execute ( _bstr_t CommandText, VARIANT * RecordsAffected, long Options ) {
2967 | struct _Recordset_Deprecated * _result = 0;
2968 | HRESULT _hr = raw_Execute(CommandText, RecordsAffected, Options, &_result);
2969 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2970 | return _Recordset_DeprecatedPtr(_result, false);
2971 | }
2972 |
2973 | inline long Connection15_Deprecated::BeginTrans ( ) {
2974 | long _result = 0;
2975 | HRESULT _hr = raw_BeginTrans(&_result);
2976 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2977 | return _result;
2978 | }
2979 |
2980 | inline HRESULT Connection15_Deprecated::CommitTrans ( ) {
2981 | HRESULT _hr = raw_CommitTrans();
2982 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2983 | return _hr;
2984 | }
2985 |
2986 | inline HRESULT Connection15_Deprecated::RollbackTrans ( ) {
2987 | HRESULT _hr = raw_RollbackTrans();
2988 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2989 | return _hr;
2990 | }
2991 |
2992 | inline HRESULT Connection15_Deprecated::Open ( _bstr_t ConnectionString, _bstr_t UserID, _bstr_t Password, long Options ) {
2993 | HRESULT _hr = raw_Open(ConnectionString, UserID, Password, Options);
2994 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
2995 | return _hr;
2996 | }
2997 |
2998 | inline ErrorsPtr Connection15_Deprecated::GetErrors ( ) {
2999 | struct Errors * _result = 0;
3000 | HRESULT _hr = get_Errors(&_result);
3001 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3002 | return ErrorsPtr(_result, false);
3003 | }
3004 |
3005 | inline _bstr_t Connection15_Deprecated::GetDefaultDatabase ( ) {
3006 | BSTR _result = 0;
3007 | HRESULT _hr = get_DefaultDatabase(&_result);
3008 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3009 | return _bstr_t(_result, false);
3010 | }
3011 |
3012 | inline void Connection15_Deprecated::PutDefaultDatabase ( _bstr_t pbstr ) {
3013 | HRESULT _hr = put_DefaultDatabase(pbstr);
3014 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3015 | }
3016 |
3017 | inline enum IsolationLevelEnum Connection15_Deprecated::GetIsolationLevel ( ) {
3018 | enum IsolationLevelEnum _result;
3019 | HRESULT _hr = get_IsolationLevel(&_result);
3020 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3021 | return _result;
3022 | }
3023 |
3024 | inline void Connection15_Deprecated::PutIsolationLevel ( enum IsolationLevelEnum Level ) {
3025 | HRESULT _hr = put_IsolationLevel(Level);
3026 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3027 | }
3028 |
3029 | inline long Connection15_Deprecated::GetAttributes ( ) {
3030 | long _result = 0;
3031 | HRESULT _hr = get_Attributes(&_result);
3032 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3033 | return _result;
3034 | }
3035 |
3036 | inline void Connection15_Deprecated::PutAttributes ( long plAttr ) {
3037 | HRESULT _hr = put_Attributes(plAttr);
3038 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3039 | }
3040 |
3041 | inline enum CursorLocationEnum Connection15_Deprecated::GetCursorLocation ( ) {
3042 | enum CursorLocationEnum _result;
3043 | HRESULT _hr = get_CursorLocation(&_result);
3044 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3045 | return _result;
3046 | }
3047 |
3048 | inline void Connection15_Deprecated::PutCursorLocation ( enum CursorLocationEnum plCursorLoc ) {
3049 | HRESULT _hr = put_CursorLocation(plCursorLoc);
3050 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3051 | }
3052 |
3053 | inline enum ConnectModeEnum Connection15_Deprecated::GetMode ( ) {
3054 | enum ConnectModeEnum _result;
3055 | HRESULT _hr = get_Mode(&_result);
3056 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3057 | return _result;
3058 | }
3059 |
3060 | inline void Connection15_Deprecated::PutMode ( enum ConnectModeEnum plMode ) {
3061 | HRESULT _hr = put_Mode(plMode);
3062 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3063 | }
3064 |
3065 | inline _bstr_t Connection15_Deprecated::GetProvider ( ) {
3066 | BSTR _result = 0;
3067 | HRESULT _hr = get_Provider(&_result);
3068 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3069 | return _bstr_t(_result, false);
3070 | }
3071 |
3072 | inline void Connection15_Deprecated::PutProvider ( _bstr_t pbstr ) {
3073 | HRESULT _hr = put_Provider(pbstr);
3074 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3075 | }
3076 |
3077 | inline long Connection15_Deprecated::GetState ( ) {
3078 | long _result = 0;
3079 | HRESULT _hr = get_State(&_result);
3080 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3081 | return _result;
3082 | }
3083 |
3084 | inline _Recordset_DeprecatedPtr Connection15_Deprecated::OpenSchema ( enum SchemaEnum Schema, const _variant_t & Restrictions, const _variant_t & SchemaID ) {
3085 | struct _Recordset_Deprecated * _result = 0;
3086 | HRESULT _hr = raw_OpenSchema(Schema, Restrictions, SchemaID, &_result);
3087 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3088 | return _Recordset_DeprecatedPtr(_result, false);
3089 | }
3090 |
3091 | //
3092 | // interface _Connection_Deprecated wrapper method implementations
3093 | //
3094 |
3095 | inline HRESULT _Connection_Deprecated::Cancel ( ) {
3096 | HRESULT _hr = raw_Cancel();
3097 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3098 | return _hr;
3099 | }
3100 |
3101 | //
3102 | // interface Recordset15_Deprecated wrapper method implementations
3103 | //
3104 |
3105 | inline PositionEnum_Param Recordset15_Deprecated::GetAbsolutePosition ( ) {
3106 | PositionEnum_Param _result;
3107 | HRESULT _hr = get_AbsolutePosition(&_result);
3108 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3109 | return _result;
3110 | }
3111 |
3112 | inline void Recordset15_Deprecated::PutAbsolutePosition ( PositionEnum_Param pl ) {
3113 | HRESULT _hr = put_AbsolutePosition(pl);
3114 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3115 | }
3116 |
3117 | inline void Recordset15_Deprecated::PutRefActiveConnection ( IDispatch * pvar ) {
3118 | HRESULT _hr = putref_ActiveConnection(pvar);
3119 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3120 | }
3121 |
3122 | inline void Recordset15_Deprecated::PutActiveConnection ( const _variant_t & pvar ) {
3123 | HRESULT _hr = put_ActiveConnection(pvar);
3124 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3125 | }
3126 |
3127 | inline _variant_t Recordset15_Deprecated::GetActiveConnection ( ) {
3128 | VARIANT _result;
3129 | VariantInit(&_result);
3130 | HRESULT _hr = get_ActiveConnection(&_result);
3131 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3132 | return _variant_t(_result, false);
3133 | }
3134 |
3135 | inline VARIANT_BOOL Recordset15_Deprecated::GetBOF ( ) {
3136 | VARIANT_BOOL _result = 0;
3137 | HRESULT _hr = get_BOF(&_result);
3138 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3139 | return _result;
3140 | }
3141 |
3142 | inline _variant_t Recordset15_Deprecated::GetBookmark ( ) {
3143 | VARIANT _result;
3144 | VariantInit(&_result);
3145 | HRESULT _hr = get_Bookmark(&_result);
3146 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3147 | return _variant_t(_result, false);
3148 | }
3149 |
3150 | inline void Recordset15_Deprecated::PutBookmark ( const _variant_t & pvBookmark ) {
3151 | HRESULT _hr = put_Bookmark(pvBookmark);
3152 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3153 | }
3154 |
3155 | inline long Recordset15_Deprecated::GetCacheSize ( ) {
3156 | long _result = 0;
3157 | HRESULT _hr = get_CacheSize(&_result);
3158 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3159 | return _result;
3160 | }
3161 |
3162 | inline void Recordset15_Deprecated::PutCacheSize ( long pl ) {
3163 | HRESULT _hr = put_CacheSize(pl);
3164 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3165 | }
3166 |
3167 | inline enum CursorTypeEnum Recordset15_Deprecated::GetCursorType ( ) {
3168 | enum CursorTypeEnum _result;
3169 | HRESULT _hr = get_CursorType(&_result);
3170 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3171 | return _result;
3172 | }
3173 |
3174 | inline void Recordset15_Deprecated::PutCursorType ( enum CursorTypeEnum plCursorType ) {
3175 | HRESULT _hr = put_CursorType(plCursorType);
3176 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3177 | }
3178 |
3179 | inline VARIANT_BOOL Recordset15_Deprecated::GetadoEOF ( ) {
3180 | VARIANT_BOOL _result = 0;
3181 | HRESULT _hr = get_adoEOF(&_result);
3182 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3183 | return _result;
3184 | }
3185 |
3186 | inline Fields_DeprecatedPtr Recordset15_Deprecated::GetFields ( ) {
3187 | struct Fields_Deprecated * _result = 0;
3188 | HRESULT _hr = get_Fields(&_result);
3189 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3190 | return Fields_DeprecatedPtr(_result, false);
3191 | }
3192 |
3193 | inline enum LockTypeEnum Recordset15_Deprecated::GetLockType ( ) {
3194 | enum LockTypeEnum _result;
3195 | HRESULT _hr = get_LockType(&_result);
3196 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3197 | return _result;
3198 | }
3199 |
3200 | inline void Recordset15_Deprecated::PutLockType ( enum LockTypeEnum plLockType ) {
3201 | HRESULT _hr = put_LockType(plLockType);
3202 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3203 | }
3204 |
3205 | inline ADO_LONGPTR Recordset15_Deprecated::GetMaxRecords ( ) {
3206 | ADO_LONGPTR _result;
3207 | HRESULT _hr = get_MaxRecords(&_result);
3208 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3209 | return _result;
3210 | }
3211 |
3212 | inline void Recordset15_Deprecated::PutMaxRecords ( ADO_LONGPTR plMaxRecords ) {
3213 | HRESULT _hr = put_MaxRecords(plMaxRecords);
3214 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3215 | }
3216 |
3217 | inline ADO_LONGPTR Recordset15_Deprecated::GetRecordCount ( ) {
3218 | ADO_LONGPTR _result;
3219 | HRESULT _hr = get_RecordCount(&_result);
3220 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3221 | return _result;
3222 | }
3223 |
3224 | inline void Recordset15_Deprecated::PutRefSource ( IDispatch * pvSource ) {
3225 | HRESULT _hr = putref_Source(pvSource);
3226 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3227 | }
3228 |
3229 | inline void Recordset15_Deprecated::PutSource ( _bstr_t pvSource ) {
3230 | HRESULT _hr = put_Source(pvSource);
3231 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3232 | }
3233 |
3234 | inline _variant_t Recordset15_Deprecated::GetSource ( ) {
3235 | VARIANT _result;
3236 | VariantInit(&_result);
3237 | HRESULT _hr = get_Source(&_result);
3238 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3239 | return _variant_t(_result, false);
3240 | }
3241 |
3242 | inline HRESULT Recordset15_Deprecated::AddNew ( const _variant_t & FieldList, const _variant_t & Values ) {
3243 | HRESULT _hr = raw_AddNew(FieldList, Values);
3244 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3245 | return _hr;
3246 | }
3247 |
3248 | inline HRESULT Recordset15_Deprecated::CancelUpdate ( ) {
3249 | HRESULT _hr = raw_CancelUpdate();
3250 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3251 | return _hr;
3252 | }
3253 |
3254 | inline HRESULT Recordset15_Deprecated::Close ( ) {
3255 | HRESULT _hr = raw_Close();
3256 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3257 | return _hr;
3258 | }
3259 |
3260 | inline HRESULT Recordset15_Deprecated::Delete ( enum AffectEnum AffectRecords ) {
3261 | HRESULT _hr = raw_Delete(AffectRecords);
3262 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3263 | return _hr;
3264 | }
3265 |
3266 | inline _variant_t Recordset15_Deprecated::GetRows ( long Rows, const _variant_t & Start, const _variant_t & Fields ) {
3267 | VARIANT _result;
3268 | VariantInit(&_result);
3269 | HRESULT _hr = raw_GetRows(Rows, Start, Fields, &_result);
3270 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3271 | return _variant_t(_result, false);
3272 | }
3273 |
3274 | inline HRESULT Recordset15_Deprecated::Move ( ADO_LONGPTR NumRecords, const _variant_t & Start ) {
3275 | HRESULT _hr = raw_Move(NumRecords, Start);
3276 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3277 | return _hr;
3278 | }
3279 |
3280 | inline HRESULT Recordset15_Deprecated::MoveNext ( ) {
3281 | HRESULT _hr = raw_MoveNext();
3282 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3283 | return _hr;
3284 | }
3285 |
3286 | inline HRESULT Recordset15_Deprecated::MovePrevious ( ) {
3287 | HRESULT _hr = raw_MovePrevious();
3288 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3289 | return _hr;
3290 | }
3291 |
3292 | inline HRESULT Recordset15_Deprecated::MoveFirst ( ) {
3293 | HRESULT _hr = raw_MoveFirst();
3294 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3295 | return _hr;
3296 | }
3297 |
3298 | inline HRESULT Recordset15_Deprecated::MoveLast ( ) {
3299 | HRESULT _hr = raw_MoveLast();
3300 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3301 | return _hr;
3302 | }
3303 |
3304 | inline HRESULT Recordset15_Deprecated::Open ( const _variant_t & Source, const _variant_t & ActiveConnection, enum CursorTypeEnum CursorType, enum LockTypeEnum LockType, long Options ) {
3305 | HRESULT _hr = raw_Open(Source, ActiveConnection, CursorType, LockType, Options);
3306 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3307 | return _hr;
3308 | }
3309 |
3310 | inline HRESULT Recordset15_Deprecated::Requery ( long Options ) {
3311 | HRESULT _hr = raw_Requery(Options);
3312 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3313 | return _hr;
3314 | }
3315 |
3316 | inline HRESULT Recordset15_Deprecated::_xResync ( enum AffectEnum AffectRecords ) {
3317 | HRESULT _hr = raw__xResync(AffectRecords);
3318 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3319 | return _hr;
3320 | }
3321 |
3322 | inline HRESULT Recordset15_Deprecated::Update ( const _variant_t & Fields, const _variant_t & Values ) {
3323 | HRESULT _hr = raw_Update(Fields, Values);
3324 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3325 | return _hr;
3326 | }
3327 |
3328 | inline PositionEnum_Param Recordset15_Deprecated::GetAbsolutePage ( ) {
3329 | PositionEnum_Param _result;
3330 | HRESULT _hr = get_AbsolutePage(&_result);
3331 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3332 | return _result;
3333 | }
3334 |
3335 | inline void Recordset15_Deprecated::PutAbsolutePage ( PositionEnum_Param pl ) {
3336 | HRESULT _hr = put_AbsolutePage(pl);
3337 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3338 | }
3339 |
3340 | inline enum EditModeEnum Recordset15_Deprecated::GetEditMode ( ) {
3341 | enum EditModeEnum _result;
3342 | HRESULT _hr = get_EditMode(&_result);
3343 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3344 | return _result;
3345 | }
3346 |
3347 | inline _variant_t Recordset15_Deprecated::GetFilter ( ) {
3348 | VARIANT _result;
3349 | VariantInit(&_result);
3350 | HRESULT _hr = get_Filter(&_result);
3351 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3352 | return _variant_t(_result, false);
3353 | }
3354 |
3355 | inline void Recordset15_Deprecated::PutFilter ( const _variant_t & Criteria ) {
3356 | HRESULT _hr = put_Filter(Criteria);
3357 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3358 | }
3359 |
3360 | inline ADO_LONGPTR Recordset15_Deprecated::GetPageCount ( ) {
3361 | ADO_LONGPTR _result;
3362 | HRESULT _hr = get_PageCount(&_result);
3363 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3364 | return _result;
3365 | }
3366 |
3367 | inline long Recordset15_Deprecated::GetPageSize ( ) {
3368 | long _result = 0;
3369 | HRESULT _hr = get_PageSize(&_result);
3370 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3371 | return _result;
3372 | }
3373 |
3374 | inline void Recordset15_Deprecated::PutPageSize ( long pl ) {
3375 | HRESULT _hr = put_PageSize(pl);
3376 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3377 | }
3378 |
3379 | inline _bstr_t Recordset15_Deprecated::GetSort ( ) {
3380 | BSTR _result = 0;
3381 | HRESULT _hr = get_Sort(&_result);
3382 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3383 | return _bstr_t(_result, false);
3384 | }
3385 |
3386 | inline void Recordset15_Deprecated::PutSort ( _bstr_t Criteria ) {
3387 | HRESULT _hr = put_Sort(Criteria);
3388 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3389 | }
3390 |
3391 | inline long Recordset15_Deprecated::GetStatus ( ) {
3392 | long _result = 0;
3393 | HRESULT _hr = get_Status(&_result);
3394 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3395 | return _result;
3396 | }
3397 |
3398 | inline long Recordset15_Deprecated::GetState ( ) {
3399 | long _result = 0;
3400 | HRESULT _hr = get_State(&_result);
3401 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3402 | return _result;
3403 | }
3404 |
3405 | inline _Recordset_DeprecatedPtr Recordset15_Deprecated::_xClone ( ) {
3406 | struct _Recordset_Deprecated * _result = 0;
3407 | HRESULT _hr = raw__xClone(&_result);
3408 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3409 | return _Recordset_DeprecatedPtr(_result, false);
3410 | }
3411 |
3412 | inline HRESULT Recordset15_Deprecated::UpdateBatch ( enum AffectEnum AffectRecords ) {
3413 | HRESULT _hr = raw_UpdateBatch(AffectRecords);
3414 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3415 | return _hr;
3416 | }
3417 |
3418 | inline HRESULT Recordset15_Deprecated::CancelBatch ( enum AffectEnum AffectRecords ) {
3419 | HRESULT _hr = raw_CancelBatch(AffectRecords);
3420 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3421 | return _hr;
3422 | }
3423 |
3424 | inline enum CursorLocationEnum Recordset15_Deprecated::GetCursorLocation ( ) {
3425 | enum CursorLocationEnum _result;
3426 | HRESULT _hr = get_CursorLocation(&_result);
3427 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3428 | return _result;
3429 | }
3430 |
3431 | inline void Recordset15_Deprecated::PutCursorLocation ( enum CursorLocationEnum plCursorLoc ) {
3432 | HRESULT _hr = put_CursorLocation(plCursorLoc);
3433 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3434 | }
3435 |
3436 | inline _Recordset_DeprecatedPtr Recordset15_Deprecated::NextRecordset ( VARIANT * RecordsAffected ) {
3437 | struct _Recordset_Deprecated * _result = 0;
3438 | HRESULT _hr = raw_NextRecordset(RecordsAffected, &_result);
3439 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3440 | return _Recordset_DeprecatedPtr(_result, false);
3441 | }
3442 |
3443 | inline VARIANT_BOOL Recordset15_Deprecated::Supports ( enum CursorOptionEnum CursorOptions ) {
3444 | VARIANT_BOOL _result = 0;
3445 | HRESULT _hr = raw_Supports(CursorOptions, &_result);
3446 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3447 | return _result;
3448 | }
3449 |
3450 | inline _variant_t Recordset15_Deprecated::GetCollect ( const _variant_t & Index ) {
3451 | VARIANT _result;
3452 | VariantInit(&_result);
3453 | HRESULT _hr = get_Collect(Index, &_result);
3454 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3455 | return _variant_t(_result, false);
3456 | }
3457 |
3458 | inline void Recordset15_Deprecated::PutCollect ( const _variant_t & Index, const _variant_t & pvar ) {
3459 | HRESULT _hr = put_Collect(Index, pvar);
3460 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3461 | }
3462 |
3463 | inline enum MarshalOptionsEnum Recordset15_Deprecated::GetMarshalOptions ( ) {
3464 | enum MarshalOptionsEnum _result;
3465 | HRESULT _hr = get_MarshalOptions(&_result);
3466 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3467 | return _result;
3468 | }
3469 |
3470 | inline void Recordset15_Deprecated::PutMarshalOptions ( enum MarshalOptionsEnum peMarshal ) {
3471 | HRESULT _hr = put_MarshalOptions(peMarshal);
3472 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3473 | }
3474 |
3475 | inline HRESULT Recordset15_Deprecated::Find ( _bstr_t Criteria, ADO_LONGPTR SkipRecords, enum SearchDirectionEnum SearchDirection, const _variant_t & Start ) {
3476 | HRESULT _hr = raw_Find(Criteria, SkipRecords, SearchDirection, Start);
3477 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3478 | return _hr;
3479 | }
3480 |
3481 | //
3482 | // interface Recordset20_Deprecated wrapper method implementations
3483 | //
3484 |
3485 | inline HRESULT Recordset20_Deprecated::Cancel ( ) {
3486 | HRESULT _hr = raw_Cancel();
3487 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3488 | return _hr;
3489 | }
3490 |
3491 | inline IUnknownPtr Recordset20_Deprecated::GetDataSource ( ) {
3492 | IUnknown * _result = 0;
3493 | HRESULT _hr = get_DataSource(&_result);
3494 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3495 | return IUnknownPtr(_result, false);
3496 | }
3497 |
3498 | inline void Recordset20_Deprecated::PutRefDataSource ( IUnknown * ppunkDataSource ) {
3499 | HRESULT _hr = putref_DataSource(ppunkDataSource);
3500 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3501 | }
3502 |
3503 | inline HRESULT Recordset20_Deprecated::_xSave ( _bstr_t FileName, enum PersistFormatEnum PersistFormat ) {
3504 | HRESULT _hr = raw__xSave(FileName, PersistFormat);
3505 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3506 | return _hr;
3507 | }
3508 |
3509 | inline IDispatchPtr Recordset20_Deprecated::GetActiveCommand ( ) {
3510 | IDispatch * _result = 0;
3511 | HRESULT _hr = get_ActiveCommand(&_result);
3512 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3513 | return IDispatchPtr(_result, false);
3514 | }
3515 |
3516 | inline void Recordset20_Deprecated::PutStayInSync ( VARIANT_BOOL pbStayInSync ) {
3517 | HRESULT _hr = put_StayInSync(pbStayInSync);
3518 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3519 | }
3520 |
3521 | inline VARIANT_BOOL Recordset20_Deprecated::GetStayInSync ( ) {
3522 | VARIANT_BOOL _result = 0;
3523 | HRESULT _hr = get_StayInSync(&_result);
3524 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3525 | return _result;
3526 | }
3527 |
3528 | inline _bstr_t Recordset20_Deprecated::GetString ( enum StringFormatEnum StringFormat, long NumRows, _bstr_t ColumnDelimeter, _bstr_t RowDelimeter, _bstr_t NullExpr ) {
3529 | BSTR _result = 0;
3530 | HRESULT _hr = raw_GetString(StringFormat, NumRows, ColumnDelimeter, RowDelimeter, NullExpr, &_result);
3531 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3532 | return _bstr_t(_result, false);
3533 | }
3534 |
3535 | inline _bstr_t Recordset20_Deprecated::GetDataMember ( ) {
3536 | BSTR _result = 0;
3537 | HRESULT _hr = get_DataMember(&_result);
3538 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3539 | return _bstr_t(_result, false);
3540 | }
3541 |
3542 | inline void Recordset20_Deprecated::PutDataMember ( _bstr_t pbstrDataMember ) {
3543 | HRESULT _hr = put_DataMember(pbstrDataMember);
3544 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3545 | }
3546 |
3547 | inline enum CompareEnum Recordset20_Deprecated::CompareBookmarks ( const _variant_t & Bookmark1, const _variant_t & Bookmark2 ) {
3548 | enum CompareEnum _result;
3549 | HRESULT _hr = raw_CompareBookmarks(Bookmark1, Bookmark2, &_result);
3550 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3551 | return _result;
3552 | }
3553 |
3554 | inline _Recordset_DeprecatedPtr Recordset20_Deprecated::Clone ( enum LockTypeEnum LockType ) {
3555 | struct _Recordset_Deprecated * _result = 0;
3556 | HRESULT _hr = raw_Clone(LockType, &_result);
3557 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3558 | return _Recordset_DeprecatedPtr(_result, false);
3559 | }
3560 |
3561 | inline HRESULT Recordset20_Deprecated::Resync ( enum AffectEnum AffectRecords, enum ResyncEnum ResyncValues ) {
3562 | HRESULT _hr = raw_Resync(AffectRecords, ResyncValues);
3563 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3564 | return _hr;
3565 | }
3566 |
3567 | //
3568 | // interface Recordset21_Deprecated wrapper method implementations
3569 | //
3570 |
3571 | inline HRESULT Recordset21_Deprecated::Seek ( const _variant_t & KeyValues, enum SeekEnum SeekOption ) {
3572 | HRESULT _hr = raw_Seek(KeyValues, SeekOption);
3573 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3574 | return _hr;
3575 | }
3576 |
3577 | inline void Recordset21_Deprecated::PutIndex ( _bstr_t pbstrIndex ) {
3578 | HRESULT _hr = put_Index(pbstrIndex);
3579 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3580 | }
3581 |
3582 | inline _bstr_t Recordset21_Deprecated::GetIndex ( ) {
3583 | BSTR _result = 0;
3584 | HRESULT _hr = get_Index(&_result);
3585 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3586 | return _bstr_t(_result, false);
3587 | }
3588 |
3589 | //
3590 | // interface _Recordset_Deprecated wrapper method implementations
3591 | //
3592 |
3593 | inline HRESULT _Recordset_Deprecated::Save ( const _variant_t & Destination, enum PersistFormatEnum PersistFormat ) {
3594 | HRESULT _hr = raw_Save(Destination, PersistFormat);
3595 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3596 | return _hr;
3597 | }
3598 |
3599 | //
3600 | // interface Command15_Deprecated wrapper method implementations
3601 | //
3602 |
3603 | inline _Connection_DeprecatedPtr Command15_Deprecated::GetActiveConnection ( ) {
3604 | struct _Connection_Deprecated * _result = 0;
3605 | HRESULT _hr = get_ActiveConnection(&_result);
3606 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3607 | return _Connection_DeprecatedPtr(_result, false);
3608 | }
3609 |
3610 | inline void Command15_Deprecated::PutRefActiveConnection ( struct _Connection_Deprecated * ppvObject ) {
3611 | HRESULT _hr = putref_ActiveConnection(ppvObject);
3612 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3613 | }
3614 |
3615 | inline void Command15_Deprecated::PutActiveConnection ( const _variant_t & ppvObject ) {
3616 | HRESULT _hr = put_ActiveConnection(ppvObject);
3617 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3618 | }
3619 |
3620 | inline _bstr_t Command15_Deprecated::GetCommandText ( ) {
3621 | BSTR _result = 0;
3622 | HRESULT _hr = get_CommandText(&_result);
3623 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3624 | return _bstr_t(_result, false);
3625 | }
3626 |
3627 | inline void Command15_Deprecated::PutCommandText ( _bstr_t pbstr ) {
3628 | HRESULT _hr = put_CommandText(pbstr);
3629 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3630 | }
3631 |
3632 | inline long Command15_Deprecated::GetCommandTimeout ( ) {
3633 | long _result = 0;
3634 | HRESULT _hr = get_CommandTimeout(&_result);
3635 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3636 | return _result;
3637 | }
3638 |
3639 | inline void Command15_Deprecated::PutCommandTimeout ( long pl ) {
3640 | HRESULT _hr = put_CommandTimeout(pl);
3641 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3642 | }
3643 |
3644 | inline VARIANT_BOOL Command15_Deprecated::GetPrepared ( ) {
3645 | VARIANT_BOOL _result = 0;
3646 | HRESULT _hr = get_Prepared(&_result);
3647 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3648 | return _result;
3649 | }
3650 |
3651 | inline void Command15_Deprecated::PutPrepared ( VARIANT_BOOL pfPrepared ) {
3652 | HRESULT _hr = put_Prepared(pfPrepared);
3653 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3654 | }
3655 |
3656 | inline _Recordset_DeprecatedPtr Command15_Deprecated::Execute ( VARIANT * RecordsAffected, VARIANT * Parameters, long Options ) {
3657 | struct _Recordset_Deprecated * _result = 0;
3658 | HRESULT _hr = raw_Execute(RecordsAffected, Parameters, Options, &_result);
3659 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3660 | return _Recordset_DeprecatedPtr(_result, false);
3661 | }
3662 |
3663 | inline _Parameter_DeprecatedPtr Command15_Deprecated::CreateParameter ( _bstr_t Name, enum DataTypeEnum Type, enum ParameterDirectionEnum Direction, ADO_LONGPTR Size, const _variant_t & Value ) {
3664 | struct _Parameter_Deprecated * _result = 0;
3665 | HRESULT _hr = raw_CreateParameter(Name, Type, Direction, Size, Value, &_result);
3666 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3667 | return _Parameter_DeprecatedPtr(_result, false);
3668 | }
3669 |
3670 | inline Parameters_DeprecatedPtr Command15_Deprecated::GetParameters ( ) {
3671 | struct Parameters_Deprecated * _result = 0;
3672 | HRESULT _hr = get_Parameters(&_result);
3673 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3674 | return Parameters_DeprecatedPtr(_result, false);
3675 | }
3676 |
3677 | inline void Command15_Deprecated::PutCommandType ( enum CommandTypeEnum plCmdType ) {
3678 | HRESULT _hr = put_CommandType(plCmdType);
3679 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3680 | }
3681 |
3682 | inline enum CommandTypeEnum Command15_Deprecated::GetCommandType ( ) {
3683 | enum CommandTypeEnum _result;
3684 | HRESULT _hr = get_CommandType(&_result);
3685 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3686 | return _result;
3687 | }
3688 |
3689 | inline _bstr_t Command15_Deprecated::GetName ( ) {
3690 | BSTR _result = 0;
3691 | HRESULT _hr = get_Name(&_result);
3692 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3693 | return _bstr_t(_result, false);
3694 | }
3695 |
3696 | inline void Command15_Deprecated::PutName ( _bstr_t pbstrName ) {
3697 | HRESULT _hr = put_Name(pbstrName);
3698 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3699 | }
3700 |
3701 | //
3702 | // interface Command25_Deprecated wrapper method implementations
3703 | //
3704 |
3705 | inline long Command25_Deprecated::GetState ( ) {
3706 | long _result = 0;
3707 | HRESULT _hr = get_State(&_result);
3708 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3709 | return _result;
3710 | }
3711 |
3712 | inline HRESULT Command25_Deprecated::Cancel ( ) {
3713 | HRESULT _hr = raw_Cancel();
3714 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3715 | return _hr;
3716 | }
3717 |
3718 | //
3719 | // interface _Command_Deprecated wrapper method implementations
3720 | //
3721 |
3722 | inline void _Command_Deprecated::PutRefCommandStream ( IUnknown * pvStream ) {
3723 | HRESULT _hr = putref_CommandStream(pvStream);
3724 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3725 | }
3726 |
3727 | inline _variant_t _Command_Deprecated::GetCommandStream ( ) {
3728 | VARIANT _result;
3729 | VariantInit(&_result);
3730 | HRESULT _hr = get_CommandStream(&_result);
3731 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3732 | return _variant_t(_result, false);
3733 | }
3734 |
3735 | inline void _Command_Deprecated::PutDialect ( _bstr_t pbstrDialect ) {
3736 | HRESULT _hr = put_Dialect(pbstrDialect);
3737 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3738 | }
3739 |
3740 | inline _bstr_t _Command_Deprecated::GetDialect ( ) {
3741 | BSTR _result = 0;
3742 | HRESULT _hr = get_Dialect(&_result);
3743 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3744 | return _bstr_t(_result, false);
3745 | }
3746 |
3747 | inline void _Command_Deprecated::PutNamedParameters ( VARIANT_BOOL pfNamedParameters ) {
3748 | HRESULT _hr = put_NamedParameters(pfNamedParameters);
3749 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3750 | }
3751 |
3752 | inline VARIANT_BOOL _Command_Deprecated::GetNamedParameters ( ) {
3753 | VARIANT_BOOL _result = 0;
3754 | HRESULT _hr = get_NamedParameters(&_result);
3755 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3756 | return _result;
3757 | }
3758 |
3759 | //
3760 | // interface RecordsetEventsVt_Deprecated wrapper method implementations
3761 | //
3762 |
3763 | inline HRESULT RecordsetEventsVt_Deprecated::WillChangeField ( long cFields, const _variant_t & Fields, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
3764 | HRESULT _hr = raw_WillChangeField(cFields, Fields, adStatus, pRecordset);
3765 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3766 | return _hr;
3767 | }
3768 |
3769 | inline HRESULT RecordsetEventsVt_Deprecated::FieldChangeComplete ( long cFields, const _variant_t & Fields, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
3770 | HRESULT _hr = raw_FieldChangeComplete(cFields, Fields, pError, adStatus, pRecordset);
3771 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3772 | return _hr;
3773 | }
3774 |
3775 | inline HRESULT RecordsetEventsVt_Deprecated::WillChangeRecord ( enum EventReasonEnum adReason, long cRecords, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
3776 | HRESULT _hr = raw_WillChangeRecord(adReason, cRecords, adStatus, pRecordset);
3777 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3778 | return _hr;
3779 | }
3780 |
3781 | inline HRESULT RecordsetEventsVt_Deprecated::RecordChangeComplete ( enum EventReasonEnum adReason, long cRecords, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
3782 | HRESULT _hr = raw_RecordChangeComplete(adReason, cRecords, pError, adStatus, pRecordset);
3783 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3784 | return _hr;
3785 | }
3786 |
3787 | inline HRESULT RecordsetEventsVt_Deprecated::WillChangeRecordset ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
3788 | HRESULT _hr = raw_WillChangeRecordset(adReason, adStatus, pRecordset);
3789 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3790 | return _hr;
3791 | }
3792 |
3793 | inline HRESULT RecordsetEventsVt_Deprecated::RecordsetChangeComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
3794 | HRESULT _hr = raw_RecordsetChangeComplete(adReason, pError, adStatus, pRecordset);
3795 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3796 | return _hr;
3797 | }
3798 |
3799 | inline HRESULT RecordsetEventsVt_Deprecated::WillMove ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
3800 | HRESULT _hr = raw_WillMove(adReason, adStatus, pRecordset);
3801 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3802 | return _hr;
3803 | }
3804 |
3805 | inline HRESULT RecordsetEventsVt_Deprecated::MoveComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
3806 | HRESULT _hr = raw_MoveComplete(adReason, pError, adStatus, pRecordset);
3807 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3808 | return _hr;
3809 | }
3810 |
3811 | inline HRESULT RecordsetEventsVt_Deprecated::EndOfRecordset ( VARIANT_BOOL * fMoreData, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
3812 | HRESULT _hr = raw_EndOfRecordset(fMoreData, adStatus, pRecordset);
3813 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3814 | return _hr;
3815 | }
3816 |
3817 | inline HRESULT RecordsetEventsVt_Deprecated::FetchProgress ( long Progress, long MaxProgress, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
3818 | HRESULT _hr = raw_FetchProgress(Progress, MaxProgress, adStatus, pRecordset);
3819 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3820 | return _hr;
3821 | }
3822 |
3823 | inline HRESULT RecordsetEventsVt_Deprecated::FetchComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
3824 | HRESULT _hr = raw_FetchComplete(pError, adStatus, pRecordset);
3825 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3826 | return _hr;
3827 | }
3828 |
3829 | //
3830 | // interface _Record_Deprecated wrapper method implementations
3831 | //
3832 |
3833 | inline _variant_t _Record_Deprecated::GetActiveConnection ( ) {
3834 | VARIANT _result;
3835 | VariantInit(&_result);
3836 | HRESULT _hr = get_ActiveConnection(&_result);
3837 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3838 | return _variant_t(_result, false);
3839 | }
3840 |
3841 | inline void _Record_Deprecated::PutActiveConnection ( _bstr_t pvar ) {
3842 | HRESULT _hr = put_ActiveConnection(pvar);
3843 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3844 | }
3845 |
3846 | inline void _Record_Deprecated::PutRefActiveConnection ( struct _Connection_Deprecated * pvar ) {
3847 | HRESULT _hr = putref_ActiveConnection(pvar);
3848 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3849 | }
3850 |
3851 | inline enum ObjectStateEnum _Record_Deprecated::GetState ( ) {
3852 | enum ObjectStateEnum _result;
3853 | HRESULT _hr = get_State(&_result);
3854 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3855 | return _result;
3856 | }
3857 |
3858 | inline _variant_t _Record_Deprecated::GetSource ( ) {
3859 | VARIANT _result;
3860 | VariantInit(&_result);
3861 | HRESULT _hr = get_Source(&_result);
3862 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3863 | return _variant_t(_result, false);
3864 | }
3865 |
3866 | inline void _Record_Deprecated::PutSource ( _bstr_t pvar ) {
3867 | HRESULT _hr = put_Source(pvar);
3868 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3869 | }
3870 |
3871 | inline void _Record_Deprecated::PutRefSource ( IDispatch * pvar ) {
3872 | HRESULT _hr = putref_Source(pvar);
3873 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3874 | }
3875 |
3876 | inline enum ConnectModeEnum _Record_Deprecated::GetMode ( ) {
3877 | enum ConnectModeEnum _result;
3878 | HRESULT _hr = get_Mode(&_result);
3879 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3880 | return _result;
3881 | }
3882 |
3883 | inline void _Record_Deprecated::PutMode ( enum ConnectModeEnum pMode ) {
3884 | HRESULT _hr = put_Mode(pMode);
3885 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3886 | }
3887 |
3888 | inline _bstr_t _Record_Deprecated::GetParentURL ( ) {
3889 | BSTR _result = 0;
3890 | HRESULT _hr = get_ParentURL(&_result);
3891 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3892 | return _bstr_t(_result, false);
3893 | }
3894 |
3895 | inline _bstr_t _Record_Deprecated::MoveRecord ( _bstr_t Source, _bstr_t Destination, _bstr_t UserName, _bstr_t Password, enum MoveRecordOptionsEnum Options, VARIANT_BOOL Async ) {
3896 | BSTR _result = 0;
3897 | HRESULT _hr = raw_MoveRecord(Source, Destination, UserName, Password, Options, Async, &_result);
3898 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3899 | return _bstr_t(_result, false);
3900 | }
3901 |
3902 | inline _bstr_t _Record_Deprecated::CopyRecord ( _bstr_t Source, _bstr_t Destination, _bstr_t UserName, _bstr_t Password, enum CopyRecordOptionsEnum Options, VARIANT_BOOL Async ) {
3903 | BSTR _result = 0;
3904 | HRESULT _hr = raw_CopyRecord(Source, Destination, UserName, Password, Options, Async, &_result);
3905 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3906 | return _bstr_t(_result, false);
3907 | }
3908 |
3909 | inline HRESULT _Record_Deprecated::DeleteRecord ( _bstr_t Source, VARIANT_BOOL Async ) {
3910 | HRESULT _hr = raw_DeleteRecord(Source, Async);
3911 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3912 | return _hr;
3913 | }
3914 |
3915 | inline HRESULT _Record_Deprecated::Open ( const _variant_t & Source, const _variant_t & ActiveConnection, enum ConnectModeEnum Mode, enum RecordCreateOptionsEnum CreateOptions, enum RecordOpenOptionsEnum Options, _bstr_t UserName, _bstr_t Password ) {
3916 | HRESULT _hr = raw_Open(Source, ActiveConnection, Mode, CreateOptions, Options, UserName, Password);
3917 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3918 | return _hr;
3919 | }
3920 |
3921 | inline HRESULT _Record_Deprecated::Close ( ) {
3922 | HRESULT _hr = raw_Close();
3923 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3924 | return _hr;
3925 | }
3926 |
3927 | inline Fields_DeprecatedPtr _Record_Deprecated::GetFields ( ) {
3928 | struct Fields_Deprecated * _result = 0;
3929 | HRESULT _hr = get_Fields(&_result);
3930 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3931 | return Fields_DeprecatedPtr(_result, false);
3932 | }
3933 |
3934 | inline enum RecordTypeEnum _Record_Deprecated::GetRecordType ( ) {
3935 | enum RecordTypeEnum _result;
3936 | HRESULT _hr = get_RecordType(&_result);
3937 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3938 | return _result;
3939 | }
3940 |
3941 | inline _Recordset_DeprecatedPtr _Record_Deprecated::GetChildren ( ) {
3942 | struct _Recordset_Deprecated * _result = 0;
3943 | HRESULT _hr = raw_GetChildren(&_result);
3944 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3945 | return _Recordset_DeprecatedPtr(_result, false);
3946 | }
3947 |
3948 | inline HRESULT _Record_Deprecated::Cancel ( ) {
3949 | HRESULT _hr = raw_Cancel();
3950 | if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
3951 | return _hr;
3952 | }
3953 |
--------------------------------------------------------------------------------
/Debug/vc141.idb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/Debug/vc141.idb
--------------------------------------------------------------------------------
/Debug/vc141.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/Debug/vc141.pdb
--------------------------------------------------------------------------------
/Debug/中间代码优化.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/Debug/中间代码优化.obj
--------------------------------------------------------------------------------
/Debug/中间代码翻译器(Lr0).obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/Debug/中间代码翻译器(Lr0).obj
--------------------------------------------------------------------------------
/Debug/中间代码翻译器.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/Debug/中间代码翻译器.obj
--------------------------------------------------------------------------------
/Debug/目标代码生成.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/Debug/目标代码生成.obj
--------------------------------------------------------------------------------
/Debug/符号表.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/Debug/符号表.obj
--------------------------------------------------------------------------------
/Debug/词法分析.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/Debug/词法分析.obj
--------------------------------------------------------------------------------
/Debug/语法分析(LL1).obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/Debug/语法分析(LL1).obj
--------------------------------------------------------------------------------
/Debug/语法分析器.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/Debug/语法分析器.exe
--------------------------------------------------------------------------------
/Debug/语法分析器.ilk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/Debug/语法分析器.ilk
--------------------------------------------------------------------------------
/Debug/语法分析器.log:
--------------------------------------------------------------------------------
1 | 中间代码优化.cpp
2 | 中间代码翻译器.cpp
3 | d:\编译器\--master\中间代码翻译器.cpp(90): warning C4244: “=”: 从“double”转换到“char”,可能丢失数据
4 | d:\编译器\--master\中间代码翻译器.cpp(124): warning C4244: “=”: 从“double”转换到“char”,可能丢失数据
5 | d:\编译器\--master\中间代码翻译器.cpp(136): warning C4244: “=”: 从“double”转换到“char”,可能丢失数据
6 | 目标代码生成.cpp
7 | 符号表.cpp
8 | 词法分析.cpp
9 | d:\编译器\--master\词法分析.cpp(19): warning C4091: “static ”: 没有声明变量时忽略“twoele”的左侧
10 | 语法分析(LL1).cpp
11 | 调试.cpp
12 | 正在生成代码...
13 | 语法分析器.vcxproj -> D:\编译器\--master\Debug\语法分析器.exe
14 |
--------------------------------------------------------------------------------
/Debug/语法分析器.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/Debug/语法分析器.pdb
--------------------------------------------------------------------------------
/Debug/语法分析器.tlog/CL.command.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/Debug/语法分析器.tlog/CL.command.1.tlog
--------------------------------------------------------------------------------
/Debug/语法分析器.tlog/CL.read.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/Debug/语法分析器.tlog/CL.read.1.tlog
--------------------------------------------------------------------------------
/Debug/语法分析器.tlog/CL.write.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/Debug/语法分析器.tlog/CL.write.1.tlog
--------------------------------------------------------------------------------
/Debug/语法分析器.tlog/link.command.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/Debug/语法分析器.tlog/link.command.1.tlog
--------------------------------------------------------------------------------
/Debug/语法分析器.tlog/link.read.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/Debug/语法分析器.tlog/link.read.1.tlog
--------------------------------------------------------------------------------
/Debug/语法分析器.tlog/link.write.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/Debug/语法分析器.tlog/link.write.1.tlog
--------------------------------------------------------------------------------
/Debug/语法分析器.tlog/语法分析器.lastbuildstate:
--------------------------------------------------------------------------------
1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0.17763.0
2 | Debug|Win32|D:\编译器\--master\|
3 |
--------------------------------------------------------------------------------
/Debug/调试.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/Debug/调试.obj
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # compiler
2 | 简单的C语言编译器
3 | 对一个简单的c语言文法完整实现了前端和后端,编译完成可得到8086指令集所支持的目标代码
4 |
--------------------------------------------------------------------------------
/action.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/action.dat
--------------------------------------------------------------------------------
/analysistable.accdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/analysistable.accdb
--------------------------------------------------------------------------------
/analysistable.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/analysistable.dat
--------------------------------------------------------------------------------
/end.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/end.dat
--------------------------------------------------------------------------------
/fourelem.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/fourelem.dat
--------------------------------------------------------------------------------
/fourelement.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/fourelement.dat
--------------------------------------------------------------------------------
/func.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/func.dat
--------------------------------------------------------------------------------
/grammar.txt:
--------------------------------------------------------------------------------
1 | funcdef%type&id&(¶state&)&{&funcblock&}
2 | type%int|float|char|void
3 | factor%(&exp&)|id|number|ch
4 | exp%divi&item
5 | divi%factor&faccycle
6 | faccycle%*&factor&faccycle|/&factor&faccycle|$
7 | item%+&divi&item|-&divi&item|$
8 | parastate%state&stateclo|$
9 | state%type&id&init|id&init
10 | init%=&rvalue|$
11 | rvalue%exp
12 | stateclo%,&stateclo|$
13 | funcblock%staclo&funcbloclo
14 | staclo%statement&staclo|$
15 | statement%state&;
16 | funcbloclo%opera&funcbloclo|whilecycle&funcbloclo|condistate&funcbloclo|funcend&funcbloclo|coutstate&funcbloclo|cinstate&funcbloclo|$
17 | opera%id&callstate
18 | callstate%=&rvalue&;|(¶list&)&;
19 | paralist%para¶clo
20 | paraclo%,¶¶clo|$
21 | para%id|number|string
22 | whilecycle%while&(&logicexp&)&do&{&funcblock&}&we
23 | logicexp%exp&logicopera&exp
24 | logicopera%>|<|==|>=|<=
25 | condistate%if&(&logicexp&)&{&funcblock&}&nor&ie
26 | nor%else&{&funcblock&}|$
27 | funcend%return&factor&;
28 | coutstate%cout&<&<&id&;
29 | cinstate%cin&>&>&id&;
30 | do%$
31 | we%$
32 | ie%$
33 | #
34 |
--------------------------------------------------------------------------------
/main(void):
--------------------------------------------------------------------------------
1 | 4
2 |
--------------------------------------------------------------------------------
/optimize.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/optimize.dat
--------------------------------------------------------------------------------
/symboltable.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/symboltable.dat
--------------------------------------------------------------------------------
/target.asm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/target.asm
--------------------------------------------------------------------------------
/text.cpp:
--------------------------------------------------------------------------------
1 | int main(int g)
2 | {
3 | int a = 11;
4 | int d = 2;
5 | int i;
6 | int total=0;
7 | int q;
8 | float r;
9 | int s;
10 | int lo;
11 | char y = 'a';
12 | float k=1;
13 | cin >> i;
14 | r = 1 + 1.0;
15 | s = a*d;
16 | lo = a / d;
17 | if(a > d) {
18 | d = a + 1;
19 | }
20 | else{
21 | a=d;
22 | }
23 | cout << total;
24 | while(i<100){
25 | total=total+i;
26 | i=i+1;
27 | }
28 | cout << total;
29 | i=0;
30 | return 0;
31 | }
--------------------------------------------------------------------------------
/vall.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/vall.dat
--------------------------------------------------------------------------------
/wordsequence.dat:
--------------------------------------------------------------------------------
1 | 2
2 | 1
3 | 0
4 | main
5 | 3
6 | 15
7 | 2
8 | 1
9 | 0
10 | g
11 | 3
12 | 16
13 | 3
14 | 11
15 | 2
16 | 1
17 | 0
18 | a
19 | 3
20 | 4
21 | 1
22 | 11.000000
23 | 3
24 | 14
25 | 2
26 | 1
27 | 0
28 | d
29 | 3
30 | 4
31 | 1
32 | 2.000000
33 | 3
34 | 14
35 | 2
36 | 1
37 | 0
38 | i
39 | 3
40 | 14
41 | 2
42 | 1
43 | 0
44 | total
45 | 3
46 | 4
47 | 1
48 | 0.000000
49 | 3
50 | 14
51 | 2
52 | 1
53 | 0
54 | q
55 | 3
56 | 14
57 | 2
58 | 2
59 | 0
60 | r
61 | 3
62 | 14
63 | 2
64 | 1
65 | 0
66 | s
67 | 3
68 | 14
69 | 2
70 | 1
71 | 0
72 | lo
73 | 3
74 | 14
75 | 2
76 | 3
77 | 0
78 | y
79 | 3
80 | 4
81 | 4
82 | a
83 | 3
84 | 14
85 | 2
86 | 2
87 | 0
88 | k
89 | 3
90 | 4
91 | 1
92 | 1.000000
93 | 3
94 | 14
95 | 2
96 | 18
97 | 3
98 | 5
99 | 3
100 | 5
101 | 0
102 | i
103 | 3
104 | 14
105 | 0
106 | r
107 | 3
108 | 4
109 | 1
110 | 1.000000
111 | 3
112 | 7
113 | 1
114 | 1.000000
115 | 3
116 | 14
117 | 0
118 | s
119 | 3
120 | 4
121 | 0
122 | a
123 | 3
124 | 9
125 | 0
126 | d
127 | 3
128 | 14
129 | 0
130 | lo
131 | 3
132 | 4
133 | 0
134 | a
135 | 3
136 | 10
137 | 0
138 | d
139 | 3
140 | 14
141 | 2
142 | 5
143 | 3
144 | 15
145 | 0
146 | a
147 | 3
148 | 5
149 | 0
150 | d
151 | 3
152 | 16
153 | 3
154 | 11
155 | 0
156 | d
157 | 3
158 | 4
159 | 0
160 | a
161 | 3
162 | 7
163 | 1
164 | 1.000000
165 | 3
166 | 14
167 | 3
168 | 12
169 | 2
170 | 6
171 | 3
172 | 11
173 | 0
174 | a
175 | 3
176 | 4
177 | 0
178 | d
179 | 3
180 | 14
181 | 3
182 | 12
183 | 2
184 | 17
185 | 3
186 | 6
187 | 3
188 | 6
189 | 0
190 | total
191 | 3
192 | 14
193 | 2
194 | 11
195 | 3
196 | 15
197 | 0
198 | i
199 | 3
200 | 6
201 | 1
202 | 100.000000
203 | 3
204 | 16
205 | 3
206 | 11
207 | 0
208 | total
209 | 3
210 | 4
211 | 0
212 | total
213 | 3
214 | 7
215 | 0
216 | i
217 | 3
218 | 14
219 | 0
220 | i
221 | 3
222 | 4
223 | 0
224 | i
225 | 3
226 | 7
227 | 1
228 | 1.000000
229 | 3
230 | 14
231 | 3
232 | 12
233 | 2
234 | 17
235 | 3
236 | 6
237 | 3
238 | 6
239 | 0
240 | total
241 | 3
242 | 14
243 | 0
244 | i
245 | 3
246 | 4
247 | 1
248 | 0.000000
249 | 3
250 | 14
251 | 2
252 | 16
253 | 1
254 | 0.000000
255 | 3
256 | 14
257 | 3
258 | 12
259 |
--------------------------------------------------------------------------------
/中间代码优化.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/中间代码优化.cpp
--------------------------------------------------------------------------------
/中间代码翻译器.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/中间代码翻译器.cpp
--------------------------------------------------------------------------------
/完成版文法.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/完成版文法.docx
--------------------------------------------------------------------------------
/文法数据统计.xlsx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/文法数据统计.xlsx
--------------------------------------------------------------------------------
/标头.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/标头.h
--------------------------------------------------------------------------------
/目标代码生成.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/目标代码生成.cpp
--------------------------------------------------------------------------------
/符号表.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/符号表.cpp
--------------------------------------------------------------------------------
/词法分析.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/词法分析.cpp
--------------------------------------------------------------------------------
/语法分析(LL1).cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/语法分析(LL1).cpp
--------------------------------------------------------------------------------
/语法分析器.rar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/语法分析器.rar
--------------------------------------------------------------------------------
/语法分析器.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.28307.136
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "语法分析器", "语法分析器.vcxproj", "{9C3C0BE0-65B1-43AA-A7CD-72E9C19F872B}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|x64 = Debug|x64
11 | Debug|x86 = Debug|x86
12 | Release|x64 = Release|x64
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {9C3C0BE0-65B1-43AA-A7CD-72E9C19F872B}.Debug|x64.ActiveCfg = Debug|x64
17 | {9C3C0BE0-65B1-43AA-A7CD-72E9C19F872B}.Debug|x64.Build.0 = Debug|x64
18 | {9C3C0BE0-65B1-43AA-A7CD-72E9C19F872B}.Debug|x86.ActiveCfg = Debug|Win32
19 | {9C3C0BE0-65B1-43AA-A7CD-72E9C19F872B}.Debug|x86.Build.0 = Debug|Win32
20 | {9C3C0BE0-65B1-43AA-A7CD-72E9C19F872B}.Release|x64.ActiveCfg = Release|x64
21 | {9C3C0BE0-65B1-43AA-A7CD-72E9C19F872B}.Release|x64.Build.0 = Release|x64
22 | {9C3C0BE0-65B1-43AA-A7CD-72E9C19F872B}.Release|x86.ActiveCfg = Release|Win32
23 | {9C3C0BE0-65B1-43AA-A7CD-72E9C19F872B}.Release|x86.Build.0 = Release|Win32
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | GlobalSection(ExtensibilityGlobals) = postSolution
29 | SolutionGuid = {B7FD8099-7A38-475E-83DE-0DAD2266D376}
30 | EndGlobalSection
31 | EndGlobal
32 |
--------------------------------------------------------------------------------
/语法分析器.vcxproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | Win32
7 |
8 |
9 | Release
10 | Win32
11 |
12 |
13 | Debug
14 | x64
15 |
16 |
17 | Release
18 | x64
19 |
20 |
21 |
22 | {9C3C0BE0-65B1-43AA-A7CD-72E9C19F872B}
23 | 语法分析器
24 | 10.0.17763.0
25 |
26 |
27 |
28 | Application
29 | true
30 | v141
31 | Unicode
32 |
33 |
34 | Application
35 | false
36 | v141
37 | true
38 | Unicode
39 |
40 |
41 | Application
42 | true
43 | v141
44 | Unicode
45 |
46 |
47 | Application
48 | false
49 | v141
50 | true
51 | Unicode
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 | Level3
75 | Disabled
76 | true
77 | Default
78 |
79 |
80 |
81 |
82 | Level3
83 | Disabled
84 | true
85 |
86 |
87 |
88 |
89 | Level3
90 | MaxSpeed
91 | true
92 | true
93 | true
94 |
95 |
96 | true
97 | true
98 |
99 |
100 |
101 |
102 | Level3
103 | MaxSpeed
104 | true
105 | true
106 | true
107 |
108 |
109 | true
110 | true
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
--------------------------------------------------------------------------------
/语法分析器.vcxproj.filters:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
7 |
8 |
9 | {93995380-89BD-4b04-88EB-625FBE52EBFB}
10 | h;hh;hpp;hxx;hm;inl;inc;xsd
11 |
12 |
13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
15 |
16 |
17 |
18 |
19 | 源文件
20 |
21 |
22 | 源文件
23 |
24 |
25 | 源文件
26 |
27 |
28 | 源文件
29 |
30 |
31 | 源文件
32 |
33 |
34 | 源文件
35 |
36 |
37 | 源文件
38 |
39 |
40 |
41 |
42 | 头文件
43 |
44 |
45 |
--------------------------------------------------------------------------------
/语法分析器.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/调试.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rui9812/compiler/a5cd7b4eed7cedd4297a1f6a2ecbd5a7d9c068c7/调试.cpp
--------------------------------------------------------------------------------