I'd like to know if it is possible to stop a window automatically resizing to fullscreen when the user presses Alt-Enter. Not that I want to disable it, rather, I want to handle it myself. Is there a...
Type: Posts; User: yaya
I'd like to know if it is possible to stop a window automatically resizing to fullscreen when the user presses Alt-Enter. Not that I want to disable it, rather, I want to handle it myself. Is there a...
Hmm... looks like I've gotta replan this then.
Thanks for the help.
Perhaps these will help?
Queue
Circular buffer
This is better explained in code. Suppose I have this:
template < typename T >
class Foo
{
public:
T i;
};
@kmdv: I specifically need the extra byte from the wchar_t.
@Elysia: Jesus of Nazareth, my brain overheats just trying to understand that std::transform function. Pity it won't compile.
I get...
I'm trying to get the bytes from a std::wstring and put them into a std::string. Unfortunately, I'm somewhat lacking when it comes to c-style string. I've made this code (and it works), but is there...
Yes, I see your point. Thanks for your help.
Do you mean like this?:
std::wstring Convert( std::string )
If so, I something like this right now, though it can get a bit messy when you start using it a fair bit. I was just looking into an...
I wan't to convert an std::string to a std::wstring. To make things easier, I want to overload the conversion operator to make it more simplified but I don't want to encapsulate in my own class....
That was the information I was looking for. Thanks.
Yeah, I understand that there are better ways to do this, but I just wanted a bare-bones example. I am assuming you want to go through all of the elements of the vector to do some sort of processing.
This question has had me for a while: Why use iterators when you can access the elements directly. For example, suppose we want to fill an empty vector with a for loop. Why would we do it like this:...
Oh, they weren't in the same scope. I was just simplifying code. I guess I'll just keep searching. Thanks for the help.
There isn't really much to show... but:
// first time
FILEIOASCII File( Filename, IO_READ );
// second time
FILEIOASCII File( Filename, IO_WRITE );
The code I gave you before was test code (obviously) but here is the actuall code:
FILEIOASCII::FILEIOASCII( std::string& Filename, __int8 OpenType, bool Append ) : OpenType( OpenType )
{...
I'm making a sort of I/O wrapper for a larger project, but all of a sudden this crash has appeared. I have narrowed it down to this line:
std::ofstream test;
Not very elaborate, eh?
...
I used to work at a school as a computer technician. We always wanted teachers to take up using free software (eg: OpenOffice.org, GIMP, etc) but there were always a number of reasons why it didn't...
I'll second this. Great movies if you put all the blood behind you.
Firstly, and most importantly, don't use goto's... ever. A while loop would do the same thing and look much neater, too.
Secondly, you check the same thing over and over. ie you always check...
From personal experience (for what it's worth), I found OpenGL to be a bit easier to kick start off with. But they eventually get just as hard as each other.
I agree with Bubba on this one. But the fact is, Nintendo are targeting casual gamers and ONLY casual gamers. Casual gamers only want to play on a system that sounds cool, regardless of whether it...
I haven't tested this, but I think this is one way of doing it:
std::string Text = "This is a reaaally annoying...";
std::vector< std::string > Words;
std::string Temp;
...
Ahh, I figured it out. I changed (or forgot to change) the pointer at one point in the code. But now I'm confused as to why it DID work under debug mode. All well, at least it's working now. Thanks...
No, sorry, that small code a gave you doesn't produce the error (I just tested it), rather, it is sort of what it going on in my actual program. It just seems weird that it is pointing to the same...
The problem is, I've got 1000s of lines of code and this particular variable is used a number of times through out it (I doubt I could find them all).