📄 testinterface1.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -