Search found 35 matches
- Wed Apr 07, 2010 4:59 pm
- Forum: Programming Discussion
- Topic: About fstream and also the use of stupid pointers grrr
- Replies: 2
- Views: 446
About fstream and also the use of stupid pointers grrr
First of all I have just been following some tutorials on pointers and I still aint got my head round them but think I have the basic idea. Also I have been reading up on reading from files, which seems pretty straight forward. Anyway the purpose of this thread is I have an idea for the next part of...
- Wed Apr 07, 2010 11:13 am
- Forum: Programming Discussion
- Topic: DOS COnsole color changer function complete
- Replies: 2
- Views: 516
Re: DOS COnsole color changer function complete
I shall look into that. Cheers
- Wed Apr 07, 2010 6:51 am
- Forum: Programming Discussion
- Topic: DOS COnsole color changer function complete
- Replies: 2
- Views: 516
DOS COnsole color changer function complete
Here is the code for the function I have been yakking on about for the last day in its completed glory. It is based loosely on the GameTutorials website code on changing text colour but I have modified it to suit my needs. void ColorString(string szText, WORD color); //Function to change text colour...
- Wed Apr 07, 2010 6:45 am
- Forum: Programming Discussion
- Topic: Coloured Text in DOS
- Replies: 5
- Views: 520
Re: Coloured Text in DOS
OK Ive just got the text to change back to its original color. WHich as a bit of a nightmare. I found a tutorial for it on MSDN but it used a totally differnt routine to the once I was using. So I had to bastardise the code a bit to get it to work with my function. Just need to read up a bit on poin...
- Wed Apr 07, 2010 3:43 am
- Forum: Game Development
- Topic: My Random Game
- Replies: 13
- Views: 2106
Re: My Random Game
OK Ive finally got VC++ working the way I want it to, for now. Think my previous problems were my lack of knowledge in VC++ 2008. Just had a look at MSDN and it turns out that before when I was selecting a CLR COnsole App for my project I was doing it wrong. Ive now done it as a Win32 Console app wi...
- Tue Apr 06, 2010 6:28 pm
- Forum: Game Development
- Topic: My Random Game
- Replies: 13
- Views: 2106
Re: My Random Game
Guess I might try it again in VC++ now I have sorted out the header file problems that I had before. And VC++ does look prettier as well, lol.
- Tue Apr 06, 2010 6:25 pm
- Forum: Programming Discussion
- Topic: Coloured Text in DOS
- Replies: 5
- Views: 520
Re: Coloured Text in DOS
True. Just need to find a way to change the text back to the original color as that function only seems to let me change it to Red, Green or Blue. I have an idea about this. Going to try and implement it tomorrow night, will let you know if its a success or not. Just cant believe Im spending time on...
- Tue Apr 06, 2010 5:30 pm
- Forum: Game Development
- Topic: My Random Game
- Replies: 13
- Views: 2106
Re: My Random Game
I was just having problems with VC++ earlier on. WHen Ive run more or less identical code in Dev C++ Im getting less errors. Aint sure why this is.
- Tue Apr 06, 2010 4:58 pm
- Forum: Game Development
- Topic: My Random Game
- Replies: 13
- Views: 2106
Re: My Random Game
Not really done much so far. I have changed from VC++ to Dev C++. It seems to work as I expected. Redone all my code so far and added the ability for multi coloured text. Going to start designing my player and monster classes soon and create some basic battle system. Then need to design some sort of...
- Tue Apr 06, 2010 3:02 pm
- Forum: Programming Discussion
- Topic: Coloured Text in DOS
- Replies: 5
- Views: 520
Re: Coloured Text in DOS
Please ignore my last I have done it. Really need more faith in myself. Just first time I've changed other peoples functions without knowing weather it will work 100%. I feel quite good about myself. I know it aint much but to me it is, lol.
- Tue Apr 06, 2010 2:56 pm
- Forum: Programming Discussion
- Topic: Coloured Text in DOS
- Replies: 5
- Views: 520
Coloured Text in DOS
Hey all, I have found some source code for setting up a function for printing coloured text in a DOS window. However Im unsure about the x, y co-ords. The function has some parameters passed into it including the x-y coords, the way I want to use this function is like a standard cout, so it just pri...
- Tue Apr 06, 2010 3:21 am
- Forum: Programming Discussion
- Topic: Structure Decalarations
- Replies: 14
- Views: 890
Re: Structure Decalarations
Fixed those two errors. Still not working in VC++. Gonna get Code Blocks now. Seems stupid that different compilers treat the same code differently.
- Mon Apr 05, 2010 12:46 pm
- Forum: Programming Discussion
- Topic: Structure Decalarations
- Replies: 14
- Views: 890
Re: Structure Decalarations
Cool cheers for that. By the way, without sounding stupid, what is Code Blocks??
- Mon Apr 05, 2010 9:03 am
- Forum: Programming Discussion
- Topic: Structure Decalarations
- Replies: 14
- Views: 890
Re: Structure Decalarations
I have declared it in a different header file but VC++ wont let me use it. Below is the code of my functions, this is where I am trying to use the structure in the CreateChar function. //Header guards #ifndef ADD_H #define ADD_H #include "cus_structures.h" //Function header, these are the ...
- Mon Apr 05, 2010 6:24 am
- Forum: Programming Discussion
- Topic: Structure Decalarations
- Replies: 14
- Views: 890
Structure Decalarations
Hey all, I am creating my character stats using a structure. Do I need to declare this structure in the main source code or can I do it in my Header file, in case I want to use it again?