Click here to Skip to main content
15,921,990 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow I can access an external MS Access database (.mdb) Pin
ATC13-Jun-03 16:48
ATC13-Jun-03 16:48 
AnswerRe: How I can access an external MS Access database (.mdb) Pin
John M. Drescher13-Jun-03 17:35
John M. Drescher13-Jun-03 17:35 
GeneralRe: How I can access an external MS Access database (.mdb) Pin
ATC14-Jun-03 4:35
ATC14-Jun-03 4:35 
GeneralHiding Mainframe without flicker Pin
pranavamhari13-Jun-03 15:47
pranavamhari13-Jun-03 15:47 
QuestionHow to get a sub-member's pointer Pin
FlyingDancer13-Jun-03 15:43
FlyingDancer13-Jun-03 15:43 
AnswerRe: How to get a sub-member's pointer Pin
John M. Drescher13-Jun-03 15:55
John M. Drescher13-Jun-03 15:55 
GeneralRe: How to get a sub-member's pointer Pin
FlyingDancer13-Jun-03 16:02
FlyingDancer13-Jun-03 16:02 
GeneralRe: How to get a sub-member's pointer Pin
Tim Smith13-Jun-03 16:21
Tim Smith13-Jun-03 16:21 
GeneralRe: How to get a sub-member's pointer Pin
Ryan Binns14-Jun-03 4:50
Ryan Binns14-Jun-03 4:50 
AnswerRe: How to get a sub-member's pointer Pin
Michael Dunn13-Jun-03 16:33
sitebuilderMichael Dunn13-Jun-03 16:33 
GeneralRe: How to get a sub-member's pointer Pin
FlyingDancer13-Jun-03 19:14
FlyingDancer13-Jun-03 19:14 
GeneralRe: How to get a sub-member's pointer Pin
Michael Dunn13-Jun-03 19:22
sitebuilderMichael Dunn13-Jun-03 19:22 
GeneralRe: How to get a sub-member's pointer Pin
Toni7813-Jun-03 19:27
Toni7813-Jun-03 19:27 
GeneralRe: How to get a sub-member's pointer Pin
John M. Drescher14-Jun-03 4:42
John M. Drescher14-Jun-03 4:42 
AnswerRe: How to get a sub-member's pointer Pin
Brian Delahunty14-Jun-03 0:39
Brian Delahunty14-Jun-03 0:39 
GeneralRe: How to get a sub-member's pointer Pin
FlyingDancer14-Jun-03 1:12
FlyingDancer14-Jun-03 1:12 
GeneralRe: How to get a sub-member's pointer Pin
Brian Delahunty14-Jun-03 1:21
Brian Delahunty14-Jun-03 1:21 
GeneralFONT Pin
Anthony988713-Jun-03 13:24
Anthony988713-Jun-03 13:24 
QuestionHow to sync folders over the internet? Pin
IGx8913-Jun-03 12:59
IGx8913-Jun-03 12:59 
AnswerRe: How to sync folders over the internet? Pin
valikac13-Jun-03 15:12
valikac13-Jun-03 15:12 
AnswerRe: How to sync folders over the internet? Pin
Brian Delahunty14-Jun-03 0:30
Brian Delahunty14-Jun-03 0:30 
GeneralSearch Algorithims Pin
Steven M Hunt13-Jun-03 12:21
Steven M Hunt13-Jun-03 12:21 
GeneralRe: Search Algorithims Pin
Ryan Binns14-Jun-03 1:42
Ryan Binns14-Jun-03 1:42 
GeneralRe: Search Algorithims Pin
Steven M Hunt14-Jun-03 7:52
Steven M Hunt14-Jun-03 7:52 
GeneralProblem with CreateWindowEx(..)! Please Help! Pin
nutkase13-Jun-03 12:16
nutkase13-Jun-03 12:16 
Well,
while working on a class i am facing a really bad problem! well, i just cant get it!
i just run the following code
<br />
BOOL COpenGLWindow::CreateOpenGLWindow(RECT Rect,char* WindowCaption,bool Fullscreen,int Bits,UINT ExStyle,UINT Style,HWND Parent)<br />
{<br />
	WNDCLASS WndClass;<br />
	WndClass.style=CS_VREDRAW|CS_HREDRAW|CS_OWNDC;<br />
	WndClass.lpfnWndProc=OpenGLWndProc;<br />
	WndClass.cbClsExtra=0;<br />
	WndClass.cbWndExtra=0;<br />
	WndClass.hInstance=GetInstHandle();<br />
	WndClass.hIcon=::LoadIcon(NULL,IDI_WINLOGO);<br />
	WndClass.hCursor=::LoadCursor(NULL,IDC_ARROW);<br />
	WndClass.hbrBackground=0;<br />
	WndClass.lpszMenuName=0;<br />
	WndClass.lpszClassName="OpenGLClass";<br />
	if(!RegisterClass(&WndClass))<br />
	{<br />
		OutputDebugString();<br />
		return FALSE;<br />
	}<br />
	bool ShowWnd=(Style&WS_VISIBLE);<br />
	Style|=~WS_VISIBLE;<br />
	//AdjustWindowRectEx(&Rect,Style,FALSE,ExStyle);<br />
	if(!(hWnd=CreateWindowEx(ExStyle,"OpenGLClass",WindowCaption,Style,Rect.left,Rect.top,Rect.right-Rect.left,Rect.bottom-Rect.top,Parent,(HMENU)NULL,GetInstHandle(),NULL)))<br />
	{<br />
		OutputDebugString();<br />
		return FALSE;<br />
	}<br />
	if(!(hDC=GetDC()))<br />
	{<br />
		OutputDebugString();<br />
		return FALSE;<br />
	}<br />
	PIXELFORMATDESCRIPTOR pfd=<br />
	{<br />
		sizeof(PIXELFORMATDESCRIPTOR),<br />
		1,<br />
		PFD_DRAW_TO_WINDOW|PFD_SUPPORT_OPENGL|PFD_DOUBLEBUFFER,<br />
		PFD_TYPE_RGBA,<br />
		Bits,<br />
		0,0,0,0,0,0,0,0,0,0,0,0,0,<br />
		24,<br />
		0,0,0,0,0,0,0<br />
	};<br />
	int PixelFormat;<br />
	if(!(PixelFormat=ChoosePixelFormat(hDC,&pfd)))<br />
	{<br />
		OutputDebugString();<br />
		return FALSE;<br />
	}<br />
	if(!SetPixelFormat(hDC,PixelFormat,&pfd))<br />
	{<br />
		OutputDebugString();<br />
		return FALSE;<br />
	}<br />
	if(!(hRC=wglCreateContext(hDC)))<br />
	{<br />
		OutputDebugString();<br />
		return FALSE;<br />
	}<br />
	if(!wglMakeCurrent(hDC,hRC))<br />
	{<br />
		OutputDebugString();<br />
		return FALSE;<br />
	}<br />
	if(ShowWnd)<br />
	{<br />
		ShowWindow(hWnd,SW_SHOW);<br />
		SetForegroundWindow(hWnd);<br />
		SetFocus(hWnd);<br />
	}<br />
	return TRUE;<br />
}<br />

and the call to CreateWindowEx Failes ! GetLastError() prints INvalid Window Handle.?!?!?!?Confused | :confused:
well the call bieing made to this function is as follows:
<br />
CreateOpenGLWindow(Rect,"Mine",false,16,WS_EX_APPWINDOW|WS_EX_WINDOWEDGE,WS_POPUPWINDOW,NULL);<br />


WEll i m in serious trouble so please help as soon as possible!
shoaib.

Doesn't Window Really Sucks!

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.