Hi, experts:
I develop a server-client application. At server side, I use Java language. At client side, I use C language.
Key is known between server and client.
At server side,
1) signa...
/*
Simple, simple pipe() sample.
Main program stdout -> child stdin -> chile stdout -> Main program stdout
cc spipe.c -o spipe
To run
>./spipe
any text
any...
struct opcodeTable
{
char name[10];
char code[3];
};
opcode_table[0].name="add"; // error on this line
When doing the above, i got the error msg saying "error: incom...
In C, what's the difference between a typedef and a macro? I mean, what difference will it make if we use a #define to define a user data type instead of a typedef statement?
Write a C program that create a tax calculation program for food stores. Some food items and all non-food items are subject to a stae wide sales tax and local district taxes. Due to differen...
Hello,
I have a C dll written with Borland C++5. With Borland C++5, i created a .lib but I can only use it with Borland C++5. I want to use it with Visual C++ 6.
Does anybody know how I ...
I'm trying to compile a rather simple C program under Borlan'd C++ Builder 4 but it's not working. It can't find some libraries, mostly socket related ones. How can I fix this? (Yes, I want to...
I am using read write in C to read in the first line of a file. Unfortunately, I have to read in each byte and store it into a buffer until end of line is reached.
Lets say I read in one b...
Hi, when I compiled my C code, i always see warning
"ISO C90 forbids mixed declarations and code"
What does this mean?
Hi,
I'm developing a 'C' console application that accesses a dll and I'm having trouble getting them to link. As far as I can tell it looks like the 'C' (app) isn't speaking the same as the...
I'm designing a serial communications program on a linux system with an asychronous device. I've read other articles and all of them say, "Reading and writing from the port is easy" but I don...
hi, could someone please explain - LPTSTR.
why,
LPTSTR ptr;
and not...
LPTSTR *ptr
a full explanation on LPTSTR and how to
use it would be greatly apriciated.
thanks..
i have a service that needs to run once in a while a batch file.
i tried winexec(), shellexecute(), shellexecuteex(), system() and createprocess(). they all return success but the batch file ...
I need to write and run a program that constructs the pascal triangle using factorials. I've written a function that calculates the nth factorial and then wrote a recursive function that calls...
Does anyone have B+ tree source code ?
Thank a lot.
there are some variables that have some leading underscores (_) or (__) infront of a variable...does that mean anything?
I am not looking for answers like, leading underscores for a variabl...
Hi. I am a beginner of assembly language.
I am so confused on this problem.
I need to write an assembly language program (inline assembler) to add 2, 100 digit-long number each. The same p...
Hello developpers
I have a linker problem that I don't understand: I have serveral C functions compiled into a LIB file. In my Win32 console application, I'm using those functions. Compiling ...
Could anyone can give me a sample wrote in TC?
Thanks a lot!
I'm trying to compile a posix function i created, but every time i do i get the following errors,
fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
and, if...
I have a problem with my codes, i was wondering if someone could help me....
I'm using an OV6620 camera with a PIC 16F877A microcontroller. I am trying to have my camera identify lines on the...
Hello,
I am trying to figure out the do/while loop scenario. Let's say that I have code:
/* Example Case using C */
#include <stdio.h>
#include <ctype.h>
int main(void)
{
do{
ch...
hi,
is it better to use malloc or calloc. The only downfall i see with calloc is the work associated to initialize the string to zero.
Pls clarify. thanks.zizi
Hello group,
In a C/C++ code such as:
extern void anotherglobalfunc(int param1);
Does the compiler searches for the function in current directory only? or it has wider...