Search:

Type: Posts; User: dunxton

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,384

    Tracking Multiple Processes in C Application

    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...
  2. Replies
    3
    Views
    4,099

    Thanks. But I have another question. Suppose I...

    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...
  3. Replies
    3
    Views
    4,099

    how sprintf works ?

    Hello my code goes like this:



    char* pszLogStr = NULL;
    pszLogStr = (char *)calloc(100,sizeof(char));
    if (pszLogStr == NULL)
    {
    return(1);
    }
  4. Replies
    19
    Views
    23,298

    A function can only return one value. You will...

    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...
  5. Replies
    2
    Views
    1,230

    Free the pointer

    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,...
  6. Replies
    13
    Views
    1,288

    Thanks so much.

    Thanks so much.
  7. Replies
    13
    Views
    1,288

    To reiterate , Please clarify this one...

    To reiterate ,



    Please clarify this one last question. And thanks so much guys for all the help.
  8. Replies
    13
    Views
    1,288

    This is what I have tried. Please let me know if...

    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];
  9. Replies
    13
    Views
    1,288

    Thanks matsp. Your suggestion sounds good. I...

    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...
  10. Replies
    13
    Views
    1,288

    Dynamic Structures size

    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];
  11. Replies
    3
    Views
    1,827

    Remote Program Invocation on Windows

    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 ?
  12. Replies
    7
    Views
    1,541

    Yeah the problem was indeed with memset. After...

    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...
  13. Replies
    7
    Views
    1,541

    Error with 'free(pointer)'

    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...
  14. Replies
    0
    Views
    2,874

    SQL Server 2005 using C

    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....
  15. Replies
    8
    Views
    6,013

    Thanks mike_g for the help. neandrake, This...

    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...
  16. Replies
    8
    Views
    6,013

    Generic Pointers to structures

    I have a problem in handling pointers to structures:

    I have an XML as below:
    <ROOTNODE>
    <NAME>
    <ADDRESS>
    <PHONE>
    <EMAIL>
    <DATE>
  17. Replies
    13
    Views
    3,097

    Thanks guys for the help. Codeplug, I very...

    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...
  18. Replies
    13
    Views
    3,097

    Any suggestions on how to fix the file ? I...

    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...
  19. Replies
    13
    Views
    3,097

    Exception Handling to continue execution

    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:...
Results 1 to 19 of 19