VS2015 create a C++ console application based on WinRT

1. Enable /ZW

 

2. Disable /Gm

 

3. #using C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcpackages;C:\Program Files (x86)\Windows Kits\10\UnionMetadata

 

4. source code

// hellort.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"

#include <iostream>



int main(Platform::Array<Platform::String^>^ args)
{

    std::wcout << L"hellort:"<<args->get(0)->Data()  << std::endl;
    return 0;
}

 

posted on 2016-05-09 22:20  devcfei  阅读(380)  评论(0编辑  收藏  举报