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. adyrotaru

    Convert a numeric value to a CString.

    Use CString::Format(...) method
  2. adyrotaru

    Double vs Float

    Lim, I do not blame printf function, which works fine. As I pointed out, the difference consists between internal reprezentation of the two real number types. Of course, you gave a more detailed answer which I admit I didn't know, but because printf function is really expects a double value for...
  3. adyrotaru

    Truncatng

    Do like this: #include <stdio.h> #include <string.h> #include <memory.h> #define WHOLE_LNG 60 //the length of the whole string #define PART1_LNG 30 //the lenght of first part #define PART2_LNG 30 //the lenght of second part #define DELIMIT_SPACE 2 //indicates which space is considered...
  4. adyrotaru

    Binary Rotation

    Now, that you really wanted to know how rotation is done, i'll give you a reference: http://www.penguin.cz/~literakl/intel/intel.html which is the main page with Intel x86 Instruction Set and specifically http://www.penguin.cz/~literakl/intel/r.html#ROL which is the exact instruction that...
  5. adyrotaru

    Double vs Float

    The thing is simple: When you use &quot;%f&quot; format, printf function expects a double value, not float. As ShowLine said above, float values are 32 bits long while doubles need 64 bits. This leads to a misinterpretation of float values. Good luck!
  6. adyrotaru

    Static class

    Mai Nosferatu, below the input text box used to post messages there is a link named &quot;Emoticons/Smileys&quot;. BTW: let me know if you succeeded with your singleton class. Picard Out B-)
  7. adyrotaru

    prevent from getting Window Handle

    Please let me know if you succeeded.
  8. adyrotaru

    prevent from getting Window Handle

    Look, I found the entire article here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnmgmt/html/msdn_hooks32.asp
  9. adyrotaru

    prevent from getting Window Handle

    Martin, Search MSDN for words &quot;hook win32&quot;. If you haven't yet installed this library, you can find the online version here: <a href=&quot;http://msdn.microsoft.com/&quot;>MSDN</a> If you still can't find how enough information, give your mail address and I'll do some copy/paste 4 u...
  10. adyrotaru

    Verifying username and password

    I think I found a useful article in MSDN. I didn't check it very close... I hope will help. HOWTO: Validate User Credentials on Microsoft WinNT and Win95 -------------------------------------------------------------------------------- The information in this article applies to: Microsoft...
  11. adyrotaru

    prevent from getting Window Handle

    So, I see two ways to prevent situations like this, but each way is very complex, needs close attention and I wouldn't implement them LOL. But if you really need to do this you have to 1. hook the functions that return a handle to a window (including WindowFromPoint ;-)), or 2. if you want to...
  12. adyrotaru

    Static class

    Hi salut! I think this should help you. http://www.codeguru.com/cpp_mfc/leakfree_singleton.shtml Good luck!

Part and Inventory Search

Back
Top