Search:

Type: Posts; User: sl4nted

Page 1 of 8 1 2 3 4

Search: Search took 0.02 seconds.

  1. Thread: sounds in game

    by sl4nted
    Replies
    7
    Views
    2,159

    mci is really old, use directshow

    mci is really old, use directshow
  2. Thread: sounds in game

    by sl4nted
    Replies
    7
    Views
    2,159

    Have you looked at DirectShow? You can have...

    Have you looked at DirectShow? You can have overlapped sound etc. with it....Pretty simple aswell
  3. Replies
    18
    Views
    3,820

    Object Creation in thread function

    How can I create an Object inside a thread function?....I'm trying to create a new thread that handles a small webserver. The thread fucntion doesn't seem to create the webserver object though. The...
  4. Replies
    8
    Views
    1,600

    Could it be that it's written to the pipe as...

    Could it be that it's written to the pipe as "C:\\\\etc\\etc" and comes out the
    other end as "C:\\etc\etc"
  5. Replies
    8
    Views
    1,600

    The string is coming from an edit box. when I...

    The string is coming from an edit box. when I type in C:\\folder\blah
    the corresponding char[] that comes out of it is the same. It doesn't fill the array with C:\\\\folder\\blah. So thats what...
  6. Replies
    8
    Views
    1,600

    I've tryed to do this. I end up in the problem...

    I've tryed to do this.

    I end up in the problem that when I check \ it will take the next character as well

    for example:

    if my string is "C:\\Folder\blah"

    when I search the string char by...
  7. Replies
    8
    Views
    1,600

    I understand that. But if I try to make sure...

    I understand that.

    But if I try to make sure that every / is changed to // before sending it down the pipe, I run into the same problem.

    how do I change a string "C://blah/blah/blah.txt"
    into...
  8. Replies
    8
    Views
    1,600

    fopen string problem

    I'm having some trouble getting part of a program to work. What this section of the program does is retrieve a string sent over a pipe, part of that string is saved into a structure so It can be...
  9. Thread: semaphore

    by sl4nted
    Replies
    12
    Views
    3,876

    http://www.ecst.csuchico.edu/~beej/guide/ipc/ ...

    http://www.ecst.csuchico.edu/~beej/guide/ipc/

    heres a link to a good semaphore page.....I honestly don't know how I still have this, this is a link from the class I leared semaphores from and use...
  10. Replies
    9
    Views
    2,007

    so take the difference between what a person...

    so take the difference between what a person spent and their share. some will be positive and some will be negative. Thats the amount that needs to be exchanged by each person.
  11. Replies
    5
    Views
    2,884

    UPS stands for what? Theres no specific C...

    UPS stands for what?

    Theres no specific C function that will accomplish this. I would assume your going to have to parse system information saved by the operating system. Your best bet is...
  12. Replies
    5
    Views
    1,795

    you need to add some whitespace as well, and...

    you need to add some whitespace as well, and maybe comment a bit. more informative variable naming would be a plus aswell, its farily hard to follow this.
  13. Replies
    5
    Views
    1,795

    I didn't look threw everything, but I have an...

    I didn't look threw everything, but I have an idea why it may not be working.

    output is wrong for > 9 not 11 it looks like to me
    and then you said it looks like its char *

    whats the difference...
  14. Thread: scanf

    by sl4nted
    Replies
    4
    Views
    1,139

    anything but a newline. google regular expresions

    anything but a newline.
    google regular expresions
  15. Thread: File check

    by sl4nted
    Replies
    17
    Views
    2,302

    without taking the name arrays into consideration...

    without taking the name arrays into consideration
    sizeof(*cust) * ROWS

    if you want a size that takes into consideration extra memory allocated to the names, thats gonna be more difficult
  16. Thread: Array Struct

    by sl4nted
    Replies
    3
    Views
    1,237

    your posts look scarier with Posts: 666 vart

    your posts look scarier with Posts: 666 vart
  17. Thread: text comparing

    by sl4nted
    Replies
    48
    Views
    5,754

    I coule care less what you use. milliseconds and...

    I coule care less what you use. milliseconds and microseconds are nothing. Unless your test data is huge, you'll see no differnce. If this is going to be speed tested against the rest of your...
  18. Thread: text comparing

    by sl4nted
    Replies
    48
    Views
    5,754

    int parse2(char *p) { int pos, spc,...

    int parse2(char *p)
    {
    int pos, spc, p_val;
    unsigned int i;

    i = 0, pos = 0, spc = 0;

    for (; *p != '\0'; p++, pos++)
    {
    if (*p == ' ')
  19. Thread: text comparing

    by sl4nted
    Replies
    48
    Views
    5,754

    yes, but I think I explained previously, if you...

    yes, but I think I explained previously, if you used this method, you would have to make sure the spaces are in the right places.

    so for your example: A 11111 does = the correct pattern, but a...
  20. Thread: Array Struct

    by sl4nted
    Replies
    3
    Views
    1,237

    you sure thats where the problem is happening? ...

    you sure thats where the problem is happening?

    one thing you should do, is make sure those sturct values are initialized before you test them against 1. unlless this is in some initialization...
  21. Replies
    12
    Views
    1,708

    i is unitialized in insert_clients() read faq...

    i is unitialized in insert_clients()

    read faq on feof controling loop,

    no updating of i, so even if i is initialized, only 1 position in your array will ever change
  22. Replies
    3
    Views
    8,861

    figure out how many of each length you have to...

    figure out how many of each length you have to process first
    choose(m,n)
    m! / (n!)(m-n)!
    so for your example choose(3,1) is how many single char stirngs you need. 3! = 3x2x1 = 6
    1! = 1,...
  23. Thread: text comparing

    by sl4nted
    Replies
    48
    Views
    5,754

    test data char *tests[] = { "911aB",...

    test data


    char *tests[] = { "911aB", "AAA 564", "6114 DFa", "1111Aaa", "aa 11", "GF 1511 SS",
    "aa111aa", "aa111a", "aa111aaa", "XX 11111", "a@ 11311", "a 4511",
    ...
  24. Thread: text comparing

    by sl4nted
    Replies
    48
    Views
    5,754

    just pointing out that your previous versin...

    just pointing out that your previous versin didn't work with the 3 patterens. ie. A3AA 333 would return 1 when it should return 0. And hes trying to make it as fast as possible so I really think...
  25. Thread: text comparing

    by sl4nted
    Replies
    48
    Views
    5,754

    letters and digits are in specific places though...

    letters and digits are in specific places though quzah. not just spaces.
Results 1 to 25 of 179
Page 1 of 8 1 2 3 4