Salem, xwb,
I'm writing an interface to a programmable logic controller that sits in a slot on the pci bus of a pc. At it has to maintain a safety factor above and beyond that provided by a PC it has a seperate power supply (also plugged into a PCI slot). As such, it has a relatively...
Hello all,
A relatively simple question I hope. I would like to convert a structure to a byte array, I thought the best way to do it would be by either incrementing a byte pointer for the start of the struct and writing it in, within a loop.
Am I barking up the wrong tree? Is there a...
Hi drewdaman,
Yes, I considereed using events. The problem is that I'm altering code that was originally used to send this information via ethernet. As such I have to stick to the original architecture, which uses critical sections (without duplicating them as I questioned here). The code is...
Good Morning (afternoon/evening) All,
I am writing some code that explicitly accesses a piece of hardware on the PCI slot. This hardware can only be written to/ read from by one function/process/thread at a time.
Due to the complexity of the program, I can't really put all the read and...
while (ReadyCheck(hSmx) == aCount);
can I do this? I want the program flow to halt, repeatedly calling ReadyCheck() until it returns a value equal to aCount, ie, same functionality as:
while (true)
{
i = ReadyCheck(hSmx);
if (i == aCount)
break;
}
I ask because I want to keep my...
Hello again everyone,
I need to write a hex value (0xA0A0) to a variable (int I suppose) but I'm not quite sure how to accomplish this. Does anyone have a suggestion?
Thanks
Mark
Thanks for the help! I have it working now. It might just be me but I couldn't find such a succint explanation on the web. Prior knowledge is always assumed in this world!
Thanks again...
Mark
Hello all,
Simple question for you I guess. I have a header file, a dll and a library file (all supplied by a third party) that I want to include and use in my code. How do I do it? I'm new to it (can you tell?) so a dummies guide would be much appreciated.
Cheers
Mark
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.