I'm currently writing a VFW codec, but am getting:
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more...
Type: Posts; User: moi
I'm currently writing a VFW codec, but am getting:
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more...
I'm not an assembly expert, but I know on at least one architecture (ARM) those will both take exactly the same amount of time; cmp and then beq or bge (or bne vs blt); half a dozen in one hand and 6...
don't know how universal the support of these is, although i've successfully used 5 6 5 reverse
#define GL_UNSIGNED_BYTE_3_3_2 0x8032
#define GL_UNSIGNED_SHORT_4_4_4_4 ...
The run I have is about 30 seconds of cpu time on a 2.6ghz P4, with over 1.5 billion function calls recorded by gprof. :D
Yarrr... did an internets search, board search, found a lot of references to this, but no answers. Using gcc (Mingw); and I want to profile. Compile everything and link with -g -pg, run the...
Don't feel like writing a response, so you get year+ old threads. See my code example here. YMMV.
http://cboard.cprogramming.com/showthread.php?t=57353
Array indicies start at 0, but the size of it is still 1 based; so char card[2] gives you spots card[0] and card[1]...
Yeah, that should work; I'll probably switch to it... in GCC I could also use the union hack
union
{
u64 big;
u32 small[2];
} foo;
So my current project which I'd been compiling so far with no -O flag, breaks some things on-O2 (although it's spiffy faster). I've been scrounging around a little bit and read up on the evilness of...
There is no language difference between .c and .h files; so anything that you can do in C you can do in a header file. Remember, #including a header file is equivalent to taking that file and...
Considering the average user competency level, I'd have to concede his point.
Inside the loop for each line, instead of having two loops, one for '*' and one for ' ', think about how you could do those both in one loop with a conditional to print either '*' or ' ' depending on...
Much the same as we have a windows specific and linux specific board; sure you can write ansi C/C++ but there are also platform specific things you'd want to do.
change=p-t;
bills=(int) change;
You have declared change as an int, so the first statement already discards any decimal part on p-t, and the cast is redundant (since both are int). Is this what...
Perfect, did exactly what I needed. Thank you :)
Hi. :) I would like to have my program watch over a particular file, and then recieve a signal (to probably wake a sleeping thread) when that file is written to by any other program.
Something...
Never rely on undefined behavior, as has already been stated. But what is happening is this; when a function takes a variable number of arguments, arguments get default promotions. In particular,...
>1) Jango Fett was the "host" for the clone army that was created for the republic, however he was fighting on the other side. Why be the host then? Seems stupid to be responsible for creating an...
Once you understand the basics of working with char arrays, this shouldn't be hard to implement. Starting at the pointer to the beginning of the string, step through it incrementing the pointer and...
i think i have the gets() avatar right? i'll post now then. it seems appropriate.
You're not testing for a ':' anywhere in that code; why do you expect it to find any colons?
I wouldn't reccomend it
why are you passing a username and password variables to sprintf() after your format string? there arent any conversion specifiers in it
printf("Enter the starting time: ");
scanf("%c", &starting_time);
printf("Enter the ending time: ");
scanf("%c", &ending_time);
What is the type of &starting_time ? What type does...
You seem to be lost. Are you looking for the C++ board?