#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.
78 CComObject<CTestObject>* pTest;
79 HRESULT hr = CComObject<CTestObject>::CreateInstance(&pTest);
81 ok(
hr ==
S_OK,
"Expected S_OK, got 0x%lx\n",
hr);
90 ok(
ref == 1,
"Expected 1, got %lu\n",
ref);
93 CComPtr<IUnknown>
ppv;
95 ok(
hr ==
S_OK,
"Expected S_OK, got 0x%lx\n",
hr);
100 CComPtr<IPersist> ppersist;
102 ok(
hr ==
S_OK,
"Expected S_OK, got 0x%lx\n",
hr);
110 CComPtr<IStdMarshalInfo> pstd;
111 hr = pTest->QueryInterface(IID_IStdMarshalInfo, (
void **)&pstd);
112 ok(
hr ==
S_OK,
"Expected S_OK, got 0x%lx\n",
hr);
118 ref = pTest->Release();
119 ok(
ref == 0,
"Expected 0, got %lu\n",
ref);
◆ dum
◆ g_BLIND
◆ g_CTOR
◆ g_DTOR