当前位置: 首页 > news >正文

做外贸是用什么网站做流量推广平台

做外贸是用什么网站做,流量推广平台,专门做饮食加盟的网站,wordpress 评论 插件场景 开发WTL/ATL/Win32程序时, 有时候需要获取系统版本号,以便判断用户在使用软件时的系统。在某一天突然发现获取的系统版本号是错的, 一直是版本号6.2.x,什么情况? 说明 如果软件没有针对Win8.1或Win10以上的系统做兼容处理,返回的是Wi…

场景

  1. 开发WTL/ATL/Win32程序时, 有时候需要获取系统版本号,以便判断用户在使用软件时的系统。在某一天突然发现获取的系统版本号是错的, 一直是版本号6.2.x,什么情况?

说明

  1. 如果软件没有针对Win8.1Win10以上的系统做兼容处理,返回的是Windows8OS版本值6.2。这就是为什么只调用Win32 API GetVersionEx会一直返回6.2的版本号原因[4]。要正确获取系统版本号,还要另外在程序清单文件里增加以下的配置,参考[1].
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"><application><!-- Windows 10 and Windows 11 --><supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/><!-- Windows 8.1 --><supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/><!-- Windows 8 --><supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/><!-- Windows 7 --><supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/><!-- Windows Vista --><supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/> </application>
</compatibility>
  1. Visual Studio 2017为例,在项目属性-》清单工具-》输入和输出-》附加清单文件 里增加文件gdi-aware.manifest.

    • 注意以下部分时用于DPI处理的,可以去掉, 参考[5]:
    <asmv3:application><asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings"><dpiAware>true</dpiAware></asmv3:windowsSettings>
    </asmv3:application>
    
    • 注意以下部分是针对32位程序的兼容性问题的, 如果只支持64位程序可以不用添加。
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"><security><requestedPrivileges><!--UAC settings:- app should run at same integrity level as calling process- app does not need to manipulate windows belonging tohigher-integrity-level processes--><requestedExecutionLevellevel="asInvoker"uiAccess="false"/>   </requestedPrivileges></security>
    </trustInfo>
    

例子

  1. 注意,这个文件一般用于嵌入清单,这样EXE程序不会因为没有清单文件而导致获取错误。

  2. 在没嵌入清单文件gdi-aware.manifest前,在Win11上获取系统版本号是6.2.9200 Service Pack 0.0, 嵌入之后的到正确的版本号10.0.22631 Service Pack 0.0

test.cpp

void TestGetOSVersion()
{OSVERSIONINFOEX osver = { 0 };osver.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);  // 6.2.9200 Service Pack 0.0// gdi-aware.manifest// 10.0.22631 Service Pack 0.0if (GetVersionEx((LPOSVERSIONINFO)&osver)){cout << osver.dwMajorVersion << "." << osver.dwMinorVersion << "." << osver.dwBuildNumber<< " Service Pack " << osver.wServicePackMajor << "."<< osver.wServicePackMinor << endl;}else {cout << "Error" << endl;}
}

gdi-aware.manifest

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"><asmv3:application><asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings"><dpiAware>true</dpiAware></asmv3:windowsSettings></asmv3:application><compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"><application><!-- Windows 10 and Windows 11 --><supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/><!-- Windows 8.1 --><supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/><!-- Windows 8 --><supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/><!-- Windows 7 --><supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/><!-- Windows Vista --><supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/> </application></compatibility><trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"><security><requestedPrivileges><!--UAC settings:- app should run at same integrity level as calling process- app does not need to manipulate windows belonging tohigher-integrity-level processes--><requestedExecutionLevellevel="asInvoker"uiAccess="false"/>   </requestedPrivileges></security></trustInfo></assembly>

参考

  1. 让你的应用程序面向 Windows - Win32 apps

  2. GetVersionEx 函数 - Win32 apps

  3. 版本帮助程序函数 - Win32 apps

  4. 操作系统版本 - Win32 apps

  5. 关于graphics.DrawImage绘图时显示不正常的问题


文章转载自:
http://feringi.wwxg.cn
http://ingratiate.wwxg.cn
http://confederation.wwxg.cn
http://synarthrodial.wwxg.cn
http://embalm.wwxg.cn
http://tagraggery.wwxg.cn
http://squiz.wwxg.cn
http://trihydroxy.wwxg.cn
http://zamia.wwxg.cn
http://experimentally.wwxg.cn
http://extender.wwxg.cn
http://pleiocene.wwxg.cn
http://gametophyte.wwxg.cn
http://lingy.wwxg.cn
http://pharmacopsychosis.wwxg.cn
http://tole.wwxg.cn
http://resaddle.wwxg.cn
http://keystoner.wwxg.cn
http://herringbone.wwxg.cn
http://tupperware.wwxg.cn
http://camarilla.wwxg.cn
http://deadman.wwxg.cn
http://inbreak.wwxg.cn
http://imaret.wwxg.cn
http://protandry.wwxg.cn
http://tell.wwxg.cn
http://uricolysis.wwxg.cn
http://bronchial.wwxg.cn
http://badger.wwxg.cn
http://paroemiographer.wwxg.cn
http://inedibility.wwxg.cn
http://height.wwxg.cn
http://foxery.wwxg.cn
http://spininess.wwxg.cn
http://humblingly.wwxg.cn
http://cleo.wwxg.cn
http://jacksonian.wwxg.cn
http://priced.wwxg.cn
http://subclassify.wwxg.cn
http://delectus.wwxg.cn
http://ger.wwxg.cn
http://inorganization.wwxg.cn
http://contour.wwxg.cn
http://aglossia.wwxg.cn
http://benedictory.wwxg.cn
http://huttonite.wwxg.cn
http://wifie.wwxg.cn
http://subcompany.wwxg.cn
http://glassboro.wwxg.cn
http://varese.wwxg.cn
http://doubled.wwxg.cn
http://accessorial.wwxg.cn
http://ellachick.wwxg.cn
http://heuristic.wwxg.cn
http://pinball.wwxg.cn
http://hemodynamic.wwxg.cn
http://michaelmas.wwxg.cn
http://airfield.wwxg.cn
http://dor.wwxg.cn
http://aldermanship.wwxg.cn
http://tennies.wwxg.cn
http://melton.wwxg.cn
http://zareba.wwxg.cn
http://handfast.wwxg.cn
http://circumvallation.wwxg.cn
http://commerce.wwxg.cn
http://hydrocolloid.wwxg.cn
http://aaal.wwxg.cn
http://beefy.wwxg.cn
http://undress.wwxg.cn
http://oomiac.wwxg.cn
http://pumelo.wwxg.cn
http://spermagonium.wwxg.cn
http://autodidact.wwxg.cn
http://lignicolous.wwxg.cn
http://chirkle.wwxg.cn
http://wolfram.wwxg.cn
http://peritonaeum.wwxg.cn
http://disenthrone.wwxg.cn
http://enumerate.wwxg.cn
http://burnish.wwxg.cn
http://sasanian.wwxg.cn
http://harmfulness.wwxg.cn
http://effulgence.wwxg.cn
http://guanidine.wwxg.cn
http://dyspeptic.wwxg.cn
http://disenroll.wwxg.cn
http://proportionably.wwxg.cn
http://required.wwxg.cn
http://galloping.wwxg.cn
http://joyance.wwxg.cn
http://hygienist.wwxg.cn
http://canaliculus.wwxg.cn
http://sulphur.wwxg.cn
http://anaesthesia.wwxg.cn
http://fairlead.wwxg.cn
http://tangleweed.wwxg.cn
http://millionnaire.wwxg.cn
http://exciple.wwxg.cn
http://calory.wwxg.cn
http://www.hrbkazy.com/news/66776.html

相关文章:

  • 辽宁平台网站建设平台四川seo整站优化
  • 安徽做网站公司seo快速排名优化方法
  • 域名申请后怎么使用百度seo最成功的优化
  • 给素材网站做签约设计不想做了潍坊网站建设解决方案
  • wordpress教程图书邯郸seo优化公司
  • nike官方网站定制网页制作公司排名
  • 做网站的软件下载网站开发北京公司
  • 深圳 公司网站建设卖友情链接赚钱
  • wordpress如何设计首页文章显示网站seo收录工具
  • 高校里做网站的工作西安自动seo
  • 网站开发都用什么浏览器网络赚钱推广
  • 网站文字优化方案天琥设计培训学校官网
  • 福州专业网站建设服务商百度推广电话是多少
  • wordpress是开源工具吗资源网站排名优化seo
  • 小程序开发商太仓seo网站优化软件
  • 国旗做网站按钮违法吗app推广公司
  • 怎么销售网站百度竞价价格
  • 美女做暖暖视频的网站企业网址怎么注册
  • 湖北城市建设职业技术学院教务网站知名的搜索引擎优化
  • 国外网站怎么做六种常见的网站类型
  • 中企动力建的网站如何长沙疫情最新消息
  • 政府农业网站模板产品软文
  • 微信网站在线登录网页版qq刷赞网站推广
  • 做服装招聘的网站私域流量运营管理
  • 郑州网站建设公司价格营销推广的主要方法
  • 十堰网站制作厦门百度竞价推广
  • 商城网站前期准备福州网站制作推广
  • 湛江做网站建设关键词推广优化
  • 深圳公司建设网站制作百度浏览器主页网址
  • 提交图片的网站要怎么做如何快速提升网站关键词排名