Command-Line Activation of Universal Windows Apps

As we continue to close the gap between Win32 and Universal Windows Apps, one of the features we’ve recently introduced is the ability to activate a UWA from a command line and pass the app arbitrary command-line arguments. This is available to Insiders from build 16226. This feature builds on the App Execution Alias extension […]

Source: https://blogs.windows.com/feed

Old School Cards.dll in Today's WPF

I have to wonder just how many applications have used the Cards.DLL over the years. Hundreds? Thousands? It's the Hello World for any card related game...

Calvin Hsia recently blogged about it and using it in a modern WPF app (Modern compared to how he blogged about it in 2004, Displaying playing cards for bridge, written in Visual FoxPro... ;)

Since the DLL is no longer shipped with Windows, he even provides a OneDrive download for it too... :)

Display Playing cards in WPF

I remember each version of Windows had new games. On Windows 3.1 many people played Solitaire. Windows for Workgroups 3.11 introduced Hearts. Somewhere along the way came FreeCell, MineSweeper and Spider Solitaire. This was years before more modern User interfaces, such as WPF existed.

Windows no longer ships Cards.dll which has the images of the cards and some routines that could be called to draw the cards using older techniques, such as Drawing Contexts and GDI.

Using more recent drawing techniques, such as Windows Presentation Foundation (WPF), and more modern languages, such as C# or VB.Net can make programming games easier.

Below is some sample code that extracts bitmaps from a the native Cards.Dll and converts it to a WPF BitmapSource which can be scaled and displayed as an Image in WPF. A timer shuffles the cards. You can click on the form to pause the shuffling.

You can use this code as a basis of a card game. Before writing the code, I was toying with the idea of drawing the cards on a WPF form using WPF Immediate Mode graphics or a combined Immediate and Retained mode graphic system, with HWndHost

Solitaire used a Dll in the Windows\System32 folder called Cards.dll. Because many of you may not have access to a Windows XP machine, I’ve made it available here.

image

See also

https://blogs.msdn.microsoft.com/calvin_hsia/2004/08/13/displaying-playing-cards-for-bridge/

https://blogs.msdn.microsoft.com/calvin_hsia/2015/10/31/drawing-old-playing-card-images-for-bridge/

https://blogs.msdn.microsoft.com/calvin_hsia/2014/08/29/logo-turtle-graphics-in-wpf/

<code>

... [Click through for the code]





Source: https://channel9.msdn.com/Feeds/RSS

Skype Online – Pulse Available Exclusively to Broadcast Meetings

If you check the Message Center in the Office 365 admin portal, Microsoft announced that the Pulse service is no longer available as a free service but as an exclusive service for Skype for Business Broadcast Meetings. Microsoft Pulse allows for interactive voting, surveys, and polls to be conducted during a meeting for attendee interaction. […]

Source: http://feeds.feedburner.com/perficient/microsoft