Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. MarkLaz

    Struct to Byte array

    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...
  2. MarkLaz

    Struct to Byte array

    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...
  3. MarkLaz

    Critical Sections....

    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...
  4. MarkLaz

    Critical Sections....

    Thanks both for your input. ArkM I think has provided what I need, but both opinions are appreciated! Cheers... Mark
  5. MarkLaz

    Critical Sections....

    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...
  6. MarkLaz

    While loop, Y or N answer...

    Cheers!
  7. MarkLaz

    While loop, Y or N answer...

    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...
  8. MarkLaz

    Structure...

    Hello all, Can I put a structure in a header file (as in, for use in main body of code, but to keep things tidy)? Cheers....
  9. MarkLaz

    Writing a hex value to a variable

    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
  10. MarkLaz

    DLL

    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
  11. MarkLaz

    DLL

    Does the header need to be anywhere in particulare on the system?
  12. MarkLaz

    DLL

    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

Part and Inventory Search

Back
Top