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...
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...
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...
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...
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 "123"...
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...
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...
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
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...
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...
Hi:
What library(s) need to be linked in order to avoid
LNK2019 unresolved external symbol "void_stdcall _com_issue_error(long)"
LNK2019 unresolved external symbol "unsigned short * _stdcall _com_util::ConvertStringToBSTR(char const *)"
LNK2019 unresolved external symbol...
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.