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...
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...
TRegistry *Path;<br><br>Path=new TRegistry;<br>Path->RootKey=HKEY_LOCAL_MACHINE; // Or other Root key<br>Path->OpenKey("\\Software\\MySoftware",true); // Open or create<br><br>// To assure you have a value :<br>if...
A simple method is assign a char to a int :<br><br>char test;<br>int AsciiOfTest;<br><br>cin >> test<br>AsciiOfTest=(int)test; /* (int) to avoid a warning */<br>cout << "The ascii code is:" << AsciiOfTest; <p>Ferran Casarramona<br><a href=mailto: >...
No, 'b' is assigned 90. I have inspected the assembler code and I think I have found the solution:<br><br> Borland and Microsoft compilers generate the same code :<br><br>c=a*(3000.0/2500.0);<br>0040144B DD 05 28 51 41...
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= >...
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...
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.