Search:

Type: Posts; User: binks

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    3,498

    Here are two more images, with srand commented...

    Here are two more images, with srand commented out on both. There are some similarities if you rotate the images around I suppose.

    Allegro Maze
    13646

    Irrlicht Maze (I forgot to mention before...
  2. Replies
    5
    Views
    3,498

    Sure, thanks for your interest! Although it...

    Sure, thanks for your interest! Although it generates a different maze every time, preventing a direct comparison, I've made both generate 11x11 mazes, with different "cell sizes" in between.
    ...
  3. Thread: Graphic library

    by binks
    Replies
    5
    Views
    3,370

    Allegro 5, as ~Kyo~ stated, is powerful and not...

    Allegro 5, as ~Kyo~ stated, is powerful and not too tricky, and I'd highly recommend it!

    As for 3D engines, there aren't any C only engines that are straightforward to my knowledge...
  4. Replies
    5
    Views
    3,498

    Just another thought, since the 2D maze generator...

    Just another thought, since the 2D maze generator was using lines as the walls, and I want to use cubes for the walls, does the thickness of the cube need to be accounted for? For example, when...
  5. Replies
    5
    Views
    3,498

    Converting 2D Maze Generator to 3D

    Hey Cboard,

    I want to make a 3D maze generator, and after searching google for a little bit I found a 2D maze generator that works quite well. I found it here: Maze generation - Rosetta Code
    ...
  6. Replies
    10
    Views
    1,952

    So after I call strrchr, I should check to see...

    So after I call strrchr, I should check to see if:


    if(location == NULL)

    Or do I have to go


    strcmp(location, NULL);
  7. Replies
    10
    Views
    1,952

    Ok, I have a problem. What is wrong here? ...

    Ok, I have a problem. What is wrong here?


    char newNames[numFiles][256];
    char fileNames[][256] = {"Test1.zip", "Test2.rar"};
    int numfiles = 2;

    for(i = 0; i < numFiles; i++)
    {
    ...
  8. Replies
    10
    Views
    1,952

    Yes, Ok I see it now. I tested it using strcpy...

    Yes, Ok I see it now. I tested it using strcpy as well, and it works. So now I know I can treat location + 1 as a string.

    Thanks for the help, I can take it from here :)
  9. Replies
    10
    Views
    1,952

    Copying the end of a string

    Hello,

    So I have a string with a full filepath. However, I only want the immediate filename, without the full path. How can I remove the other bits or even just copy the part I want into...
  10. Replies
    8
    Views
    2,813

    Oh, and I have changed some of the function...

    Oh, and I have changed some of the function parameters because they weren't necessary for the way of extraction.
  11. Replies
    8
    Views
    2,813

    Ok, so I have a problem. For the archiver, when...

    Ok, so I have a problem. For the archiver, when I write the filenames, I write the full path. But if your extracting the files, the full path might not exist so it will fail. How can I remove the...
  12. Replies
    8
    Views
    2,813

    Ok, here is the code archive the files. This...

    Ok, here is the code archive the files. This code works great.


    #include <windows.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>

    #define BUFFER_SIZE 4096
  13. Replies
    8
    Views
    1,532

    You if statement says if(battleCommands = 65)...

    You if statement says

    if(battleCommands = 65)

    it should be

    if(battleCommands == 65)
  14. Replies
    8
    Views
    2,813

    Changing writing code to reading code

    Hi, I have a program that writes out a list of files to a single or multi volume archive. It works very well. I need to write code that can extract the files though. Can most of the work be done...
  15. Replies
    8
    Views
    960

    So, I tried using lots of printf statements, but...

    So, I tried using lots of printf statements, but I still have no clue. The program is doing what it's suppose to, but I can't find the mistake that is making it not do what I want it to.

    EDIT:...
  16. Replies
    8
    Views
    960

    Ok, so with this modified OpenVolumeFile...

    Ok, so with this modified OpenVolumeFile function, it now splits it into correct volumes successfully. BUT, now it stops at 6.10mb (before it was 1.1, now it's 5 + 1.1mb) So, should I be assuming...
  17. Replies
    8
    Views
    960

    Well, I have the volume size specified as 5 mb,...

    Well, I have the volume size specified as 5 mb, so it stopping at 1.1 mb does not make sense. I'll check the OpenVolumeFile function and get back to you.
  18. Replies
    8
    Views
    960

    Why would the 0 be the problem, since the first...

    Why would the 0 be the problem, since the first archive needs to be called "name-0"?
  19. Replies
    8
    Views
    960

    Reading and Writing certain amounts

    Hello all!

    I'm having a problem with my code. The purpose is that it will archive multiple files in a single or multi volume archive. However, it only writes a volume that is 1.10mb instead of...
  20. Replies
    5
    Views
    2,382

    So I've gotten my code to run, and it runs well...

    So I've gotten my code to run, and it runs well except it only writes 1.10 mb's to the archive and then it stops. Is there a noticable problem with this code?


    /* Uses the same code from above...
  21. Replies
    5
    Views
    2,382

    Yes, something like that. So I would just need...

    Yes, something like that. So I would just need to specify the max length of each string, but I'd still be able to make calls like this?


    size_t fileBytesLeft = fileSizes[i];
  22. Replies
    5
    Views
    2,382

    Pass 2d array to function

    Hello, I'm having a problem with the following code. I need to be able to pass several functions the data from a 2d array. I will be passing filenames. Here is the code.


    #include <windows.h>...
  23. Replies
    17
    Views
    1,868

    I've been able to fix most of the errors (25 or...

    I've been able to fix most of the errors (25 or so), but I'm getting linker errors saying undefined reference to WriteArchiveHeaderRecord and WriteBuffer. Are those names for functions I have...
  24. Replies
    17
    Views
    1,868

    Not that either, supposively I intended to do it...

    Not that either, supposively I intended to do it "for fun" but it wasn't.
  25. Replies
    17
    Views
    1,868

    No, this isn't homework. I had actually just...

    No, this isn't homework. I had actually just commented out - headersize; because it was not working with it.
Results 1 to 25 of 216
Page 1 of 9 1 2 3 4