Search:

Type: Posts; User: DarkMortar

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,177

    First major program in C

    Hey yo!

    I made this program in regular C language. It's just a text adventure on a console interface with some color :). You can select your class, race, ect and fight. It is actually far from...
  2. Replies
    1
    Views
    1,362

    why is PlaySound so LOUD?!

    Even though my .wav volume is at 100%, but its plays too loud! My speakers have to be at 5%-10% lol. How do I lower the volume of playsound w/ out lowering my wav?
  3. Replies
    2
    Views
    1,507

    microsoft visual c++ 2005 express

    microsoft visual c++ 2005 express
  4. Replies
    2
    Views
    1,507

    problem w/ color functions && win98 :P

    Hello.

    I have color functions that look like this:


    void tred()
    {
    #ifdef WIN32
    HANDLE hstdo;
    hstdo = GetStdHandle(STD_OUTPUT_HANDLE);
  5. Replies
    8
    Views
    1,325

    how do i mopve the coursor and then get it back...

    how do i mopve the coursor and then get it back to where it was? And even if I did, wouldnt it just print it again on top and not write over it?
  6. Replies
    8
    Views
    1,325

    yes but I would have to basically always have to...

    yes but I would have to basically always have to "cls" PART of the screen? I dotn udnerstand how.
  7. Replies
    8
    Views
    1,325

    How could i...?

    What I want to do is the be able to basically have the program print a print statement with variables in it after a cls mutiple times.

    ok that doenst make sense but let me explain...

    I am...
  8. hey, hey ,hey that works!

    hey, hey ,hey that works!
  9. in global.h, like this: extern int...

    in global.h, like this:


    extern int arenaMaxTemp,arenaTemperature,timeGen,arenaWindVariance,arenaLowWind,
    arenaMaxWind,arenaWind,arenaTempVariance,arenaLowTemp,arenaFans,arenaForcastNum,...
  10. Hmm.. ok lol, new problem now. It's a little...

    Hmm.. ok lol, new problem now.

    It's a little different than before. The difference here is that the compiler is giving me errors when I try to include my global.h file which conains all of my...
  11. YESSSSSSSSSSSSSSSSSS!!!1 YESSS OH YES,...

    YESSSSSSSSSSSSSSSSSS!!!1
    YESSS


    OH YES, FINALLY! That is why!!! :D :D :D

    Ok sorry but finally woot! Sorry, I'm new to C. And I feel stupid now :rolleyes:
  12. Ok that does make sense to me now, but I put...

    Ok that does make sense to me now, but I put #define WIN32 at the top and it gives me errors in the functions like this:


    1>.\colorIt.cpp(235) : error C3861: 'SetConsoleTextAttribute': identifier...
  13. but dood, when I even left out the #error...

    but dood, when I even left out the #error statements in the color functions, it compiled but didnt show the color! hmm?
  14. Ok this time, I properly defined WIN32 in the...

    Ok this time, I properly defined WIN32 in the predepresser and it compiles and runs now. Nothing else was changed. BUT it STILL doesnt show the colors like it should.

    BUT: the #error in...
  15. But if I put #define WIN32 in the C/C++ compiler...

    But if I put #define WIN32 in the C/C++ compiler properties under predpresser, it will give me infinite errors, like it doesnt know any of my variables when I do that.

    I even tryed it the other...
  16. I just tryed putting color.h below and it still...

    I just tryed putting color.h below and it still does not show color. Oh im really sorry for all hte trouble im causing. :(
  17. well i defined something in colorIt.cpp, that is...

    well i defined something in colorIt.cpp, that is about WIN32. Its actually also defined in main.cpp also. But what do you mean by defining it as a predepressor? It has worked before, but only when it...
  18. no errors, it compiles and runs, but it doesnt...

    no errors, it compiles and runs, but it doesnt show the colors, it seems like it thinks the functions are void when they shouldnt be.


    main.cpp:


    #include "global.h"
    #include "color.h"
    ...
  19. my colorIt.cpp has this at top: #include...

    my colorIt.cpp

    has this at top:


    #include "color.h"

    #define _WIN32_WINNT WINVER

    #ifdef WIN32
  20. got this error when I compiled it: ...

    got this error when I compiled it:


    1>.\colorIt.cpp(365) : fatal error C1189: #error : !WIN32

    So it means its really there huh?


    void blue_grey()
    {
  21. Replies
    16
    Views
    10,855

    Can you use that on a console app. And how would...

    Can you use that on a console app. And how would it fair with compadilibty like a lousy win98 machine I would have to run it on.
  22. What do you mean by pass a reference to ostream?

    What do you mean by pass a reference to ostream?
  23. but this is everything in my color.h file: ...

    but this is everything in my color.h file:



    // INTERFACE FUNCTIONS:
    // font colors>>

    void tred();
    void tgreen();
    void tblue();
  24. My main cpp file, is called "main.cpp" I tryed...

    My main cpp file, is called "main.cpp"

    I tryed to include this in the main.cpp file:


    #include "color.h"

    color.h only says this in the entire file for testing reasons:
  25. still having problems.

    still having problems.
Results 1 to 25 of 49
Page 1 of 2 1 2