Click here to Skip to main content
15,886,781 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Declare member variable on stack or heap Pin
Richard MacCutchan24-Jul-17 23:09
mveRichard MacCutchan24-Jul-17 23:09 
GeneralRe: Declare member variable on stack or heap Pin
_Flaviu25-Jul-17 0:13
_Flaviu25-Jul-17 0:13 
GeneralRe: Declare member variable on stack or heap Pin
Richard MacCutchan25-Jul-17 0:31
mveRichard MacCutchan25-Jul-17 0:31 
AnswerRe: Declare member variable on stack or heap Pin
Victor Nijegorodov24-Jul-17 23:15
Victor Nijegorodov24-Jul-17 23:15 
GeneralRe: Declare member variable on stack or heap Pin
_Flaviu25-Jul-17 0:09
_Flaviu25-Jul-17 0:09 
GeneralMessage Closed Pin
9-Aug-17 0:50
professionalHometurph Indi9-Aug-17 0:50 
GeneralRe: Declare member variable on stack or heap Pin
Victor Nijegorodov9-Aug-17 1:21
Victor Nijegorodov9-Aug-17 1:21 
QuestionIDirect3DSurface9 Problem after Windows 10 Update Creator Pin
002comp24-Jul-17 19:42
002comp24-Jul-17 19:42 
Hello Guys

I am creating a direct3D surface for further creation of OffScreenplainSurface for video sample.
And This Code was working fine before Windows10 Update.
After Update, I found that IDirect3DSurface not returning the right D3DSURFACE_DESC.format which I am using to createOffScreenPlainSurface.

Here is the Code
C++
CComPtr<IDirect3DSurface9> sampleSurface;
MFGetService(mediaBuffer, MR_BUFFER_SERVICE, __uuidof(IDirect3DSurface9), (void**)&sampleSurface);

D3DSURFACE_DESC surfaceDesc;
sampleSurface->GetDesc(&surfaceDesc);

CComPtr<IDirect3DSurface9> sharedSampleSurface;
HANDLE shareHandleSurface = 0;
device3D->CreateOffscreenPlainSurface(
			surfaceDesc.Width,
			surfaceDesc.Height,
			surfaceDesc.Format,
			D3DPOOL_DEFAULT,
			&sharedSampleSurface,
			&shareHandleSurface
			);


Now, after windows10 Update surfaceDesc.format = 842094158 not the D3DFMT_YUY2

And I realized that sometimes after restart of Machine, it returns D3DFMT_YUY2 which looks like some services in windows10 update obstructing MFGetService.
I found one service sppsvc which automatic delayed start and Trigger start but I am not able to get much of it.

Any Help will be Appreciated.

Thank You.
AnswerRe: IDirect3DSurface9 Problem after Windows 10 Update Creator Pin
Jochen Arndt24-Jul-17 21:19
professionalJochen Arndt24-Jul-17 21:19 
GeneralRe: IDirect3DSurface9 Problem after Windows 10 Update Creator Pin
002comp24-Jul-17 23:03
002comp24-Jul-17 23:03 
GeneralRe: IDirect3DSurface9 Problem after Windows 10 Update Creator Pin
002comp25-Jul-17 19:36
002comp25-Jul-17 19:36 
GeneralRe: IDirect3DSurface9 Problem after Windows 10 Update Creator Pin
Jochen Arndt25-Jul-17 20:57
professionalJochen Arndt25-Jul-17 20:57 
GeneralRe: IDirect3DSurface9 Problem after Windows 10 Update Creator Pin
002comp25-Jul-17 21:19
002comp25-Jul-17 21:19 
QuestionC++ ActiveX project worked with VB6, broken in later versions Pin
Burl Rice22-Jul-17 10:30
Burl Rice22-Jul-17 10:30 
AnswerRe: C++ ActiveX project worked with VB6, broken in later versions Pin
Richard MacCutchan22-Jul-17 20:29
mveRichard MacCutchan22-Jul-17 20:29 
GeneralRe: C++ ActiveX project worked with VB6, broken in later versions Pin
Burl Rice23-Jul-17 2:32
Burl Rice23-Jul-17 2:32 
GeneralRe: C++ ActiveX project worked with VB6, broken in later versions Pin
Richard MacCutchan23-Jul-17 2:54
mveRichard MacCutchan23-Jul-17 2:54 
GeneralRe: C++ ActiveX project worked with VB6, broken in later versions Pin
Burl Rice23-Jul-17 9:12
Burl Rice23-Jul-17 9:12 
QuestionClass Shape Pin
kumn1d22-Jul-17 9:05
kumn1d22-Jul-17 9:05 
AnswerRe: Class Shape Pin
Afzaal Ahmad Zeeshan22-Jul-17 10:00
professionalAfzaal Ahmad Zeeshan22-Jul-17 10:00 
AnswerRe: Class Shape Pin
_Flaviu23-Jul-17 23:42
_Flaviu23-Jul-17 23:42 
GeneralRe: Class Shape Pin
Richard MacCutchan23-Jul-17 23:58
mveRichard MacCutchan23-Jul-17 23:58 
AnswerRe: Class Shape Pin
Victor Nijegorodov24-Jul-17 22:38
Victor Nijegorodov24-Jul-17 22:38 
GeneralRe: Class Shape Pin
kumn1d25-Jul-17 8:52
kumn1d25-Jul-17 8:52 
QuestionRe: Class Shape Pin
David Crow25-Jul-17 2:23
David Crow25-Jul-17 2:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.