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 SkipVought 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. DougCa

    Help Please I am Desperate-- Link Issue w/_bstr_t

    Yes, I solved it as stated. Sorry and good luck.
  2. DougCa

    Hi: I have this function, conv

    Hi: I have this function, converting the ASCII value in to a corresponding HEX and then doing a bitshift by 4. It does octal. iReturnValue = (iReturnValue <<= 4) | ( (cmd[I] % '0') - 7 * (cmd[I] / 'A') ); if I want to change this to convert from to an integer from hexascii what needs to be...
  3. DougCa

    Qick Conversion Question -- Please Help

    Hi: I have this function, converting the ASCII value in to a corresponding HEX and then doing a bitshift by 4. It does octal. iReturnValue = (iReturnValue <<= 4) | ( (cmd[I] % '0') - 7 * (cmd[I] / 'A') ); if I want to change this to convert from to an integer from hexascii what needs to be...
  4. DougCa

    Need function to convert char string to int -- Help Please -- Thanks

    Hi all: I need a function to do the following. To take a char buffer of 14 octal bytes. These byes represent ASCII characters. Take the buffer and convert the last four bytes to an integer (bytes 10,11,12 and 13). The ETX (\003) is byte 14 on the end. buf2 is char buf2[14] buf2 contains...
  5. DougCa

    Need Function for Conversion to send buffer

    DougCa (TechnicalUser) Jan 8, 2003 How do I do this? Here is a function. I need to modify this to put the data into 4 char bytes, an upper set an a lower set. For example, I want the value of data if it is integer 31 to go into buf2 as four vaules on the end of prefix before the \3. See...
  6. DougCa

    Need Function -- Lost in Detail -- Please Help

    How do I do this? Here is a function. I need to modify this to put the data into 4 char bytes, an upper set an a lower set. For example, I want the value of data if it is integer 31 to go into buf2 as four vaules on the end of prefix before the \3. See below. Say the prefix is &quot;123&quot...
  7. DougCa

    Need Help Retreiving Data -- Lost in buffer reading

    Help Please!!!!! I am lost in the structures........ I am trying to get the Power On Hours of a Hard Disk into nVal as shown below. The Attributes are returned sucessfully, but I am lost tring to get the Power On Hours into nVal. Power On Hours is the ninth attribute, I think. You can check out...
  8. DougCa

    DLL Loading-- Delay in Thread

    have a thread loading a DLL and it works great except when I cold boot the machine. The DLL I am loading takes time to load the first time and it hangs up my thread. Any ideas on what I can do here? An example would be nice. I am using LoadLibrary in InitExtAgent function. Can I use a sleep...
  9. DougCa

    SMART Disk Attributes from C++ for Windows Code

    Does anyone know where I can get a copy of SMART Hard Disk C++ sample source code for Windows 2000? I need to know what to do to get at the SMART attributes for a disk drive from Windows 2000. Please point me in the right direction. Thanks, Doug Cabell
  10. DougCa

    DWORD to BSTR Conversion

    If strVal is a BString (e.g. its BSTRING &strVal) and data is a DWORD with 4 hex bytes. What is the easist way to get the 4 hex bytes in data to a decimal value in strVal? Thanks, Doug DWORD data; strVal = data; //This only gives me 2 of the hex bytes in // strVal. So I need...
  11. DougCa

    Help Please I am Desperate-- Link Issue w/_bstr_t

    Thanks for the help. I really appreciate it. Doug
  12. DougCa

    DWORD to BSTR Conversion

    If strVal is a BString (e.g. its BSTRING &strVal) and data is a DWORD with 4 hex bytes. What is the easist way to get the 4 hex bytes in data to a decimal value in strVal? Thanks, Doug DWORD data; strVal = data; //This only gives me 2 of the hex bytes in // strVal. So I need...
  13. DougCa

    Help Please I am Desperate-- Link Issue w/_bstr_t

    Hi: What library(s) need to be linked in order to avoid LNK2019 unresolved external symbol &quot;void_stdcall _com_issue_error(long)&quot; LNK2019 unresolved external symbol &quot;unsigned short * _stdcall _com_util::ConvertStringToBSTR(char const *)&quot; LNK2019 unresolved external symbol...

Part and Inventory Search

Back
Top