Hello,
I am running 4 parallel instances of my C application on a windows machine. I would be calling the applications in my C code as below:
for (int I=0 ; I<4 ; I++)
system("Start...
Type: Posts; User: dunxton
Hello,
I am running 4 parallel instances of my C application on a windows machine. I would be calling the applications in my C code as below:
for (int I=0 ; I<4 ; I++)
system("Start...
Thanks. But I have another question.
Suppose I use the local string as you suggested, will the memory for that string be freed once I get out of the function? I know that the variable is no longer...
Hello my code goes like this:
char* pszLogStr = NULL;
pszLogStr = (char *)calloc(100,sizeof(char));
if (pszLogStr == NULL)
{
return(1);
}
A function can only return one value. You will have to make use of pointers .
Function call:
//Pass the address of the variables
var_reset ( &x, &y);
//Declare pointers to read thee...
Hello,
I need to write a function such that it frees all the pointers that I allocate.My code looks like this:
int someFunction()
{
//Allocating pointers.
szTemp1 = calloc(10,...
Thanks so much.
To reiterate ,
Please clarify this one last question. And thanks so much guys for all the help.
This is what I have tried. Please let me know if this is fine:
typedef struct
{
char Name[10];
char Address[10];
char Street[10];
char City[10];
Thanks matsp. Your suggestion sounds good. I shall try that out.
However, I have another question. As the array of structures would hold large data, I would like to free the structures of their...
Hello,
I have an application in which Data from xml is populated into structures. The structure is as below:
typedef struct
{
char Name[2][10];
Hello,
I have my application (C application ) installed on Windows Server 2003 . I would like to remotely call this application using a bat script from another Windows box. How can I achieve this ?
Yeah the problem was indeed with memset. After correction it is working fine now.Thanks everyone.
However, one doubt I still have is , when I executed the same code in main, it worked fine. But in...
Hello,
I am writing a simple function which removes non numeric characters in a string. Here I use a char pointer by allocating memory to it. However, when I try to free the allocated memory, the...
Hello,
Currently, my application in C is connecting to SQLserver 2000 using the DB library for C provided with SQL Server 2000. I now need to upgrade my application to connect to SQL server 2005....
Thanks mike_g for the help.
neandrake,
This is not the actual XML I am working on. I just posted this for it to look simple. The basic idea I needed , was to process similar set of tags that...
I have a problem in handling pointers to structures:
I have an XML as below:
<ROOTNODE>
<NAME>
<ADDRESS>
<PHONE>
<EMAIL>
<DATE>
Thanks guys for the help.
Codeplug, I very well acknowledge the fact that it is an invalid XML. But I am in no position to go back to the Vendor of the XML file for correction. So I was looking...
Any suggestions on how to fix the file ? I cannot make out what encoding is used in the XML file. Is there a way to convert the XML file to a standard encoding, say utf-8 without knowing what the...
Hi,
I am trying to parse an XML file using Libxml2 parser. When I am parsing the file, I get the following exception:
parser error : Input is not proper UTF-8, indicate encoding !
Bytes:...