System() call issues

This is a discussion on System() call issues within the C++ Programming forums, part of the General Programming Boards category; I am writing a code in C++ for exploring and correlating LDAP.The point is I have been using system() command ...

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    14

    System() call issues

    I am writing a code in C++ for exploring and correlating LDAP.The point is I have been using system() command to search and bind LDAP . But the system command always invokes a command line interface which i want to avoid. Can somebody please tell me a runaround to the issue either by telling me how to avoid the pop up window or using some alternate libabries available in C++ to talk to LDAP.

    Thanks

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    7,340
    There is a FAQ about this (not specific to LDAP):

    http://faq.cprogramming.com/cgi-bin/...&id=1043284392

  3. #3
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    depends on the operating system (I have no clue what LDAP is). In Windows os you can use win32 api function CreateThread() to spawn another console process without creating a console window for it.

  4. #4
    Registered User
    Join Date
    Sep 2005
    Posts
    14
    I am sorry but can you please elaborate. I do not want to run another program but a utility through the system call...any help appreciated...
    Thanks

  5. #5
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    see MSDN explaination of CreateProcess(). Its all there. What's the difference between "another process" and a "utility"? In Windows os, a new process is created whenever a new executagle program *.exe is started. I thought that was what you meant. If that isn't the case, then CreateProcess() will not work for you.

  6. #6
    Registered User
    Join Date
    Sep 2005
    Posts
    14

    got It.....

    hey dudes

    thanks a lot but finally got a library for calling LDAP implicitely.... see MSDN for more details...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C: system call
    By Dedalus in forum C Programming
    Replies: 6
    Last Post: 06-22-2009, 09:45 AM
  2. minix system call pls help for project
    By porvas in forum Linux Programming
    Replies: 2
    Last Post: 06-14-2009, 02:40 AM
  3. temperature sensors
    By danko in forum C Programming
    Replies: 22
    Last Post: 07-10-2007, 07:26 PM
  4. Multiple types in lists, vectors or arrays.
    By megatron09 in forum C++ Programming
    Replies: 20
    Last Post: 08-31-2006, 01:54 PM
  5. exec system call
    By weedus in forum Linux Programming
    Replies: 3
    Last Post: 03-07-2002, 08:34 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21