c++-cx Questions
1
Solved
I have been developing a Windows Phone application that consumes Windows Runtime component(WRC).A function accessed by a non-UI thread,needs to use a callback that access the Windows phone applicat...
Apomixis asked 9/10, 2013 at 6:27
1
Solved
#include<iostream>
#include<string.h>
#include<Windows.h>
.
.
.
using namespace Windows::Networking::Connectivity;
.
.
.
ConnectionProfile^ internetConnectionProfile = NetworkInfo...
Cloudburst asked 22/5, 2013 at 18:18
2
Solved
I'm interested in calling a C# method from C++ code in Windows Phone 8. I have already learned how to pass a callback function to C++ code from C# via delegate declarations in my C++ code, but I am...
Casper asked 21/1, 2013 at 8:31
3
Solved
By the looks of Google it seems like this might not be possible, but:
How do I define an 'out' parameter in a C++/CX 'ref class'?
If your answer is that this isn't possible, please provide a ref...
Dollar asked 10/4, 2013 at 7:40
1
Solved
I have this XAML to display a ListView in a C++/CX code. The ListView will be used as a selection menu.
<ListView x:Name="itemsListView"
ItemsSource="{Binding Source={StaticResource MenuDataSo...
Inenarrable asked 20/2, 2013 at 18:54
1
Solved
I have a C++ runtime component in a WP8 application, and if I change the namespace name, I get a "TargetInvocation" exception thrown whenever I try to instantiate a class in that namespace.
As an ...
Woolley asked 14/1, 2013 at 3:19
1
Solved
I have been getting back into C++ lately. I've been away from C++/CLI using C# instead for at least a year now and I am a bit rusty. I am looking at the base example for a Direct3D app for Windows ...
Alexia asked 27/11, 2012 at 20:13
1
Solved
I have a problem with putting c++ and c++/cx together. I need to use FreeType library, but they are using "generic" name for some variable. I also need to enable VC++ extensions because WinRT app, ...
Mercury asked 29/10, 2012 at 13:6
2
Solved
Is it possible to handle an event with a lambda in C++/CX? As an example, what would be the best way to convert this snippet of code from C# into C++/CX?
this.animation.Completed += (s, e) =>
{...
Portion asked 18/9, 2012 at 14:32
1
Solved
When I create a new control in a WinRT C++/CX project, the class attribute [Windows::Foundation::Metadata::WebHostHidden] is added by default by Visual Studio 2012.
Example:
namespace WindowsRun...
Windproof asked 3/10, 2012 at 16:50
1
Solved
I have the following "Windows Store/Metro Style" test methods in VS 2012 C++/CX
This one succeeds, which is ok
TEST_METHOD(TestMethod)
{
bool passed = false;
concurrency::event finished;
finis...
Emplace asked 25/9, 2012 at 11:7
2
Solved
I am trying to write a few lines of code in C++/CX in a "Windows Store" (aka Metro Style) application, and I am surprised to see that Platform::String is missing many basic string operations like "...
Massimiliano asked 21/9, 2012 at 15:49
1
I have previously used MiniZip (zlib wrapper) to unzip archives. MiniZip cannot be used for Metro applications as it uses deprecated APIs in "iowin32.c" -- CreateFile() and SetFilePointer().
I th...
Uella asked 7/6, 2012 at 6:30
2
Solved
I couldn't find anything about this on the Internet, so I'm looking for someone with the insights into the way C++/CX is impemented. The Wikipedia article on C++/CX says that it supports runtime-ba...
Swag asked 17/5, 2012 at 14:20
2
Solved
I have a class like this:
public ref class Test
{
public:
property int MyProperty;
};
This works. Now I want to move the implementation of MyProperty to the CPP file. I get compiler errors that...
Echt asked 7/5, 2012 at 16:28
1
Solved
The WinRT API function DataPackage::SetStorageItems takes a parameter of type IIterable<IStorageItem^>^. What I have is a single StorageItem^, not a collection.
I'm a bit confused as to how ...
Chkalov asked 23/3, 2012 at 14:47
1
Solved
I must be missing something obvious but I'm not sure what.
I've created a blank C++ metro app and I've just added a model that I will bind to in my UI however I'm getting a range of compiler error...
Firooc asked 21/3, 2012 at 23:21
3
Solved
I was watching a video from, //build/ and several of the MS developers were using a syntax like this in their C++11 programs:
auto foo = ref new Foo();
I understand what everything does in this ...
Haha asked 23/9, 2011 at 14:0
3
Solved
It's been said that you can create a C++ WinRT component that you can consume in C#. I have a simple test project - a C# XAML app, and a C++ project using just the basic WinRT Component project tem...
Infusive asked 20/9, 2011 at 21:31
2
Solved
C++/CX seems to make interfacing native C++ with C# FAR easier and more direct than the current method using a C++/CLI 'layer' in-between (with all the complications that entails).
But can I use C...
Caltrop asked 19/9, 2011 at 9:54
© 2022 - 2024 — McMap. All rights reserved.