No announcements
Found 2556 threads
-
0 Votes
How do I use CreateRandomAccessStreamOverStream with ComPtr<IStream>?
I tried this: IRandomAccessStream^ comRAS; IUnknown* p11 = reinterpret_cast<IUnknown *>(comRAS); static const GUID ...Answered | 13 Replies | 4543 Views | Created by Sacha Bwin - Wednesday, October 10, 2012 2:19 AM | Last reply by Juan Pablo G.C. _ - Wednesday, October 24, 2012 5:23 AM -
0 Votes
ComPtr Undeclared Identifier
ComPtr is defined in the file atlcomcli.h.Answered | 8 Replies | 9195 Views | Created by RunAwayKlepto - Friday, June 29, 2012 10:53 AM | Last reply by Bandula Dharmadasa - Saturday, July 4, 2020 2:59 AM -
2 Votes
IUnknown and ComPtr
I myself use ComPtr<IInspectable> for WinRT objects, to correctly handle reference counts, and it works well.Answered | 2 Replies | 2267 Views | Created by Mike Muir - Saturday, September 1, 2012 4:24 AM | Last reply by Mike Muir - Sunday, September 2, 2012 1:09 AM -
0 Votes
Why ComPtr<IDXGISwapChain1> instead of ComPtr<IDXGISwapChain> or IDXGISwapChain*
I guess ComPtr might serve as a smart pointer, but why IDXGISwapChain1, instead of IDXGISwapChain?Answered | 3 Replies | 4276 Views | Created by Leonard - Monday, June 25, 2012 5:16 PM | Last reply by Chuck Walbourn - MSFT - Tuesday, July 10, 2012 9:39 PM -
1 Votes
Which header has declaration of ComPtr
Guys, I'm trying to create WIC Factory, example taken from: https://msdn.microsoft.com/en-us/library/windows/desktop/ff973956.aspx HRESULT ...Answered | 6 Replies | 8556 Views | Created by smallC795 - Wednesday, April 20, 2016 5:24 PM | Last reply by Igor Tandetnik - Thursday, April 21, 2016 2:02 PM -
3 Votes
IUnknown IDispatch IConnectionPoint ITypeLib
All WinRT objects in the WinRT support IUnknown, because that's how we manage their reference count and get to methods with QueryInterface.Answered | 4 Replies | 4761 Views | Created by Coder2009 - Wednesday, September 14, 2011 8:12 AM | Last reply by sb123123 - Wednesday, November 30, 2011 2:01 AM -
3 Votes
'IInspectable': ambiguous symbol & 'iUnknown': ambiguous symbol
IUnknown is the base COM interface, and Unkwn.h places it in the global namespace, so it is accessible without any namespace qualification.Answered | 3 Replies | 2566 Views | Created by Gavin..Williams - Friday, July 20, 2018 12:57 AM | Last reply by Darran Rowe - Friday, July 20, 2018 11:20 AM -
2 Votes
How to convert Microsoft::WRL::ComPtr<ID3D11Device> into ID3D11Device* ?
Anytime you need a 'raw' pointer from a ComPtr, just use .Get() ScratchImage img; hr= CaptureTexture( m_d3dDevice.Get(), m_d3dContext.Get(), depthStencil.Get(), ...Answered | 8 Replies | 2788 Views | Created by KC-Steven - Monday, January 27, 2014 7:19 AM | Last reply by KC-Steven - Wednesday, January 29, 2014 7:30 AM -
0 Votes
How to draw some text on a Bitmap in memory and then How to get the bitmap pixels in bytes?
ComPtr<IStream> stream; auto refStream = ref new ...Answered | 2 Replies | 3475 Views | Created by lihex - Wednesday, March 28, 2012 1:01 PM | Last reply by lihex - Thursday, April 5, 2012 7:02 AM -
1 Votes
Set public an agregated ATL COM class
) { ptrSon= (IUnknown *)newVal; return ...Answered | 15 Replies | 712 Views | Created by Alainee - Thursday, June 23, 2016 10:35 AM | Last reply by RLWA32 - Friday, June 24, 2016 2:20 PM -
2 Votes
IBufferByteAccess namespace
Microsoft::WRL::ComPtr< Windows::Storage::Streams::IBufferByteAccess > buffer_byte_access; reinterpret_cast< ...Answered | 4 Replies | 5275 Views | Created by diltsman - Tuesday, October 16, 2012 4:31 PM | Last reply by rob qqq - Wednesday, October 17, 2012 11:34 PM -
0 Votes
How to add video stabization effect to the source reader
AddTransformForStream(MF_SOURCE_READER_FIRST_VIDEO_STREAM,(IUnknown *)spActivate.Get()); will fail, but I have seen the sample code for IMFMediaEngine, it can using ...Answered | 4 Replies | 2558 Views | Created by Tony_Jennifer - Monday, September 10, 2012 5:52 AM | Last reply by Tony_Jennifer - Thursday, September 20, 2012 6:32 AM -
2 Votes
Getting a IRandomAccessStream to a file in Metro
The relevant code is below IFACEMETHODIMP MyClass::BeginCreateObject( //... rest of ...Answered | 9 Replies | 5962 Views | Created by Moshe Kravchik - Wednesday, August 29, 2012 9:48 AM | Last reply by Morten Nielsen - Thursday, October 4, 2012 3:02 PM -
1 Votes
Video SinkWriter in Metro app.
gt;^ MediaWriter::WriteAsync(Windows::Storage::Streams::IRandomAccessStream^ stream) { return create_async([this, stream] (progress_reporter<double> reporter, ...Answered | 10 Replies | 9007 Views | Created by SiavashBD - Monday, July 23, 2012 11:58 AM | Last reply by Eduardo Jimenez Vazquez - Wednesday, July 9, 2014 5:08 PM -
0 Votes
ComPtr<T>::GetAddressOf() versus & on the ComPtr object to access T**
I did more reading into ComPtr and found the following on the operator&() overload for the class: "This method differs from ComPtr::GetAddressOf ...Unanswered | 3 Replies | 3891 Views | Created by Matt Lynam - Thursday, January 17, 2013 5:26 PM | Last reply by Matt Lynam - Friday, January 18, 2013 3:22 PM -
2 Votes
interface IUnknown
The IUnknown interface is a base interface for COM.Answered | 7 Replies | 3183 Views | Created by Valerius2003 - Monday, March 2, 2009 11:54 AM | Last reply by Valerius2003 - Wednesday, March 4, 2009 9:16 AM -
2 Votes
Implementing IUnknown
Likely your goal is not calling IUnknown.AddRef which has no interest in itself but rather to use some other IUnknown based COM class.Answered | 10 Replies | 8307 Views | Created by eThunderstorm - Tuesday, August 21, 2012 10:29 AM | Last reply by Patrice Scribe - Tuesday, August 21, 2012 12:39 PM -
0 Votes
how to write an IStream to a File ?
// IRandomAccess to IStream ComPtr<IStream> stream ; HRESULT hr=CreateStreamOverRandomAccessStream(randomAccessStream, ...Answered | 3 Replies | 4750 Views | Created by naiveCoder - Wednesday, May 8, 2013 11:03 AM | Last reply by Jesse Jiang - Friday, May 10, 2013 2:34 AM -
1 Votes
DirectX - ComPtr vs.
There is a bit more to ComPtr than this too.Unanswered | 3 Replies | 3928 Views | Created by Raymart Atienza [MCTS] - Tuesday, June 21, 2016 3:53 PM | Last reply by Darran Rowe - Saturday, June 25, 2016 2:45 AM -
0 Votes
IUnknown Interface
IUnknown is an interface.Answered | 1 Replies | 4154 Views | Created by RaviKanthReddy - Tuesday, September 5, 2006 12:36 PM | Last reply by einaros - Tuesday, September 5, 2006 12:44 PM - Items 1 to 20 of 2556 Next ›
No announcements