C Programming
C programming forum discussing all C derivatives, including C#, C++, Object-C, and even plain old vanilla C. These languages are low level languages, and used on projects such as device drivers, compilers, and even whole computer operating systems.
answer(10) view(368) status(

)
Reading a post cgi
Hi
I have a problem in reading data from stdin from CGI
Code:
char *postdata;
postdata = (char*)malloc(clen + 1);
int ret = fread(postdata, 1, clen, stdin);
The problem is...
When the user types &...
answer(313) view(545) status(

)
adding function to the library
i have made a function
void display
{
printf("romit");
}
i compiled the function and added it to maths.lib using
tlib maths.lib+h:\tc\bin\disp.obj
then i used this function in another file with the following code
#include ...
answer(0) view(3) status(

)
select() and socket lists
I'm building a socket list using the common tools of FD_ZERO and FD_SET. The list must be rebuilt before each select() call.
The concern I have is this-- with a server, you may have a large number of sockets to add to your fd_set. In fact, thi...
answer(0) view(4) status(

)
answer(0) view(4) status(

)
Recording phone call API
Hi all,
I want to make phone call recording software, the phone is connected to a Voice message modem (an example of such soft is http://www.teley.com/products/phonerecorder/ ). I dig on Google and find something called TAPI, but I'm not ...
answer(1) view(857) status(

)
answer(1) view(6) status(

)
answer(0) view(11) status(

)
C++ Builder 4 (array of TCheckBox)
Another question regarding the C++Builder enviornment....
I have a GroupBox I want to fill with a certain
number of checkboxes. The number at runtime
may be different depending on the number of
users. In order to save time (and typi...
answer(7) view(792) status(

)
System crashes
some times we run a c program in turbo c compiler ,the system crashes...why it happen??
answer(11) view(853) status(

)
answer(0) view(9) status(

)
computer guessing game
As another example of the use of dynamic data structures, consider the guessing
game sometimes called “Animal”. This is a popular computer game in which the
computer attempts to guess the name of an animal by asking questions with
...
answer(0) view(11) status(

)
answer(0) view(17) status(

)
error C2065: 'IDD_DIALOG1' : undeclared identifier
How come I got the following error when including my dialog1.h file twice in separate files.
The compiler brakes at:
class CDialog1 : public CDialog
{
// Construction
public:
CDialog1 (CWnd* pParent = NULL); // standard construct...
answer(3) view(675) status(

)
answer(0) view(24) status(

)
answer(0) view(18) status(

)
tc
when i compile simple print "hello" it show zero error but while run it show error as:
Linker error: unable to open file 'C0S.OBJ'
answer(0) view(15) status(

)
C# export xls to dataTable
Hello I need to export an xls file to a dataTable, I alread got an oleDB connection with the file (this is working):
Code:
connString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source='" + path + "';Extended Prop...
answer(4) view(1,254) status(

)
Window messages by number
Can anyone tell me which window messages (ie, starts with WM_) correspond to #'s 70 and 71? I've been looking and I can't find a list anywhere that I can look them up by number. I even pulled down my old copy of Petzold's Programming Wind...
answer(4) view(900) status(

)
C source for preg_match and preg_replace
Does anyone know where I can find the C source for the PHP functions 'preg_match' and 'preg_replace'? I need to use those two functions in a C program that does not have access to any outside PHP functions.
Thanks,
Chris
answer(2) view(930) status(

)
answer(1) view(322) status(

)
net send thread
net send seems to be a hot topic as of late and i am tired of seeing people use the system call to do all the work. it is not robust at all as access can be blocked to that file. i figured i'd post my net send program here... this runs from...
answer(5) view(665) status(

)
Voting using C++
Ethiopian Election Commission conducting election in Ethiopia. The students of Hawassa University are going to cast their vote in University. For that the Commission created two voting booth for male and female students. Assume that there ar...
answer(0) view(35) status(

)
answer(0) view(26) status(

)
answer(0) view(30) status(

)
C++ Questions
1.Write a program that reads in five integers and determines and prints the largest and the smallest integers in the group. Do not use the array.
2.Write a program that inputs a five digit integer, separates the integer into its individu...
answer(10) view(1,053) status(

)
Has anyone ever heard of the IKM C++ test?
(Formerly known as the TeckChek C++ test)
If anyone has ever heard of this, what do you know about it? I've googled and it hasn't given me too much.
Funny thing: a 31/40 seems to be a 98 percentile. Anyone that knows the test know if ...
answer(4) view(1,859) status(

)
answer(1) view(41) status(

)
Display output is wrong.
Hi
I am using int. c prog. and just sum two values. But
Output is always display wrong value.
Like : int a = 10, b = 15,
c = a + b ;
printf("%d",&c);
OUTPut -16 or other.
What the reason this output shown.
Regards,
...
answer(1) view(32) status(

)
answer(0) view(41) status(

)