Linking...
SAMPCODE.OBJ(c:\raj\cprog\db\sampcode.c) : error L2029: '_mysql_select_db' : unresolved external
SAMPCODE.OBJ(c:\raj\cprog\db\sampcode.c) : error L2029: '_mysql_query' : unresol...
Hi all has anyone got any good snippets of code to do with interpolation i'm a bit stuck on how to start tackling that
cheers
I am looking for code to compile in Visual C++ 6.0 or .NET that simply evaluates a Postfix expression using stacks (pop, push, etc). I was working on a different program that converted infix ...
I have developed a program that converts infix expressions to postfix and evaluates them, however, I would like to implement a unary minus ~ to represent negative numbers in my expressions. Do...
Hi,
I'm getting this error when using drand48() for uniform RV:
error LNK2001: unresolved external symbol _drand48
I can't find the function drand48 at all using the search method (he...
hello,
is there a quick solution to convert a double value to char* ?
my dll takes a double array from a vba interface and i must use a method which takes these values as a char * array. a...
hi, I have written a code to read a disk sector using int 13h, ah=42. But it is not working properly. can anybody help me with the code .
/* code starts here */
//all headers included
ty...
find the width of a binary tree at the level where the most nodes are found.
I need to be able to access Access databases, preferably using SQL statements, from Microsoft Visual C 6.0.
I have found plenty of references to using ADO and ODBC from Visual Basic, C++, and...
i've opened and writing to the file OUTFILE
FILE *outfile = fopen("outfile.txt","r");
but i'd like to delete it. whats the code to delete a file from C?
thanks
Hi, all
Since some devices have dynamic IP, and my program wants to use the ip address to communicate. So my questions are
(1) can I use gethostbyname()? but how does it know which dns t...
I'm probally missing something simple. But can't seem to get this and need to go to bed, so will assume someone will provide a solid answer by the morning!
Need to:
casting an int to a char*...
Hi:
I am having difficulty to write the scanf function for receiving a sentence. This is what I wrote..
main()
{
char str[30];
char ToFind[30];
printf("Pleas...
Hello experts,
For the printf function to work we have to include the <stdio.h> library. But when i look into the library i find only the interface for that function. Where is the actual li...
Hi
I am doing some unix programming and i used the Richard stevens book "Advanced programmin..." His error routine use the macros from <stdarg.h>, va_start, va_args, va_end,.. . I have read ...
Can anyone give me the code for testing motor. Im programming PIC 16F84 microcontroller using C language to rotate 2 stepper motors. Here's the scenario, 1 switch will control the motor, if I ...
Dear All,
Can any body please explain me the usage of "pointer to pointer" in C.
===>> What is the advantage of "pointer to pointer " over using just pointer ?
(char **p vs char *p)
...
Hi!!
I m porting some Unix code that uses the sleep function for providing delays. I searched for some equivalent function in Windows but only came up with the Sleep function in windows.h. N...
I was wondering what's the difference between malloc and memset and in what situations do you use one over the other.
In this senario is it possible to use malloc instead of memset?
/*...
recently i saw this C puzzle:
void test_it(int *a, int* c)
{
int i;
for (i=0; i<99; i++)
{
a[i] = c[i] ;
}
the above code has to be optimised.
Can the xperts throw some light on ...
How do I convert an unsigned long to an int?
Thank you for your time,
Arrummzen
I am researching fopen() for a project in which i have to write my own version of fopen() but am a little lost where to begin, so if someone could tell me where I could read how fopen() works ...
I'm coding some stuff that involve a moving a lot of string around. It is done now by memcpy, is there faster alternative?
I am using the Java Native method which will generate C programs.
My C program will take in two parameters, one is password, the other is Encrypt.
Password is of type jstring and Encrypt i...
Hi Experts,
Atmost urgent...please respond asap.
When linking a 64-bit application with MQSeries 32-bit libraries will it perform? Are there any compatibility issues?
...