1、引用
2、翻译
TranslateClass.TanslateMain.TanslateLanguage("我的邮箱是23370992@QQ.com", "EN")
3、config文件的内容替换项目的app.config中
<?xml version="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v2.0.50727"/>
</startup>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_LanguageService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
<message clientCredentialType="UserName" algorithmSuite="Default"/>
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://api.microsofttranslator.com/V1/soap.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_LanguageService" contract="TranslatorService.LanguageService" name="BasicHttpBinding_LanguageService"/>
</client>
</system.serviceModel>
</configuration>
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
In this article we will see how we can create a simple Desktop Translator which uses the TranslateClass.dll 1、引用 2、翻译 TranslateClass.TanslateMain.TanslateLanguage("这是翻译内容", "EN") 3、config文件的内容替换项目的app.config中
资源推荐
资源详情
资源评论
收起资源包目录
WFApplication.rar (30个子文件)
WindowsFormsApplication2
WindowsFormsApplication2.csproj 4KB
Form1.cs 582B
Program.cs 485B
Form1.resx 6KB
app.config 1KB
Properties
Settings.settings 249B
Resources.Designer.cs 3KB
AssemblyInfo.cs 1KB
Settings.Designer.cs 1KB
Resources.resx 5KB
Form1.Designer.cs 2KB
obj
x86
Debug
ResolveAssemblyReference.cache 4KB
TempPE
Properties.Resources.Designer.cs.dll 5KB
WindowsFormsApplication2.Properties.Resources.resources 180B
DesignTimeResolveAssemblyReferencesInput.cache 6KB
WindowsFormsApplication2.exe 8KB
WindowsFormsApplication2.pdb 24KB
WindowsFormsApplication2.Form1.resources 180B
WindowsFormsApplication2.csproj.FileListAbsolute.txt 1008B
bin
Debug
WindowsFormsApplication2.vshost.exe 11KB
WindowsFormsApplication2.vshost.exe.config 1KB
TranslateClass.pdb 14KB
WindowsFormsApplication2.exe.config 1KB
WindowsFormsApplication2.vshost.exe.manifest 490B
WindowsFormsApplication2.exe 8KB
WindowsFormsApplication2.pdb 24KB
TranslateClass.dll 7KB
WindowsFormsApplication2.suo 18KB
WindowsFormsApplication2.sln 914B
readme.txt 1KB
共 30 条
- 1
资源评论
- zj0112722002012-07-13还需要自己的改动,代码写的一般!
- yijing2222014-01-07明明调用的是微软的api
- 键盘杀手2013-01-29哈哈,明明调用的是微软的api,我用网络捕获包软件查看到的
asakao
- 粉丝: 7
- 资源: 33
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功