一个非常简单的COM服务器和客户端 [英] A Very Simple COM Server and Client

查看:71
本文介绍了一个非常简单的COM服务器和客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

#ifdef _UNICODE
        //UNICODE
        _tscpy(szCLSID,wszGUID);





Error   7   error C3861: '_tscpy': identifier not found c:\Users\User\Documents\Visual Studio 2005\Projects\pig.dsp\pig.dsp\pig.cpp 169





I am getting the error while i compile the code.

推荐答案

中声明的="_ blank" title ="New Window"> ^ ] id
COM出于所有实际目的使用Unicode,这意味着#ifdef _UNICODE可以跳过,除非您必须与16位窗口兼容.

即使您实际上想保持与多字节字符集的兼容性,_tscpy的目的也是让您删除#ifdef _UNICODE构造.

问候
Espen Harlinn
_tscpy[^] id declared in TCHAR.H

COM uses for all practical purposes Unicode, meaning that #ifdef _UNICODE can be skipped unless you have to be compatible with 16-bit windows.

and even if you actually want to maintain compatibility with multibyte character sets the purpose of _tscpy is to let you drop the #ifdef _UNICODE construct.

Regards
Espen Harlinn


这篇关于一个非常简单的COM服务器和客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆