windows-rt

Where is sockaddr_in in Windows RT?

China☆狼群 提交于 2019-12-12 02:38:43
问题 According to MSDN (VS2012 version), sockaddr_in is defined in winsock2.h . There are no exceptions stated (similar to what we see with Windows Phone and some API calls). Yet when I try to compile a file which uses sockaddr_in and includes winsock2.h , I get a compile error (below). Notice that I don't receive a winsock2.h not found error (or similar). Also note that the same code compiles on Windows Phone 8. What does one need to include for WinRT? cl /Fotmp32dll\bss_conn.obj -Iinc32

Microsoft Surface Tablet: Writing Apps for Both Devices?

扶醉桌前 提交于 2019-12-09 19:05:08
问题 I'm having trouble finding info right now; it might still be too early. But I'm curious if developers will be able to easily write an application that can target both the ARM and Intel versions of the tablet. I would guess that the ARM version of Windows will come with near full .NET support and that VS2012 would have new templates that can target both device types, no? 回答1: Is this what you are looking for? http://blogs.msdn.com/b/b8/archive/2012/02/09/building-windows-for-the-arm-processor

Does Microsoft Surface support Flash websites? [closed]

一世执手 提交于 2019-12-07 14:30:02
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I've searched Google but have not found a clear answer. Will my or my work's Flash site / application run on Microsoft Surface tablet? 回答1: It seems that IE on Microsoft surface will have a list of approved sites where flash is supported, and this list is maintained by Microsoft! Check this post: Flash only

Can't Receive UDP Windows RT

僤鯓⒐⒋嵵緔 提交于 2019-12-07 10:29:20
问题 I'm writing a Windows Store/Metro/Modern/RT app for Windows 8/RT that needs to receive UDP packets on port 49030, but I can't seem to receive any packets. I've followed the tutorial on using DatagramSocket to the letter, and I'm getting nothing. I know my sender program is sending data, as I can see it on wireshark. I also wrote a test C# console app that uses the regular BSD socket API (System.Net.Sockets.Socket) that properly receives the data over UDP. This is the code that works: Socket s

Clipping a low resolution image using Transforms and assigning it to my user control

痞子三分冷 提交于 2019-12-06 23:23:42
问题 I have been working on a Windows 8.1 RT app where the user loads an image with Stretch=Uniform . The image can be as small as possible and as big as possible. The clipping happens in my user control and my user control appears when I tap/press and hold on the screen/image. Clipping happens when when I tap and hold and move my finger/mouse around the image that is in the background. The Problems I am facing are Whenever the app is loaded for the first time on Emulator , and for the very first

Image being saved from canvas is not rendered properly

浪子不回头ぞ 提交于 2019-12-06 00:39:16
I'm trying to use the following code to save the contents of myCanvas as an image file in the gallery (for Windows Phone 8.1, not Silverlight). When I run the App, the image is saved but it is distorted. What am I doing wrong? I have uploaded the resultant image and the expected result. public async void SaveFileToPhone() { var file = await KnownFolders.PicturesLibrary.CreateFileAsync("bug.png", CreationCollisionOption.GenerateUniqueName); await SaveVisualElementToFile(myCanvas, file); } async Task SaveVisualElementToFile(FrameworkElement element, StorageFile file) { var renderTargetBitmap =

Does Microsoft Surface support Flash websites? [closed]

风流意气都作罢 提交于 2019-12-05 22:59:43
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I've searched Google but have not found a clear answer. Will my or my work's Flash site / application run on Microsoft Surface tablet? Fahad Alduraibi It seems that IE on Microsoft surface will have a list of approved sites where flash is supported, and this list is maintained by Microsoft! Check this post: Flash only works on approved sites. Think you'll be able to watch all those Flash-based videos using your

Can't Receive UDP Windows RT

六月ゝ 毕业季﹏ 提交于 2019-12-05 18:13:52
I'm writing a Windows Store/Metro/Modern/RT app for Windows 8/RT that needs to receive UDP packets on port 49030, but I can't seem to receive any packets. I've followed the tutorial on using DatagramSocket to the letter, and I'm getting nothing. I know my sender program is sending data, as I can see it on wireshark. I also wrote a test C# console app that uses the regular BSD socket API (System.Net.Sockets.Socket) that properly receives the data over UDP. This is the code that works: Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); s.Bind(new IPEndPoint

Clipping a low resolution image using Transforms and assigning it to my user control

假如想象 提交于 2019-12-05 03:32:53
I have been working on a Windows 8.1 RT app where the user loads an image with Stretch=Uniform . The image can be as small as possible and as big as possible. The clipping happens in my user control and my user control appears when I tap/press and hold on the screen/image. Clipping happens when when I tap and hold and move my finger/mouse around the image that is in the background. The Problems I am facing are Whenever the app is loaded for the first time on Emulator , and for the very first time when the tap /clicks and holding is performed , the user control appears on the top left on the

How to detect if the surface keyboard is attached?

百般思念 提交于 2019-12-04 22:51:17
问题 I need to implement certain functions only when the keyboard is attached to the surface. Is there a way I can detect when the surface keyboard is attached or removed ? I tried this code on Surface: function getKeyboardCapabilities() { var keyboardCapabilities = new Windows.Devices.Input.KeyboardCapabilities(); console.log(keyboardCapabilities.keyboardPresent); } The result was always '1' even when the keyboard was not connected. 回答1: I used this code to identify when a keyboard is connected