Getting an array of bytes out of Windows::Storage::Streams::IBuffer

You can use IBufferByteAccess, through exotic COM casts: byte* GetPointerToPixelData(IBuffer^ buffer) { // Cast to Object^, then to its underlying IInspectable interface. Object^ obj = buffer; ComPtr<IInspectable> insp(reinterpret_cast<IInspectable*>(obj)); // Query the IBufferByteAccess interface. ComPtr<IBufferByteAccess> bufferByteAccess; ThrowIfFailed(insp.As(&bufferByteAccess)); // Retrieve the buffer data. byte* pixels = nullptr; ThrowIfFailed(bufferByteAccess->Buffer(&pixels)); return pixels; } Code sample copied from http://cm-bloggers.blogspot.fi/2012/09/accessing-image-pixel-data-in-ccx.html

Browse Web Site With IP Address Rather than localhost

Go to your IISExpress>Config folder, locate applicationhost.config. Change <bindings> as below: <bindings> <binding protocol=”http” bindingInformation=”*:1407:YOUR_IP_ADDRESS” /> </bindings> Before you do this , you will have to register this IP address using netsh command as below: Port forwarding in Windows 7 If you’re running Windows 7, pretty much all incoming connections are locked down, so you … Read more

C# 6.0 Support in Visual Studio 2012

Yes, you can install c# 6.0 into VS2012 and VS2013 on a per project basis as a NuGet package. You’ll have to install this package for every project that you want c# 6.0 features in. https://www.nuget.org/packages/Microsoft.Net.Compilers/ Installing Latest C# Compiler via Nuget Install-Package Microsoft.Net.Compilers EDIT: As pointed out in the comments below, upgrade your NuGet … Read more

Compiling Qt 4.8.x for Visual Studio 2012

Qt 4.8.3 with Visual Studio 2012 x64 (should also work with 4.8.2) Install Strawberry Perl Download Qt 4.8.3 source code from http://qt-project.org/downloads Go to mkspecs\win32-msvc2010. Open qmake.conf and change: QMAKE_COMPILER_DEFINES += _MSC_VER=1600 WIN32 to: QMAKE_COMPILER_DEFINES += _MSC_VER=1700 WIN32 Replace qt-everywhere-opensource-src-4.8.3-x64\src\3rdparty\webkit\Source\JavaScriptCore\wtf\HashSet.h by this HashSet.h. Start “VS2012 x64 Native Tools Command Prompt” Switch to Qt 4.8.3 source … Read more

How to change Visual Studio 2012,2013 or 2015 License Key?

I had the same problem and wanted to change the product key to another. Unfortunate it’s not as easy as it was on VS2010. The following steps work: Remove the registry key containing the license information: HKEY_CLASSES_ROOT\Licenses\77550D6B-6352-4E77-9DA3-537419DF564B If you can’t find the key, use sysinternals ProcessMonitor to check the registry access of VS2012 to locate … Read more

How can I change the default credentials used to connect to Visual Studio Online (TFSPreview) when loading Visual Studio up?

I had a very similiar problem as I was not able to connect to TFS with my own credentials. Turned out that the user who had created the image (I was using Hyper-V) stored his account in Credential Manager. There was no way to change this in Visual Studio. To solve the issue, I opened … Read more

Why does intellisense and code suggestion stop working when Visual Studio is open?

I should note that I haven’t had the issue since upgrading my RAM. I can’t confirm if it’s related but the problem was prevalent when I had 2-4GB RAM. No problems since going to 8 and 16GB. If only one file/window appears to be affected, close and reopen that file. If that doesn’t work, try … Read more