How to Port Your Traditional Win32 Code to UWP

(currently this is draft)

Using Microsoft Destop Bridge Tools Convert Non-UWP to UWP

Destop Bridge Convert

It 's easiest way to get your win32 Ap running in the Universal Windows Platform, But it not suitable for enterprises development,Because we can’t control it’s convert process. When the program hv a Bug,if Convert introduced, we will hardly located and fixed it. So we don’t recommend to Using this Way.
The Destop Bridge Convert Information:
https://docs.microsoft.com/zh-cn/windows/msix/desktop/desktop-to-uwp-root

Using LoadPackagedLibrary Run Time Call Win32 Dll

Warp your Win32 Dll to COM for UWP Call

Entirely Convert

Openssl for uwp

20608:error:24064064:random number generator:SSLEAY_RAND_BYTES:PRNG not seeded:.\crypto\rand\md_rand.c:545:You need to read the OpenSSL FAQ, http://www.openssl.org/support/faq.html

Fix: reference * Why do I get a “PRNG not seeded” error message?

On other systems, applications have to call the RAND_add() or
RAND_seed() function with appropriate data before generating keys or
performing public key encryption.
#include “openssl/rand.h”

Files to Write and Read

Release a App Pacage to Windows Store

Issue Fixed When Release

  • Supported API test Failed

Error Found: The supported APIs test detected the following errors:
API nghttp2_session_callbacks_del in nghttp2.dll is not supported for
this application type. CUISDKApp.exe calls this API.
API nghttp2_session_callbacks_new in nghttp2.dll is

  • App manifest resources tests Failed

Error Found: The branding validation test encountered the following errors:
Image file StoreLogo.png is a default image.
Image file Square44x44Logo.scale-200.png is a default image.
Image file Square44x44Logo.targetsize-24_altform-unplated.png is a default
image.
Image file Square150x150Logo.scale-200.png is a default image.
Image file Wide310x150Logo.scale-200.png is a default image.
Image file SplashScreen.scale-200.png is a default image.

  • Windows Runtime metadata validation

Error Found: The type location test detected the following errors:
The types in the winrt_lenovo namespace are located in file C:\Program
Files\windowsapps\e046963f.cuisdkapp_1.0.3.0_x64__k1h2ywk1493x8\CUISDKApp.winmd
that does not match the namespace.

Using Win32 Service or UWP App Service

Appendix

section 1.1

section 1.2

chapter 2

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章