The Windows Runtime C++ Template Library (WRL) is a template library that provides a low-level way to author and use Windows Runtime components.
Questions tagged [wrl]
77 questions
0
votes
1 answer
How to register for IClipboardStatics event via WRL
I can get an IClipboardStatics via:
ComPtr clipboard;
HRESULT hr = GetActivationFactory(HStringReference(RuntimeClass_Windows_ApplicationModel_DataTransfer_Clipboard).Get(), &clipboard);
But how do I call add_ContentChanged()?…

SpecWin
- 49
- 6
0
votes
1 answer
Calling Microsoft::WRL::Make for a constructor with more than 9 arguments
Microsoft::WRL::Make seems to be defined with a maximum of 9 arguments that will get forwarded to the object's constructor. std::tuple is an obvious solution, but far from ideal. Is there a more elegant way of solving this problem?
If any…

Duncan
- 980
- 6
- 17
0
votes
1 answer
using the clipboard in native c++ metro app
I'm looking for the interfaces to allow me to access the clipboard in native c++ metro app - similar to DataTransfer::Clipboard::SetContent in C#.
can someone please refer me to those interfaces and how can it be done using the WRL library?

elad-ep
- 333
- 1
- 9
0
votes
1 answer
Draw hole in solid shape using x3d/vrml
I'm new to x3d/vrml and I'm trying figure out how to punch a hole in a solid shape. For example, a 6x6x2 cube with a smaller 2x2x2 cube in the middle to create a hollow shape. I have tried extrusion and indexedFaceSet without success. I haven't …

Tomal Smith
- 59
- 4
0
votes
1 answer
What is the difference between COM property methods and regular interface methods?
I have been poking around with WRL at the ABI layer for the last couple of weeks and have run into this problem.
I have an interface defined in IDL as follows:
namespace Async{
[uuid(f469e110-7ef5-41df-a237-9ddef9aed55c), version(1.0)]
interface…

James Pack
- 824
- 1
- 10
- 19
0
votes
2 answers
Calling WinRT API from a C++ crossplatform (OpenKODE) app
I have a C++ app built inside OpenKODE environment. Specifically for WinRT platform I need a function, which can tell me if mouse is connected to the machine. I am trying to solve this using Windows Runtime C++ Template Library (WRL) and accessing…
0
votes
0 answers
How to embed vrml animation on android html application
I want to embed a vrml animation (file type = .wrl) in my android html application, build with CLI phonegap.
It is working correctly with a JPG image, but I can not make it run with my vrml file.
Here is a simple example that what I want to…
0
votes
1 answer
Ways to import .wrl file to WebGL
i am new with WebGL, i want to ask, is there any way to use .wrl file in WebGL without converting in some another types (like .json, .obj etc.)?

FatLasha
- 5
- 2
0
votes
0 answers
Can an IActivationFactory return the same instance multiple times?
While exploring WinRT, I made an experiment with singletons: by implementing the IActivationFactory myself, I can make a singleton "at the ABI level". The factory just returns the same instance every time. By extension, any call to…

CÅdahl
- 442
- 3
- 13
0
votes
1 answer
Unresolved External Symbol LNK2019 with WinRT component for COM-based lib
I'm using a 3rd party COM-based library called Engine in a native WinRT component which should later act as a wrapper for the 3rd party lib.
An Engine.lib and a Engine.h file for the 3rd party lib is setup in my project.
I'm getting the LNK2019…

Rene Schulte
- 2,962
- 1
- 19
- 26
0
votes
1 answer
Viewpoint for X3D Centering
Can anyone please help me in calculating center of rotation and position of a X3D object?
I've noticed that aopt tool by InstantReality adds something like:
The result is nice,…

Jumpa
- 4,319
- 11
- 52
- 100
0
votes
1 answer
Visual Studio 2012 not exists mfplatf.lib
I want to make an example http://msdn.microsoft.com/en-us/library/vstudio/jj872764.aspx
When I compile the library c++, I see error: error LNK1104: cannot open file 'mfplatf.lib'
Where can I find it?

titans
- 79
- 1
- 9
0
votes
1 answer
Getting error MIDL5004 when creating a simple interface that inherits from another (simple) one
I have the following very simple interfaces:
[uuid(0d585932-fbc4-4b0a-90b5-ccf34aefd4c6)]
[version(COMPONENT_VERSION)]
interface IPerson : IInspectable
{
[propget] HRESULT Name([out, retval] HSTRING* value);
[propput] HRESULT Name([in]…

user1466502
- 101
- 2
- 7
0
votes
1 answer
C++/WRL project unknown namespace Windows::Storage
In my Windows Store app I am using a C++ component in order to use a Sink Writer. I created a C++/WRL project for that with a function which accepts a stream as a parameter in order for the Sink Writer to write to. The type of this parameter is…

Ronald
- 657
- 1
- 6
- 13
-1
votes
1 answer
WRL SystemMediaTransportControls E_NOINTERFACE
I'm trying to use the SystemMediaTransportControls in Visual C++ using WRL (toolkit v140) but I'm having issues with the following:
Microsoft::WRL::ComPtr controls;
HRESULT hResult =…

Nikola Yanakiev
- 19
- 3