is there any code in vb6 were i can say it is fifo(fisrt in first) for ex. i have 1 product but it has 3 different date issue and date of expiration how can i determine which one that i am going to out !is there any code for that?

Member Avatar
+0 forum 0

Hi, I an reading a txt file line by line and putting it in to a Queue<string> q = new Queue<string>(); when i execute the program I get a Argument Exception 'Source array was not long enough. Check srcIndex and length, and the array's lower bounds.' how do i handle it i need to implement the program to that the txt reads and put it into a FIFO queue. how to i do this? appreicate a reply thnks

Member Avatar
Member Avatar
+0 forum 16

trying to create fifo that can read and write. but some reason its not going below "O_RDONLY" line. any thoughts? char *fifo_name = "fifo"; #define 0666 int main() { int fd1; int fd2; //create fifo if(mkfifo(fifo_name,FIFO_MODE) == -1) { exit(1); } //open fifo for read if((fd1 = open(fifo_name, O_RDONLY)) == -1) { exit(1); } //------------------------------------------------------------------------------ it doesnt come here //open fifo for write if((fd2 = open(fifo_name, O_WRONLY)) == -1) { exit(1); } }

Member Avatar
Member Avatar
+0 forum 1

hey guys.. I'm trying to create a bunch of children where the parent creates child1, and child1 creates child2 and the parent creates child3 using fork()... and I'm supposed to pass a message through using a pipe, but when I pass from child2 to child3 I have to use a fifo file.. all are working except for the fifo file... so all of them print fine except for child3: [B]Enter String: kaka I am parent. Parent: kaka I am child1. Child1: kaka I am child2. Child2: kaka I am child3. Child3:[/B] [CODE] #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <stdlib.h> …

Member Avatar
+0 forum 0

Hi, I was wanting to write a (ba)sh script to allow me to wait for the detection of a new USB device, and when that device is detected, execute some commands. The scripts are intending to be working on the principle that whenever I plug in a usb device a message containing the words "new" and "USB" is appended to /var/log/messages. I want this program to be running in the background of my computer at all times, so I want one that will take as little cpu power as it can when there is nothing for it to do. I …

Member Avatar
Member Avatar
+0 forum 2

The End.