#include <atlbase.h>
#include <atlcom.h>
#include "atltest.h"
Go to the source code of this file.
◆ START_TEST()
START_TEST |
( |
CComObject |
| ) |
|
Definition at line 74 of file CComObject.cpp.
75{
77
78 CComObject<CTestObject>* pTest;
79 HRESULT hr = CComObject<CTestObject>::CreateInstance(&pTest);
80
81 ok(
hr ==
S_OK,
"Expected S_OK, got 0x%lx\n",
hr);
82
86
88 {
90 ok(
ref == 1,
"Expected 1, got %lu\n",
ref);
91
92 {
93 CComPtr<IUnknown>
ppv;
95 ok(
hr ==
S_OK,
"Expected S_OK, got 0x%lx\n",
hr);
99
100 CComPtr<IPersist> ppersist;
102 ok(
hr ==
S_OK,
"Expected S_OK, got 0x%lx\n",
hr);
106
107 }
108
109 {
110 CComPtr<IStdMarshalInfo> pstd;
112 ok(
hr ==
S_OK,
"Expected S_OK, got 0x%lx\n",
hr);
116 }
117
118 ref = pTest->Release();
119 ok(
ref == 0,
"Expected 0, got %lu\n",
ref);
123 }
124}
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
◆ dum
◆ g_BLIND
◆ g_CTOR
◆ g_DTOR