关于ATL服务的调用?
我在MFC程序下调用C接口的函数是正常的
但是在ATL服务的方式下调用却是失败的,请问可能是什么原因呢?
问题点数:100、回复次数:8Top
1 楼jiangsheng(蒋晟.Net[MVP])回复于 2006-03-03 09:04:35 得分 50
privilege
services are running in the Local Service context.Top
2 楼happyie(hanke)回复于 2006-03-03 09:19:09 得分 0
能说的再详细点吗?Top
3 楼jiangsheng(蒋晟.Net[MVP])回复于 2006-03-03 09:58:11 得分 0
More information is needed. see http://community.csdn.net/HomePage/SmartQuestion.aspxTop
4 楼striking(庸人自扰)回复于 2006-03-03 14:52:05 得分 50
GetLastError()返回什么值Top
5 楼striking(庸人自扰)回复于 2006-03-03 14:52:41 得分 0
ATL工程是UNICODE ,还是ANSI.Top
6 楼happyie(hanke)回复于 2006-03-03 15:52:30 得分 0
TO:striking
我是调用人家的小灵通网关的,所以 不能得到GetLastError()值
Top
7 楼happyie(hanke)回复于 2006-03-03 15:53:29 得分 0
ATL工程是UNICODE 的Top
8 楼striking(庸人自扰)回复于 2006-03-03 18:14:34 得分 0
跟我猜的一样.
unicode调用c接口函数, 你需要先将参数转化为ansi的, 再传进去.
参考.http://community.csdn.net/Expert/FAQ/FAQ_Index.asp?id=212253
不知道这样可不可以.Top




