GCloudVoice 1.1.24在XP系统无法启动

26 篇文章 1 订阅
15 篇文章 0 订阅

新版本GCloudVoice 1.1.24
32位GCloudVoice.dll
在Win7下正常
但是在XP下导致程序无法启动(老版本1.1.12一切正常)
DllNotFoundException: GCloudVoice
  at (wrapper managed-to-native) gcloud_voice.GCloudVoiceEngine:GCloudVoice_CreateInstance ()
  at gcloud_voice.GCloudVoiceEngine..ctor () [0x00000] in <filename unknown>:0 
  at gcloud_voice.GCloudVoice.GetEngine () [0x00000] in <filename unknown>:0 
  at MainScene.Start () [0x00000] in <filename unknown>:0 

C++接口弹框提示:无法定位程序输入点 inet_ntop 于动态链接库 ws2_32.dll 上

百度后结论,此版本GCloudVoice.dll调用了Vista才开始支持的inet_ntop导出函数,可能是为了方便支持IPv6
所以XP肯定创建失败,
解决方法:

try{
    m_voiceengine = GCloudVoice.GetEngine ();
}catch(Exception ex){
	m_voiceengine = new GCloudVoiceDummy ();//这是自己写的对IGCloudVoice接口做完全空的实现
}

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值