Search:

Type: Posts; User: Dark Nemesis

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds; generated 34 minute(s) ago.

  1. Replies
    6
    Views
    14,377

    move functions to new file) Did that, lost 2...

    move functions to new file) Did that, lost 2 errors.

    users is a typedef of vector<user> and user is defined. All the necessary definitons do exist.

    Oddly enough, converting all the TCPsockets...
  2. Replies
    6
    Views
    14,377

    How exactly do I do that?

    How exactly do I do that?
  3. Replies
    5
    Views
    2,154

    Perhaps you need to use threading? Both boost...

    Perhaps you need to use threading? Both boost (C++) and SDL (C or C++) provide portable threading libraries if you don't have one with your compiler. Threading is when two segmets of code are being...
  4. Replies
    6
    Views
    14,377

    Nay, that did not work. I do know that TCPsocket...

    Nay, that did not work. I do know that TCPsocket is a pointer to a structure. One of the error messages gives that away. It's the ")" error messages that are most liekyl the culprit of the rest of...
  5. Replies
    6
    Views
    14,377

    cannot start a parameter declaration

    Could someone define what the compiler means when it gives the error "... cannot start a parameter declaration". I don't understand why the compiler would care what the first parameter is.
    ...
  6. Replies
    2
    Views
    1,011

    Useful functions

    Post your own.

    Two file size functions and a fgetline function.

    Two file size checking functions, you'll need to include stdio.h if you want to use either one. The first takes a pointer to a...
  7. Replies
    5
    Views
    6,396

    #include char *str; time_t cur_time =...

    #include <ctime>

    char *str;
    time_t cur_time = time(NULL);
    //cur_time should be your calaender time (in seconds) from:
    strftime(str, 128, "%A %d %B %H %Y", 0);
    printf("%s", str);
  8. Replies
    6
    Views
    1,123

    SDL

    <a href="http://www.libsdl.org">SDL</a>
  9. Thread: File I/o

    by Dark Nemesis
    Replies
    1
    Views
    829

    cout.sync_with_stdio(true); //Sync cout with the...

    cout.sync_with_stdio(true); //Sync cout with the C io functions
    freopen("file.txt", "w", stdout); //stdin for cin


    Put that before you use cout.
    You'll need <cstdio> (maybe <cstdlib>)
  10. 1) They return 0 2) CON is the console...

    1) They return 0
    2) CON is the console redirecting to the 'file' CON redirects to the console.
    3) See above.
  11. SDL redirects stdout/cout, can't output to con

    con = fopen("CON", "w");
    if (!con) {
    printf("Cannot open CON\n");
    }


    That bit of code (after SDL_init()) causes Cannot open CON to be printed to stdout.txt ratrher than pointing a valid...
  12. Replies
    4
    Views
    2,683

    Yay! It works, thank-you!

    Yay! It works, thank-you!
  13. Replies
    4
    Views
    2,683

    Borland and DirectX

    I'd like to use directx with the borland command-line compiler, but I get the following error. I was wondering what libs are needed for DirectX areas (right now all I need it DirectInput) and how to...
  14. Replies
    11
    Views
    2,116

    Won't that wipe the disk though?

    Won't that wipe the disk though?
  15. Replies
    11
    Views
    2,116

    I've looked at fdisk, but I don't know what area...

    I've looked at fdisk, but I don't know what area tells me if it is bootable, I have primary dos partition active on the d: drive, but can't make an extended dos partition, due to a lack of space...
  16. Replies
    11
    Views
    2,116

    Haven't formatted the D: drive I just used a sys...

    Haven't formatted the D: drive
    I just used a sys command.
  17. Replies
    11
    Views
    2,116

    C: drive is my current boot drive, and everything...

    C: drive is my current boot drive, and everything that is on c: is now also on d:.
  18. Replies
    11
    Views
    2,116

    Copying system files problems

    I'm having problems with windows, it's been bugging me alot, my 700MB drive is the favored dumping grounds for temporary files for any of my programs that use such a feature (even if I tell them to...
  19. Replies
    9
    Views
    1,944

    Numbers should match with the numpad, the numpad...

    Numbers should match with the numpad, the numpad would make it easier to play. Other than that kick-ass.
  20. Replies
    3
    Views
    3,139

    Try the windows board.

    Try the windows board.
  21. Replies
    33
    Views
    3,295

    A coin toss isn't random, the force rotation and...

    A coin toss isn't random, the force rotation and direction of force in addition to obscuritues, friction and distance to travel will result in the side that is face up, nothing is truly random,...
  22. Replies
    4
    Views
    3,241

    PHP is open source afaik, so edit the code to...

    PHP is open source afaik, so edit the code to allow for the server (having to use the modeed php) to communicate with your program, of course you have to use your own server to do this, unless you...
  23. Replies
    9
    Views
    2,371

    Simple: make the program write an lnk (shortcut)...

    Simple: make the program write an lnk (shortcut) file in the C:\windows\start menu\programs\starup folder, that will make your program run on start-up quite easily. Open a lnk file in notepad (or...
  24. Replies
    2
    Views
    1,238

    Edit: I've found out what it is, thaks for your...

    Edit: I've found out what it is, thaks for your help, the problem was I was loading so many bitmaps but never freeing them. [/edit]

    g_BoardArray was originally a 1D array, I forgot to update the...
  25. Replies
    2
    Views
    1,238

    Bizzare Crashing

    Alright, on startup the program run Init() which has the following relevant code:


    for(int y = 0; y < BOARD_HEIGHT; y++)
    {
    for(int x = 0; x < BOARD_WIDTH; x++)
    {
    //Do a switch on the...
Results 1 to 25 of 110
Page 1 of 5 1 2 3 4