积极答复者
关于Win32代码移植问题,求助!

问题
答案
-
Hi,
第一个比较不好判断,一部分Win32和COM组件还是可以用的,请参考下面的链接,没有在里面列出的API都是不能用的。
http://msdn.microsoft.com/library/windows/apps/br211369
第二个,是这样,不过就像上面说的不是所有Win32 API都要换。
Aaron Xue [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已建议为答案 Aaron XueModerator 2012年11月9日 9:28
- 已标记为答案 Aaron XueModerator 2012年11月23日 9:52
-
Hi,
抱歉回复晚了。这是完全可以的,JS调用WinRT组件可以参考:
C#:
http://msdn.microsoft.com/en-us/library/windows/apps/hh779077.aspx
C++:
http://msdn.microsoft.com/en-us/library/windows/apps/hh755833.aspx
DLL的话用P/Invoke可以调用,不过在WACK检测的时候会检测API,只有在上边表中列出的API才可以通过检测。
Aaron Xue [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已建议为答案 Aaron XueModerator 2012年11月9日 9:28
- 已标记为答案 Aaron XueModerator 2012年11月23日 9:52
全部回复
-
Hi,
第一个比较不好判断,一部分Win32和COM组件还是可以用的,请参考下面的链接,没有在里面列出的API都是不能用的。
http://msdn.microsoft.com/library/windows/apps/br211369
第二个,是这样,不过就像上面说的不是所有Win32 API都要换。
Aaron Xue [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已建议为答案 Aaron XueModerator 2012年11月9日 9:28
- 已标记为答案 Aaron XueModerator 2012年11月23日 9:52
-
Hi,
抱歉回复晚了。这是完全可以的,JS调用WinRT组件可以参考:
C#:
http://msdn.microsoft.com/en-us/library/windows/apps/hh779077.aspx
C++:
http://msdn.microsoft.com/en-us/library/windows/apps/hh755833.aspx
DLL的话用P/Invoke可以调用,不过在WACK检测的时候会检测API,只有在上边表中列出的API才可以通过检测。
Aaron Xue [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已建议为答案 Aaron XueModerator 2012年11月9日 9:28
- 已标记为答案 Aaron XueModerator 2012年11月23日 9:52