Hello, I have a problem and I hope somebody will solve this, because I'm getting crazy. I have to execute parallel commands from an application: e.g: to execute paralel commands like: dir & notepad.exe where &=parallel operator How can I make this, using commands like CreateProcess and system(char *) call, without creating new instances of my application ,and without using CreateThread function. I know that this is posible, but I don't know how. Thank you!
gls2ro
Posts
-
Parallel Execution -
Parse CHAR pointersHello! I'm newbie in C/ANSI programming. I have another problem: i have a char *c="word1 word2 word3"; how can I obtain the word in separate strings? This is what I want to do: char *c="word1 word2 word3"; char **words; after proccessing the string c I want to have words[0]="word1"; words[1]="word2"; words[2]="word3"; Thank you!
-
Read Write ANSI/CHello! I have another problem. I want to make 2 programs a client and a server. This programs must access the same file and read/write into it. EXAMPLE: if the client write to the file: #CLIENT 1 REQUEST the server must read this and response: #S CLIENT 1 REPLAY Now this is the problem: I want to do this in client: while (1) { read from file; if string readed containt #S CLIENT 1 { do some action Ex: write to file #RESPONSE ACCEPTED } } and I want that client to do this forever. And I want the same to do the server. Now How do I open/read/write to file? Or how to do this? Only ANSI/C code. Thank You! Bye!
-
Conversion from int to stringHELLO! PLEASE HELP ME! I'm new in C/C++ programming. And i have a problem: here is the code: char ch=fgetc(filein); char s[20]=""; Now what I want is to put in string s the value that is the ord(c). Example:if c is 'a' then I want put in s value "97". This part of my code is written in ANSI/C language. How can I do this? Thank you very much!
-
Combobox and DatabaseHello! I have a combobox with autocomplete, and I linked this combobox with data bindings to a database. Now I want that when I choose an item to automatically go to that record in database and display the information on screen. How do I make this, to go to that record in database? PLEASE HELP ME! Thank you! Bye!
-
Database Problem, PLEASE HELPHello! I have a combobox with autocomplete. This combobox is linked to a field of a database. I want to do this and I don't know how: When I choose an item of the combobox to display in a form automatically the information of that field. I've made the form and I linked the controls to database using Bindings. I use OleDb. Please help me! Thank YOU!
-
Printer pagesHello! I want to do a program that can tell me how many pages were printed in a time interval. I mean that this program once started to count automatically the pages that were printed. I have no ideea how to do this. If is someone that can help me please tell me how to do this, or what documentation I have to read/learn. Thank you!
-
date conversionHello! I have a little problem: Example: if I have 01/06/2003 and I want to add x months (example 3 months) and I want to obtain 01/09/2003 or to add days or years. How I do this thing in Visual Basic .NET 2003? Or how to convert the date to days and then to reconvert to date. Please help me! Sorry for my english! Thank you!