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 Chriss Miller 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. Ferran

    Includes to use TRegistry class

    You need to put: #include <vcl/registry.hpp> on your code in order to use TRegistry class.
  2. Ferran

    Image lists

    Hello aggro,<br><br>In order to draw a bitmap the best choice is put a TImage object inside the form. Then you can use the following code...
  3. Ferran

    How to read/write the registry?

    The best way to access to the registry is using TRegistry class. TRegistry *Path; Registry has "Keys" and "Values". Keys are "like" directories and Values are "like" files. With TRegistry class you can access to one Key setting the "RootKey" and then Open a key below it. Path=new...
  4. Ferran

    How to read/write the registry?

    The best way to access to the registry is using TRegistry class. TRegistry *Path; Registry has "Keys" and "Values". Keys are "like" directories and Values are "like" files. With TRegistry class you can access to one Key setting the "RootKey" and then Open a key below it. Path=new...
  5. Ferran

    How to write/read the Registry

    TRegistry *Path;<br><br>Path=new TRegistry;<br>Path-&gt;RootKey=HKEY_LOCAL_MACHINE; // Or other Root key<br>Path-&gt;OpenKey(&quot;\\Software\\MySoftware&quot;,true);&nbsp;&nbsp;// Open or create<br><br>// To assure you have a value :<br>if...
  6. Ferran

    How to write/read the Registry

    You can use the TRegistry class. <p>Ferran Casarramona<br><a href=mailto: > </a><br><a href= > </a><br>
  7. Ferran

    Getting the ascii code for a string of text?

    A simple method is assign a char to a int :<br><br>char test;<br>int AsciiOfTest;<br><br>cin &gt;&gt; test<br>AsciiOfTest=(int)test;&nbsp;&nbsp;/* (int) to avoid a warning */<br>cout &lt;&lt; &quot;The ascii code is:&quot; &lt;&lt; AsciiOfTest; <p>Ferran Casarramona<br><a href=mailto: >...
  8. Ferran

    Math bug in Borland compilers.

    No, 'b' is assigned 90. I have inspected the assembler code and I think I have found the solution:<br><br>&nbsp;Borland and Microsoft compilers generate the same code :<br><br>c=a*(3000.0/2500.0);<br>0040144B DD 05 28 51 41...
  9. Ferran

    Math bug in Borland compilers.

    Is more than a storage method problem. The following example return 90.<br><br>int Bug()<br>{<br>double a,b;<br>int c;<br><br>a=75.0;<br>b=a*(3000.0/2500.0);<br>c=b;<br><br>return c;<br>}<br><br>Th only diference is the usage of 'b'. <p>Ferran Casarramona<br><a href=mailto: > </a><br><a href= >...
  10. Ferran

    Math bug in Borland compilers.

    Hello,<br><br>Some months ago I found a bug (I think) in all Borland compilers I tried.<br><br>Consider this function :<br><br>int Bug()<br>{<br>double a;<br>int c;<br><br>a=75.0;<br>c=a*(3000.0/2500.0);<br><br>return c;<br>}<br><br>You can expect than this function returns 90, but it returns...

Part and Inventory Search

Back
Top