Click here to Skip to main content
15,925,868 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Anyone here want to earn some money by writing a few small programs fhat i need for my introductary C++ class? Pin
KaЯl5-Dec-03 2:04
KaЯl5-Dec-03 2:04 
GeneralRe: Anyone here want to earn some money by writing a few small programs fhat i need for my introductary C++ class? Pin
Roger Wright5-Dec-03 4:58
professionalRoger Wright5-Dec-03 4:58 
GeneralRe: Anyone here want to earn some money by writing a few small programs fhat i need for my introductary C++ class? Pin
Jörgen Sigvardsson6-Dec-03 2:10
Jörgen Sigvardsson6-Dec-03 2:10 
GeneralThe synchronization issue on sending and receiving data via UDP Multicast... Pin
JoeZhang4-Dec-03 16:33
JoeZhang4-Dec-03 16:33 
GeneralRe: The synchronization issue on sending and receiving data via UDP Multicast... Pin
Roger Wright4-Dec-03 18:05
professionalRoger Wright4-Dec-03 18:05 
GeneralRe: The synchronization issue on sending and receiving data via UDP Multicast... Pin
Johnny ²4-Dec-03 21:35
Johnny ²4-Dec-03 21:35 
GeneralRe: The synchronization issue on sending and receiving data via UDP Multicast... Pin
JoeZhang4-Dec-03 22:04
JoeZhang4-Dec-03 22:04 
GeneralRe: The synchronization issue on sending and receiving data via UDP Multicast... Pin
Mike Dimmick4-Dec-03 23:55
Mike Dimmick4-Dec-03 23:55 
GeneralMultithreaded QuickSort Pin
Robert Buldoc4-Dec-03 16:29
Robert Buldoc4-Dec-03 16:29 
GeneralRe: Multithreaded QuickSort Pin
Xiangyang Liu 刘向阳8-Dec-03 1:13
Xiangyang Liu 刘向阳8-Dec-03 1:13 
QuestionThe Trouble with List Controls(CListCtrl)?? Pin
MissingLinkError4-Dec-03 16:23
MissingLinkError4-Dec-03 16:23 
AnswerRe: The Trouble with List Controls(CListCtrl)?? Pin
Abin4-Dec-03 20:18
Abin4-Dec-03 20:18 
GeneralRe: The Trouble with List Controls(CListCtrl)?? Pin
MissingLinkError5-Dec-03 9:32
MissingLinkError5-Dec-03 9:32 
Generalcontinuous voice problem Pin
yingkou4-Dec-03 15:46
yingkou4-Dec-03 15:46 
GeneralOpenGL problem on XP, wglMakeCurrent changes tooltips behavior for windows desktop Pin
Yawar Maajed4-Dec-03 14:20
Yawar Maajed4-Dec-03 14:20 
GeneralWaitForMultipleObjects always returns WAIT_FAILED Pin
Kuniva4-Dec-03 10:50
Kuniva4-Dec-03 10:50 
GeneralRe: WaitForMultipleObjects always returns WAIT_FAILED Pin
Kelly Herald4-Dec-03 17:52
Kelly Herald4-Dec-03 17:52 
GeneralRe: WaitForMultipleObjects always returns WAIT_FAILED Pin
Kuniva5-Dec-03 0:19
Kuniva5-Dec-03 0:19 
GeneralRe: WaitForMultipleObjects always returns WAIT_FAILED Pin
Kuniva5-Dec-03 0:30
Kuniva5-Dec-03 0:30 
GeneralRe: WaitForMultipleObjects always returns WAIT_FAILED Pin
Mike Dimmick5-Dec-03 0:02
Mike Dimmick5-Dec-03 0:02 
GeneralRe: WaitForMultipleObjects always returns WAIT_FAILED Pin
Kuniva5-Dec-03 0:18
Kuniva5-Dec-03 0:18 
GeneralButton in windows forms..c++ Pin
mitil203904823044-Dec-03 10:36
mitil203904823044-Dec-03 10:36 
GeneralSwitching Views in SDI Pin
swerajan4-Dec-03 9:52
swerajan4-Dec-03 9:52 
GeneralRe: Switching Views in SDI Pin
Peter Molnar4-Dec-03 13:38
Peter Molnar4-Dec-03 13:38 
GeneralProblem with lpdirect3ddevice9 Pin
Simon Booth4-Dec-03 9:26
Simon Booth4-Dec-03 9:26 
I have started writing a class to create a d3d window, but every time i make a call to BeginScene,EndScene or Present my computer restarts. The following is my d3d initiation code which i run after creating a window, and then i try to run the functions from my main message loop. Could anyone please help, I'm having trouble debugging soon as my computer reboots everytime it doesnt work.

if((procIdle==NULL)||(procRender==NULL)||(procPreRender==NULL))return 1;
if(FAILED(lpD3D = Direct3DCreate9(D3D_SDK_VERSION)))return 2;
if(FAILED(lpD3D->CreateDevice
(D3DADAPTER_DEFAULT,D3DDEVTYPE_HAL,hWnd
,D3DCREATE_SOFTWARE_VERTEXPROCESSING,&prm,&lpDevice)))return 3;
for(int i = 0;i < 209; i++)
if(render_states[i]!=NULL)
if(FAILED(lpDevice->SetRenderState
((D3DRENDERSTATETYPE)i,render_states[i])))return 4;;;
initiated = true;
return 0;

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.