c++-cx Questions

6

Solved

How do I convert the contents of a Platform::String to be used by functions that expect a char* based string? I'm assuming WinRT provides helper functions for this but I just can't find them. Than...
Marisamariscal asked 31/7, 2012 at 17:54

0

I need to wrap WebRTC c++ library into WinRT component and use it from my UWP/C# application. There is a good article how to use native c++ in uwp which describes all the integration steps, which I...
Gorcock asked 1/6, 2021 at 5:2

4

Solved

I have searched this up rather a lot, but come up with no helpful results. I am currently trying to program simple DirextX game for Windows 8 Metro, and have come across _In_ rather a lot. I'm jus...
Misunderstood asked 12/7, 2012 at 17:29

3

Solved

There are a lot of samples for C#, but only some code snippets for C++ on MSDN. I have put it together and I think it will work, but I am not sure if I am releasing all the COM references I have to...
Xymenes asked 4/12, 2012 at 17:41

3

Solved

I have tried to switch to Visual Studio 2019 since it is now officially released, but I am having problems building a C++/CX based project. I have not retargeted the project, but it is still confi...

0

I have got WPF c# server application (WCF) and want to use c++/WinRT dynamic library inside it. I can simply do this by using UWP desktop bridge with WPF app and UWP empty app that includes my dll....
Smail asked 17/12, 2018 at 12:44

6

Solved

I am developing a metro application and I want to create some async operations whose my own classes would implement. I have found just examples of async using WinRT operations (e.g. CreateFileAsyn...
Charlatan asked 17/10, 2011 at 19:46

4

I have experimented with XAML UI programming using C++ for Windows 8 Store apps. I really like the developer experience, the XAML designer and the fact that I can get pure native apps with a modern...
Sisyphean asked 26/10, 2013 at 7:3

1

I make a new C++ Dynamic DLL project (non UWP!) in VS 2017. Can’t get it to compile with /ZW (C++/CX). Why not? Please, don't answer "make a UWP project", that's not the question here. I can make U...
Phosphorescent asked 4/3, 2018 at 23:59

4

I'm writing a C++/CX component to be consumed by Window's store Apps. I'm looking for a way to accomplish what Task.Delay(1000) does in C#.
Meanly asked 10/12, 2012 at 18:19

2

I'm trying to get the CoreDispatcher in C++ on Windows Phone 8 so that I can submit work items to the UI thread Dispatcher so I can update UI elements on the UI thread. However, when I call CoreWin...
Estray asked 24/1, 2013 at 8:46

1

Solved

I have tried the following code to send an email from an Universal Windows Platform app. It works fine when I use EmailMessageBodyKind::PlainText. However, as indicated in the code below, EmailMess...
Dagenham asked 25/8, 2015 at 7:54

6

Solved

From my understanding C++/CX doesn't use garbage collection, it use a reference counted approach instead. The problem with reference counting is that it cannot dispose of cycles. Cycles are usuall...
Paeon asked 16/9, 2011 at 7:1

2

Solved

Earlier this week, Kenny Kerr presented C++/WinRT at CppCon 20161. It is a Standard C++ projection for the Windows Runtime, based on Modern. As far as I understand, the C++/CX compiler/preprocesso...
Bassinet asked 25/9, 2016 at 11:32

3

Solved

Is it possible to convert byte* to Array^ in C++/CX? Currently I accomplish this by copying each value, which I know is not space/performance efficient. My current implementation is : Array<b...
Goldschmidt asked 1/6, 2014 at 12:24

3

Solved

I have a C++/CX app that is processing some data from a file. It has a string in there representing the culture that was used to save the dates, and it has some dates. I need to convert them from s...
Daisey asked 23/7, 2012 at 15:50

1

I have a windows 8 universal project and have a function to get APP ID, The following function works well in Windows Phone 8.1 Platform::Guid appId = Windows::ApplicationModel::Store::CurrentApp::...
Jailbird asked 12/1, 2016 at 15:49

2

Solved

This is about the communication between the C++ (shared code of different platforms) with C# (Windows Universal App). We know that the following is how we make a function call from C++ to C#. C# ...
Wishywashy asked 9/9, 2015 at 20:45

3

(This could also be phrased as "How do I iterate over a collection returned from a C# Windows Runtime Component in C++/CX?") I tried to use std::for_each on an IIterable<T> but get the follo...
Crap asked 17/6, 2012 at 20:52

1

Solved

I have a large folder structure with a ton of subfolders that I am using for application data in my UWP app. When testing, I can just have it sitting on disk and it's fine, but when I make a store ...
Innutrition asked 21/8, 2015 at 15:36

3

Solved

I've just returned to C++ for a game related project for Windows 8/RT after many years of absence in favor of C#. Working with the generated Game Project Skeleton I've stumbled upon method s...
Selfconceit asked 8/11, 2012 at 10:2

1

Solved

I am using @Romasz 's answer from Alternating Colors of rows in ListView in Windows Phone 8.1 to give alternate background to ListView items. I change it in order to highlight the selected item, li...
Crinose asked 20/2, 2015 at 5:0

1

I'm getting a run-time exception when I try to cast an object to an interface that I'm pretty sure it implements. I have the following interfaces: public interface class ISMILTimeContainer; publi...
Pericynthion asked 4/11, 2014 at 18:25

1

I am working on an Windows Phone 8 Application that uses mixed C# for UI and C++ for the underlying backed. I have some instances where I need to run some C++ code on the UI dispatcher thread (IE G...
Moya asked 21/6, 2013 at 21:50

1

Background I'm writing a Windows Store App in C++ using the Windows Store Unit Test Project. While trying to figure out how to test that an exception was raised, I found Assert::ExpectedException ...
Unrequited asked 29/8, 2013 at 20:35

© 2022 - 2024 — McMap. All rights reserved.