Click here to Skip to main content
16,010,488 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to find differnce between laptop and desktop pc Pin
Sonani Prakash17-Jul-07 4:19
Sonani Prakash17-Jul-07 4:19 
AnswerRe: how to find differnce between laptop and desktop pc Pin
Sam_c17-Jul-07 4:33
Sam_c17-Jul-07 4:33 
QuestionGetting value of variable from xml file Pin
Maynka17-Jul-07 4:04
Maynka17-Jul-07 4:04 
AnswerRe: Getting value of variable from xml file Pin
led mike17-Jul-07 4:23
led mike17-Jul-07 4:23 
GeneralRe: Getting value of variable from xml file Pin
Maynka17-Jul-07 4:28
Maynka17-Jul-07 4:28 
GeneralRe: Getting value of variable from xml file Pin
CPallini17-Jul-07 4:41
mveCPallini17-Jul-07 4:41 
GeneralRe: Getting value of variable from xml file Pin
jhwurmbach17-Jul-07 4:49
jhwurmbach17-Jul-07 4:49 
QuestionIn MFC SDI,How to write D3D code? Pin
akira3217-Jul-07 3:44
akira3217-Jul-07 3:44 
In MFC SDI,How to write D3D code?
I had wroteen some code about D3D in MFC SDI project.
But I have a problem that when I resisze the view, the model will resize.
I had reccomputed the projective matrix by the view size (when I resize the View).

I had tried to modify the projective matrix and viewport.
But it seems to be error.

HRESULT hr;
hr=m_pD3DDevice->Clear(0, NULL, D3DCLEAR_TARGET, D3DCOLOR_ARGB(255,0,0,0), 1.0f, 0);

m_ViewClientSize.cx=cx;
m_ViewClientSize.cy=cy;

D3DXMATRIX proj;
D3DXMatrixPerspectiveFovLH(
&proj,
D3DX_PI * 0.5f, // 90 - degree
(float)m_ViewClientSize.cx / (float)m_ViewClientSize.cy,
1.0f,
1000.0f);
if (m_pD3DDevice)
m_pD3DDevice->SetTransform(D3DTS_PROJECTION, &proj);

D3DVIEWPORT9 ViewPort;

m_pD3DDevice->GetViewport(&ViewPort);

ViewPort.Width=m_ViewClientSize.cx;
ViewPort.Height=m_ViewClientSize.cy;

if (m_pD3DDevice)
m_pD3DDevice->SetViewport(&ViewPort);
QuestionChecking is a file has been already locked... Pin
Abhijeet Pathak17-Jul-07 3:32
Abhijeet Pathak17-Jul-07 3:32 
QuestionRe: Checking is a file has been already locked... Pin
David Crow17-Jul-07 6:39
David Crow17-Jul-07 6:39 
AnswerRe: Checking is a file has been already locked... Pin
Abhijeet Pathak17-Jul-07 16:48
Abhijeet Pathak17-Jul-07 16:48 
GeneralRe: Checking is a file has been already locked... Pin
David Crow18-Jul-07 2:31
David Crow18-Jul-07 2:31 
AnswerRe: Checking is a file has been already locked... Pin
DevMentor.org17-Jul-07 6:55
DevMentor.org17-Jul-07 6:55 
GeneralRe: Checking is a file has been already locked... Pin
Abhijeet Pathak18-Jul-07 2:07
Abhijeet Pathak18-Jul-07 2:07 
QuestionTopIndex Property Doesn't Change Pin
pirat317-Jul-07 3:29
pirat317-Jul-07 3:29 
Questionproblem with overriding "OnIdle" method of WinApp Pin
Banks K17-Jul-07 3:23
Banks K17-Jul-07 3:23 
AnswerRe: problem with overriding "OnIdle" method of WinApp Pin
Mark Salsbery17-Jul-07 6:00
Mark Salsbery17-Jul-07 6:00 
GeneralRe: problem with overriding "OnIdle" method of WinApp Pin
Banks K17-Jul-07 21:06
Banks K17-Jul-07 21:06 
GeneralRe: problem with overriding "OnIdle" method of WinApp Pin
Mark Salsbery18-Jul-07 5:39
Mark Salsbery18-Jul-07 5:39 
QuestionHow to find list of connected USB devices to the system? Pin
mss8117-Jul-07 3:21
mss8117-Jul-07 3:21 
GeneralRe: How to find list of connected USB devices to the system? Pin
Matthew Faithfull17-Jul-07 3:29
Matthew Faithfull17-Jul-07 3:29 
GeneralRe: How to find list of connected USB devices to the system? Pin
mss8117-Jul-07 3:41
mss8117-Jul-07 3:41 
AnswerRe: How to find list of connected USB devices to the system? Pin
Matthew Faithfull17-Jul-07 4:11
Matthew Faithfull17-Jul-07 4:11 
AnswerRe: How to find list of connected USB devices to the system? Pin
David Crow17-Jul-07 6:45
David Crow17-Jul-07 6:45 
Questionactivating windows Pin
minkowski17-Jul-07 2:59
minkowski17-Jul-07 2:59 

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.