Click here to Skip to main content
15,896,154 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Changing Shapes of Windows Pin
Newbie0017-Feb-07 10:56
Newbie0017-Feb-07 10:56 
GeneralRe: Changing Shapes of Windows Pin
Hamid_RT18-Feb-07 5:23
Hamid_RT18-Feb-07 5:23 
QuestionRe: Changing Shapes of Windows Pin
Newbie0018-Feb-07 6:10
Newbie0018-Feb-07 6:10 
AnswerRe: Changing Shapes of Windows Pin
Hamid_RT18-Feb-07 5:23
Hamid_RT18-Feb-07 5:23 
QuestionHow to change IWebBrowser2->LocationName ? Pin
amsdev17-Feb-07 7:48
amsdev17-Feb-07 7:48 
AnswerRe: How to change IWebBrowser2->LocationName ? Pin
Michael Dunn17-Feb-07 9:13
sitebuilderMichael Dunn17-Feb-07 9:13 
AnswerRe: How to change IWebBrowser2->LocationName ? Pin
prasad_som17-Feb-07 15:50
prasad_som17-Feb-07 15:50 
QuestionDirect X 9.0 and Visual C++ 6.0 Pin
Dosin17-Feb-07 5:39
Dosin17-Feb-07 5:39 
Error msg:
c:\program files (x86)\microsoft visual studio\myprojects\window\winmain.c(44) : error C2275: 'D3DPRESENT_PARAMETERS' : illegal use of this type as an expression

I am not sure what is causing this error. I have the DirectX 9.0 SDK installed. I am using Visual C++ 6.0 and added d3d9.lib and the directory for the include. The only thing different is I have Vista Premium 64 bit version. The windows code works fine. I can't get it to compile DirectX headers? I have also tried it with the free version of Visual c++ 2005 and still getting errors? I have tried running it as an Administrator. Any ideas how to get this working?

D3DPRESENT_PARAMETERS d3dpp;

ZeroMemory( &d3dpp, sizeof(d3dpp) );
d3dpp.Windowed = TRUE;
d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD;
d3dpp.BackBufferFormat = D3DFMT_UNKNOWN;

if( FAILED( g_pD3D->CreateDevice( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd,
D3DCREATE_SOFTWARE_VERTEXPROCESSING,
&d3dpp, &g_pd3dDevice ) ) )
{
return E_FAIL;
}
AnswerRe: Direct X 9.0 and Visual C++ 6.0 Pin
Waldermort17-Feb-07 6:40
Waldermort17-Feb-07 6:40 
QuestionPalettes and HDC?? Pin
dSolariuM17-Feb-07 3:01
dSolariuM17-Feb-07 3:01 
AnswerRe: Palettes and HDC?? Pin
Waldermort17-Feb-07 3:20
Waldermort17-Feb-07 3:20 
QuestionProblem with vista message WM_DWMWINDOWMAXIMIZEDCHANGE Pin
michele_cv17-Feb-07 0:32
michele_cv17-Feb-07 0:32 
AnswerRe: Problem with vista message WM_DWMWINDOWMAXIMIZEDCHANGE Pin
Ravi Bhavnani17-Feb-07 16:32
professionalRavi Bhavnani17-Feb-07 16:32 
Questionmore info about "browserinfo" ? Pin
rolfhorror16-Feb-07 22:48
rolfhorror16-Feb-07 22:48 
AnswerRe: more info about "browserinfo" ? Pin
Dominik Reichl16-Feb-07 23:22
Dominik Reichl16-Feb-07 23:22 
GeneralRe: more info about "browserinfo" ? Pin
rolfhorror16-Feb-07 23:49
rolfhorror16-Feb-07 23:49 
GeneralRe: more info about "browserinfo" ? Pin
rolfhorror17-Feb-07 0:01
rolfhorror17-Feb-07 0:01 
GeneralRe: more info about "browserinfo" ? Pin
Newbie0017-Feb-07 1:00
Newbie0017-Feb-07 1:00 
GeneralRe: more info about "browserinfo" ? Pin
Dominik Reichl17-Feb-07 1:07
Dominik Reichl17-Feb-07 1:07 
GeneralRe: more info about "browserinfo" ? Pin
Newbie0017-Feb-07 1:17
Newbie0017-Feb-07 1:17 
GeneralRe: more info about "browserinfo" ? Pin
Dominik Reichl17-Feb-07 1:20
Dominik Reichl17-Feb-07 1:20 
GeneralRe: more info about "browserinfo" ? Pin
Dominik Reichl17-Feb-07 1:05
Dominik Reichl17-Feb-07 1:05 
GeneralRe: more info about "browserinfo" ? Pin
rolfhorror17-Feb-07 2:32
rolfhorror17-Feb-07 2:32 
GeneralRe: more info about "browserinfo" ? Pin
Hamid_RT17-Feb-07 5:21
Hamid_RT17-Feb-07 5:21 
GeneralRe: more info about "browserinfo" ? Pin
rolfhorror17-Feb-07 5:47
rolfhorror17-Feb-07 5:47 

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.