-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to connect a UWP app to pipe output to this? #2
Comments
When you install the app, there are instructions and a code sample in C# in the console window showing how to use the app service. In your app you launch the tester via with the Windows.System.Launcher class and then send messages to it with the Windows.ApplicationModel.AppService.AppServiceConnection class. |
The app is in the Windows Store now as "Console Output" |
The source code here is a bit out of date - you should install this app http://www.microsoft.com/en-us/store/p/console-output/9nblggh515n5 from the Windows store and connect to that. To use the UWP platform with Win32 apps, you need to include specific libraries to enable the APIs. See this article https://blogs.windows.com/buildingapps/2017/01/25/calling-windows-10-apis-desktop-application/#XBc3u91Pm4XsFxso.97 to show how to enable the Windows Runtime Libraries from a standard C++ app. |
That's odd - can you download other apps from the store? What happens when you type "Console Output" into the search box in the upper right of the store app? Is your machine up-to-date? What version of Windows 10 are you running? |
Oh geez. Okay. I can get it now. I was on a dev sandbox and didn't switch to retail. Okay I see the C# code now and can try to convert it to C++. Okay let me see what I can do now :) |
I just updated the Git Repro with a C++ Sample: https://github.com/mscherotter/ConsoleOutputTester/tree/master/ConsoleOuptutTester/CPPTester. |
Wow. Just wow! :) |
Glad you like it! Please click on the Feedback button in the bottom appbar of the app if you have any suggestions. |
Definitely will, thanks :) |
Okay, I've got some code cleaned up on my side and it's working well enough, and here's my feedback so far... still early 👍
|
Please create individual items in the Feedback Hub app for each of these for Console Output, so other users can see and vote on these great suggestions. |
Sorry, not so much an issue as a question :)
I've got another standalone UWP C++ application and really just want to pipe output to a standalone console app without being attached to a debugger. I figured this would do the trick, but have no idea how to write code in my app to talk to this. Are you able to provide a brief example?
The text was updated successfully, but these errors were encountered: