Forget that - I've sussed it :)
Type: Posts; User: Shag
Forget that - I've sussed it :)
Thanks for that.
Can you also explain how to add the manifest as a resource? I've tried following the MSDN examples, but I get error messages whenever I run the app without the manifest present....
How do I go about enabling Windows XP visual styles when using C#?
Is there a simple solution to this?
Regards
I'm making class wrappers for various window controls such as edit, static, progress etc. Similar in a way to the CEdit class etc - but much simplified.
I've subclassed the winprocs in class...
Trouble is, it's not the end of the edit ...
Basically the difference between the functions if the resolution (accuracy) of the returned value.
GetTickCount only update every 11 milliseconds or so, whereas the resolution of timeGetTime is...
OK ... I've subclassed an edit control to intercept the tab key (to move the focus to another edit control). This works fine apart from one small problem - everytime I hit the tab key the program...
Before I start, I'm using MS VC 6.0, and straight C + API only.
I have created a very basic window - WS_EX_APPWINDOW + WS_OVERLAPPEDWINDOW - no other creation paramerters.
What i want to do is...
I finally got a machine to acturately test the two returning methods:
VC++6 ... No optomisation, no inlining
Worst case - the two were identical
Best case - version two about 60% faster.
...
OK ... which of these two is better, and why?
Example 1
void CHighResolutionTimer::SecondsElapsed(double *ElapsedTime)
{
QueryPerformanceCounter((LARGE_INTEGER*) &m_i64_ElapsedTime);...
Besides ... about the most lengthy piece of code in there sets up the PIXELFORMATDESCRIPTOR ... bearing in mind that ZeroMemory has already cleared most of it, you can reduce that piece of code to...
It's nothing to do with OpenGL ... it's to do with creating an OpenGL window within the Microsoft Windows Operating System! And other OS's are much the same. What Eber is saying, is that he has a...
Hi Eber!
But that looks awfully like GLUT to me! Which is a BAD thing! ... just my opinion though.
eh?
BTW - loose the daft signature!
5 1/4" floppy disks make great frisbies ....
http://www.opengl.org/developers/documentation/glut.html
Seeing as no one answered, this will look like crap, but here goes
HINSTANCE hInstance;
HWND hWnd;
HDC hDC;
HGLRC hRC;
You need to download the glut headers, and put then into your include/gl folder in you MSDEV driectory ... (search on google)
But a word of advice - don't use glut unless you have too - too much...
This is my first night on this board - how do I post source formatted code?
How do you mean? Using the Win32 API or maybe Glut?
Need more info ...