mci is really old, use directshow
Type: Posts; User: sl4nted
mci is really old, use directshow
Have you looked at DirectShow? You can have overlapped sound etc. with it....Pretty simple aswell
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...
Could it be that it's written to the pipe as "C:\\\\etc\\etc" and comes out the
other end as "C:\\etc\etc"
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...
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...
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...
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...
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...
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.
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...
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.
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...
anything but a newline.
google regular expresions
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
your posts look scarier with Posts: 666 vart
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...
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 == ' ')
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...
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...
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
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,...
test data
char *tests[] = { "911aB", "AAA 564", "6114 DFa", "1111Aaa", "aa 11", "GF 1511 SS",
"aa111aa", "aa111a", "aa111aaa", "XX 11111", "a@ 11311", "a 4511",
...
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...
letters and digits are in specific places though quzah. not just spaces.