testinterface1.cpp

来自「大学毕业前的最后一学期」· C++ 代码 · 共 25 行

CPP
25
字号
// TestInterface1.cpp : Implementation of CTestInterface1
#include "stdafx.h"
#include "TestComObject1.h"
#include "TestInterface1.h"

#include <iostream>

/////////////////////////////////////////////////////////////////////////////
// CTestInterface1


STDMETHODIMP CTestInterface1::TestFunc1()
{
	// TODO: Add your implementation code here
	
/*	LPVOID lpvData = TlsGetValue(dwTlsIndex);

	if ( lpvData == NULL )
		return RPC_E_WRONG_THREAD;
*/
	std::cout << "In the itestinferface1's object, the thread's id is " << ::GetCurrentThreadId() << std::endl;

	return S_OK;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?