That makes a lot of sense now. You see my message handler waits for the WM_DESTROY message before telling the code to quit. So therefore yes DirectDraw will try and write to nothing.
So I tested...
Type: Posts; User: bartybasher
That makes a lot of sense now. You see my message handler waits for the WM_DESTROY message before telling the code to quit. So therefore yes DirectDraw will try and write to nothing.
So I tested...
Yeah I totally agree with you it needes fixing, but I cant fix a problem that I don't know how is being caused. Well not so much how but why its being caused, because surely if the program wanted to...
Right all the initializeation is done before the program enters the real time loop. Therefore everything is already defined.
lpddsPrimary being the surface that is defined with the palette lpddp.
...
No all my clean up is done after the while loop. So when the quit message is posted the while loop breaks and then the clean up code is after that. This means that my WndProc command is kept...
Hi in the tutorial I have been reading I have been Taught to write to the video memory like this but when I exit the application I keep getting an Access violation error Which Refers to the line...
Hi Personally I am not a fan of microsoft so I was always reluctant to start using Visual C++, but one day I did and I love it, it keeps things simple and doesn't force you to do anything. I love the...
Oh okay thanks mate I think I get it many thanks
So should QueryInterface(const IID &iid, void **iface)
really have the void * in brackets so its
QueryInterface(const IID &iid, (void*)*iface)
like a standard c type cast?
Hi I have used the clickteam tools a lot of my life too. So I probably know where you are coming from with a lot of things regarding C++. So if you ever have any more problems dont hesittate to email...
Hi I am not one for using virtual inheritance or pointers to functions if I can help it, but I am trying to start to learn the basics of direct x and it was recommended i knew a bit about COM first....
Hi I am running into a problem with my windows based program. I am using a Hbitmap as a back buffer before blitting it onto the screen. My problem is I want to load bitmap resources onto seperate...
Are right I understand. Thanks a lot for your help. Your all stars at this board.
Right forgive me for been completly thick today but my understanding was (This is probably completely wrong half a year does this to you)
That a copy constructor takes a reference to an object as a...
Your starting to lose me a bit. So the compile time error will go if i define a copy constructor??
// Record Header File Version 1
// For Address Book Version 1 Build 2 Onwards
class Record
{
public:
// Constructors
Record();
Record(char* theName);
Record(char* theName, char*...
Yeah sure because im confused now because I thought that would of been logical, to have to re-write that one too.
// Node header File Version 1
// For Address Book Version 1 Build 3 Onwards
...
Hi I have had a break from C++ for a while because of exams and I am trying to get back into it. I have created a linked list and am trying to use the following statement.
theRecord = new...
Yeah sure. All I have got now is the version that has a HDC as a member varible. I don't have the one with the HBITMAP member anymore.
main.cpp. Equals the windows class and the winmain function.
...
Are okay I think I understand, but my program is starting to confuse me. What happens if the I just create a hdc as a member instead and reference that, because I get excatly the same results. As...
Hi I have got a few different classes which each draw a different thign to the screen so I decided to wrap them all in one sing Game wrapper class. Now for a member I have created a HBITMAP. Now I...
Yeah I did lol but thanks for makin sure. The problems that could happen if i hadn't and you didn't remind me. You could of saved me hours of pain many thanks
Oh thanks mate I honestly didnt know that lol. Serves me right for not using arrays unless I really have too lol. I sorted it now. I just changed
Block * tempBlock = itsBlocks;
To:
Alright I deleted that line and the assert error has gone.
The program is basically a clone of the old sega game columns. Now that function is supposed to switch the colour blocks around but it...
Hi I seem to be having some trouble with function in my code. The idea is that I have an array and I want to swap the order of the array around. Everytime I run the function though it just comes up...
Yeah but because the code loops 30 tiems a second. Say if the key is pressed for one of those loops then it gets added to the counter but say its still pressed for the next loop well Then it still...