hotuse.cpp

来自「DCOM 上位机和嵌入式系统通信」· C++ 代码 · 共 34 行

CPP
34
字号
// hotuse.cpp : Implementation of Chotuse
#include "stdafx.h"
#include "ComServer.h"
#include "hotuse.h"

/////////////////////////////////////////////////////////////////////////////
// Chotuse


STDMETHODIMP Chotuse::setranflg()
{
	// TODO: Add your implementation code here
    tranflg=1;
	return S_OK;
}

STDMETHODIMP Chotuse::getranflg(short *flg)
{
	// TODO: Add your implementation code here
	if(tranflg)
		*flg=1;
	else
		*flg=0;

	return S_OK;
}

STDMETHODIMP Chotuse::getcopy_flag(int *flag)
{
	// TODO: Add your implementation code here
    *flag=copy_flag;
	return S_OK;
}

⌨️ 快捷键说明

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