Click here to Skip to main content
15,884,425 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What does (need to clear the background) mean? Pin
Jochen Arndt20-Jul-13 23:26
professionalJochen Arndt20-Jul-13 23:26 
GeneralRe: What does (need to clear the background) mean? Pin
JoneLe8624-Aug-13 9:34
JoneLe8624-Aug-13 9:34 
SuggestionRe: What does (need to clear the background) mean? Pin
Richard MacCutchan19-Jul-13 22:09
mveRichard MacCutchan19-Jul-13 22:09 
Suggestionerror C2039: 'DebugString' : is not a member of '_DEBUG_EVENT' Pin
ForNow19-Jul-13 4:46
ForNow19-Jul-13 4:46 
GeneralRe: error C2039: 'DebugString' : is not a member of '_DEBUG_EVENT' Pin
Richard MacCutchan19-Jul-13 5:00
mveRichard MacCutchan19-Jul-13 5:00 
GeneralRe: error C2039: 'DebugString' : is not a member of '_DEBUG_EVENT' Pin
ForNow19-Jul-13 5:32
ForNow19-Jul-13 5:32 
QuestionHow can I move CProgressCtrl in CListCtrl? Pin
YannGEF18-Jul-13 22:44
YannGEF18-Jul-13 22:44 
Questiontexture2D stretch Pin
boxfile18-Jul-13 22:29
boxfile18-Jul-13 22:29 
I want to record d3d games. Now I can get data from backbuffer and save it.

The programe is when the game resize the window, I should strech it.
The following is my steps:
C++
IRefPtr<ID3D10Texture2D> texture;
HRESULT hRes = m_pDXGISwapChain->GetBuffer(0, __uuidof(ID3D10Texture2D),
    reinterpret_cast<void**>(IREF_GETPPTR(texture,ID3D10Texture2D)));
if (FAILED(hRes))
{
    return hRes;
}


hRes = pDevice->CreateTexture2D(&desc, NULL, IREF_GETPPTR(textureDest,ID3D10Texture2D));
if (FAILED(hRes))
{
    return hRes;
}

pDevice->CopySubresourceRegion(textureDest, 0, 0, 0, 0, texture, 0, &sourceRegion);


Everything is ok, but as i say, when the game change size, i must stretch the Texture2D for get the whole picture. The CopySubresourceRegion() cant do it. And i dont find anyother way to do it.

Thanks for any advices. I am a newer for directx.

I am a rookie boy, if you help me, i will become a man.
AnswerRe: texture2D stretch Pin
boxfile26-Jul-13 16:40
boxfile26-Jul-13 16:40 
Questionhook game for d3d10 or d3d11 Pin
boxfile18-Jul-13 16:36
boxfile18-Jul-13 16:36 
AnswerRe: hook game for d3d10 or d3d11 Pin
boxfile18-Jul-13 19:47
boxfile18-Jul-13 19:47 
QuestionCalling GUI functions from a worker thread in MFC?? Pin
Kiran Satish18-Jul-13 9:25
Kiran Satish18-Jul-13 9:25 
AnswerRe: Calling GUI functions from a worker thread in MFC?? Pin
pasztorpisti18-Jul-13 11:39
pasztorpisti18-Jul-13 11:39 
GeneralRe: Calling GUI functions from a worker thread in MFC?? Pin
«_Superman_»18-Jul-13 21:25
professional«_Superman_»18-Jul-13 21:25 
GeneralRe: Calling GUI functions from a worker thread in MFC?? Pin
pasztorpisti18-Jul-13 22:56
pasztorpisti18-Jul-13 22:56 
GeneralRe: Calling GUI functions from a worker thread in MFC?? Pin
Kiran Satish19-Jul-13 10:46
Kiran Satish19-Jul-13 10:46 
GeneralRe: Calling GUI functions from a worker thread in MFC?? Pin
pasztorpisti19-Jul-13 14:01
pasztorpisti19-Jul-13 14:01 
GeneralRe: Calling GUI functions from a worker thread in MFC?? Pin
Kiran Satish19-Jul-13 16:18
Kiran Satish19-Jul-13 16:18 
GeneralRe: Calling GUI functions from a worker thread in MFC?? Pin
pasztorpisti20-Jul-13 6:07
pasztorpisti20-Jul-13 6:07 
AnswerRe: Calling GUI functions from a worker thread in MFC?? Pin
David Crow19-Jul-13 4:43
David Crow19-Jul-13 4:43 
AnswerRe: Calling GUI functions from a worker thread in MFC?? Pin
Erudite_Eric22-Jul-13 4:59
Erudite_Eric22-Jul-13 4:59 
GeneralRe: Calling GUI functions from a worker thread in MFC?? Pin
Kiran Satish22-Jul-13 5:23
Kiran Satish22-Jul-13 5:23 
QuestionHow to disable copy/paste in CEdit? Pin
Donguy197617-Jul-13 5:53
Donguy197617-Jul-13 5:53 
AnswerRe: How to disable copy/paste in CEdit? Pin
NotPolitcallyCorrect17-Jul-13 6:05
NotPolitcallyCorrect17-Jul-13 6:05 
GeneralRe: How to disable copy/paste in CEdit? Pin
Erudite_Eric17-Jul-13 23:30
Erudite_Eric17-Jul-13 23:30 

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.