Using Free-COM DLL in Windows Store C++ Project

It is generally known that migrating Desktop App to Windows Store App is quite a headache. In .NET, some namespace cannot be used in Windows Store App, so it is very difficult to deal with when you want to migrate code related to these namespaces. In C++, native code cannot be referenced directly as DLL…

1

How to do data conversion in Windows Store app

Q: How to convert streams in .NET? A: Here is the list to show the different stream types conversion. Conversion between Stream and IRandomAccessStream // stream to IRandomAccessStream var randomAccessStream = new InMemoryRandomAccessStream(); var outputStream = randomAccessStream.GetOutputStreamAt(0); await RandomAccessStream.CopyAsync(stream.AsInputStream(), outputStream);   // IRandomAccessStream to stream Stream stream = WindowsRuntimeStreamExtensions.AsStreamForRead(randomStream.GetInputStreamAt(0));   Conversion between IBuffer and Stream…

0

Porting Desktop Apps to Windows Store Apps

Author: Han Xia Windows Store Applications bring a brand new look and user experience. It’s also a great challenge for the Windows developers who are familiar with the desktop applications development to adapt to the new interface and programing model. In this article, I try to provide the generic guideline on how to port desktop…

4

Introduce multi-thread programming in Windows Store apps Part II

Introduction   We will post a blog series to introduce multi-threading programming in Windows Store app. In this blog series, we will walk through a sample together to demonstrate which multi-threading APIs can be used, how to create a thread, and synchronization. As the second part in this series, this article will introduce how to…

1