-
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
-
-
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.
-
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
-
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.
-
got It.....
hey dudes
thanks a lot but finally got a library for calling LDAP implicitely.... see MSDN for more details...