Cheers tabstop, that worked brilliantly.
And yeah, Bubba - you're right; it's just I prefer to try and learn in doing things... Otherwise I just get bored out of my head. None of what I'm doing is...
Type: Posts; User: MinatureCookie
Cheers tabstop, that worked brilliantly.
And yeah, Bubba - you're right; it's just I prefer to try and learn in doing things... Otherwise I just get bored out of my head. None of what I'm doing is...
So my class should actually just handle the pointer to the array, rather than the array itself - do you mean?
Actually no, wait - problem. I can create the array to send to the class... But within the class, when I try and create an array using the heap, I get this error thrown:
"only static const integral...
Yeah, I'd already done that - it was the mesh that was holding the array of faces and vertices.
Cheers :)
Ahhh... Right, sorry :rolleyes: - thank you
Is this a good way to go about doing it though? Just having a large array?
Hey, I'm trying to hold a load of 3D models in my program... But I'm not sure how to go about doing it.
At first, I tried an array of faces, containing an array of vertices, each being an array of...
#include "stdafx.h"
#include <windows.h>
#include <iostream>
using namespace std;
bool FindBestDisplayMode(DEVMODE &best, DWORD width, DWORD height, DWORD bpp)
{
DEVMODE dm = {0};
...
It has a value of...
8126592
Yes.
60Hz I think. Although I can change it to 70 or 75Hz at 800x600 and it still runs fine.
It changes to make itself 800x600.
There's nothing wrong with my drivers, I can play video games that are programmed in C++ full-screen all the time.
Display comes up fine in "desk.cpl" - my monitor's just my TV, but the same thing...
Still black-screens.
I even fiddled with it a bit and made it just go Sleep and then ChangeDisplay(0, 0);
It sleeps for 20 seconds... And then black-screens.
Which is why I can't pass what you suggested of "800, 600, 32" - as that's 3 parameters? What should I pass as my value for the first parameter?
That's what I would have guessed for the parameters, but Visual C++ throws back this error:
error C2660: 'FindBestDisplayMode' : function does not take 3 arguments
@Sipher - done both of those things, neither work.
@Codeplug - What parameters am I meant to put into that function (FindBestDisplayMode)? And is it just the function I need to pay attention to?...
So what would the code for that be?
EDIT: Okay so I've worked out the problem is almost definitely in bitsPerPel.
I added in an error box, and if I have bitsPerPel = 64, it throws an error. If I...
Okay, right then...
I do want a proper full screen, so I've been trying to fiddle about with it. I've changed CreateWindow() to CreateWindowEx(), added in two variables dwStyle and dwExStyle which...
If I take out out the full-screen section of the code, it runs fine - so I don't think the error is within the TEXT macro.
And I've tried changing the bit color from "32" to "64"... It doesn't...
Hey, I'm trying to make a little window in C++ that goes full screen.
I've been browsing the internet for a solution... And well, somewhere just said to change the bit in CreateWindow to...