I am attempting to write to a special serial device that requires one I/O to be sent for both reads and writes. The device receives a packet of information, like what would be sent on a WriteFile, and then expects to fill in a packet of data and return it like ReadFile.
Neither readfile or writefile will work, since write only sends packets and reads only retrieve them. The device will not operate with two IOs, as in a writefile/readfile sequence.
Does anyone know of an API call I can make to accomplish this? DeviceIOControl allows for both input and output packets, but I cannot find an IOCTL that implies it will do this.
What you are describing sounds like the device and application would have to access the same memory. I am not sure that makes any sense if you are using a serial port for communications. Did I miss something?
"What classes are you using ? You shouldn't call stuff if you have no idea what it does"Christian Grausin the C# forum
I want to give password protection to one of my screens. I am calling this do while loop in the initinstance of that screen the problem is now if i press cancel button then the password dialog box should go but its not going and if its going then it opens my screen.
AfxMessageBox("Invalid Password ");
this progream must show me all the possible shuffled randomisation....but it only displays one result...i tried many ways but still doest work..isit anything with my code...check for me...plz let me know if there is any solution for this as soon as possible..thank u..
Imaging you have a dice with 100 sides each labeled with a number. If you want to make a list of all the numbers how do you proceed? One way would be keep rolling the dice and if the number you roll is not on your list you add it. This is very inefficient and non-deterministic however. A simper way would be just to inspect every side. This is similar to the problem you’re having. Using a random shuffle in a loop is not a good way to get every permutation of a sequence: although eventually it will product every combination.
Hey all im making a game for school on MFC and im having trouble making it so when I press W,A,S, or D it will move my character... I know how to make him move if I press the arrow keys (previous game):
case VK_DOWN: //IF DOWN BUTTON IS PUSHED
I have already tried VK_A, any help would be appreciated!