﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Bluebit Software Support Forum / Technical Support and Help / General </title><generator>InstantForum.NET v4.1.4</generator><description>Bluebit Software Support Forum</description><link>http://www.bluebit.gr/forum/</link><webMaster>support@bluebit.gr</webMaster><lastBuildDate>Wed, 08 Feb 2012 06:25:51 GMT</lastBuildDate><ttl>20</ttl><item><title>C++ Builder 6 - Printing</title><link>http://www.bluebit.gr/forum/Topic95-6-1.aspx</link><description>How to print using codes in C++ Builder?</description><pubDate>Thu, 06 Apr 2006 06:52:55 GMT</pubDate><dc:creator>Rowin</dc:creator></item><item><title>C++ Builder 6 - Password</title><link>http://www.bluebit.gr/forum/Topic83-6-1.aspx</link><description>When using a datamodule and a database (Tdatabase), how can I retrieve the password that I set in the login prompt? I can retrive the username by:ShowMessage(DataModule1-&amp;gt;DatabaseProjectTracking-&amp;gt;Params-&amp;gt;Values["User Name"]);But for the password it's not working.</description><pubDate>Tue, 24 Jan 2006 08:46:15 GMT</pubDate><dc:creator>Rowin</dc:creator></item><item><title>C++ Builder 6 - Getting a value from a DBGrid</title><link>http://www.bluebit.gr/forum/Topic105-6-1.aspx</link><description>Hi,How can I do the following?I have a DBGrid and I need to get values that grid. When I click on a cell in the grid, I need to get all values in the selected row.If for example there are 3 columns named ID, name and age.If I click a cell in the grid, the value for the Id is displayed in a textbox, the value for name in another one and also the value for age in another textbox.That is I need to display individual column values for the selected row in a text box for each one.Can anyone help me?Thanks.Rowin</description><pubDate>Thu, 01 Jun 2006 10:10:11 GMT</pubDate><dc:creator>Rowin</dc:creator></item><item><title>C++ Builder 6 and Crystal Report</title><link>http://www.bluebit.gr/forum/Topic97-6-1.aspx</link><description>Hi,I have an C++ Builder application. I want to print a report with the values appearing in my application. I get these values from my database. I already have a crystal report format of how the report should be printed.How to do this?Kind Regards,Rowin</description><pubDate>Wed, 26 Apr 2006 04:36:27 GMT</pubDate><dc:creator>Rowin</dc:creator></item><item><title>C++ Builder 6 - DBGrid</title><link>http://www.bluebit.gr/forum/Topic96-6-1.aspx</link><description>Hi,How to count the number of rows in a DBGrid? There are not such methods or properties as RowCount. Kind Regards, Rowin</description><pubDate>Thu, 13 Apr 2006 05:47:10 GMT</pubDate><dc:creator>Rowin</dc:creator></item><item><title>C++ Builder 6 - Opening a File</title><link>http://www.bluebit.gr/forum/Topic94-6-1.aspx</link><description>How to open a file (for reading) in C++ Builder using codes?</description><pubDate>Mon, 03 Apr 2006 03:17:57 GMT</pubDate><dc:creator>Rowin</dc:creator></item><item><title>C++ Builder 6 - controlling the main form</title><link>http://www.bluebit.gr/forum/Topic85-6-1.aspx</link><description>Hi,Can anybody tell me how to control the main form. I want to make the main form appear depending on a check that i am going to make. For example when running the exe, i need to check first if the username and password is already present in the Registry. If it is present then i wont show the login. If the login is not correct, i shouldn't get the main form but the login again.In which event of the main form should i do this check so as to make the main form appear depending on the result of this check?</description><pubDate>Mon, 30 Jan 2006 07:17:41 GMT</pubDate><dc:creator>Rowin</dc:creator></item><item><title>C++ Builder 6 - Datamodule</title><link>http://www.bluebit.gr/forum/Topic81-6-1.aspx</link><description>When using a datamodule and a database (Tdatabase) how can I set the User Name and Password by codes?Eg: DataModule-&amp;gt;Database-&amp;gt;.......Rowin</description><pubDate>Thu, 19 Jan 2006 07:39:16 GMT</pubDate><dc:creator>Rowin</dc:creator></item><item><title>C++ Builder 6 - read\write to registry</title><link>http://www.bluebit.gr/forum/Topic80-6-1.aspx</link><description>How to read\write to registry using codes? Rowin</description><pubDate>Wed, 18 Jan 2006 08:51:09 GMT</pubDate><dc:creator>Rowin</dc:creator></item><item><title>C++ Builder 6</title><link>http://www.bluebit.gr/forum/Topic78-6-1.aspx</link><description>Using C++ Builder 6, how do i get the login name and password that I have set to create a DSN.(I must do this using codes)</description><pubDate>Thu, 12 Jan 2006 05:10:23 GMT</pubDate><dc:creator>Rowin</dc:creator></item><item><title>How to give Focus in form using DLL inside other D</title><link>http://www.bluebit.gr/forum/Topic76-6-1.aspx</link><description>i am using a ddl to call other dll to show a form, that´s ok.But the problem is, i can not give the focus to the form, if there are more forms or programs opened the form that i call stay under the others , i want it to apears in front of all the others things opened,i have already used ShowModal but it does not work, can you help me, i am using C++ Builder(Borland) in windows 2000.tks</description><pubDate>Mon, 12 Dec 2005 06:43:55 GMT</pubDate><dc:creator>horacyjr</dc:creator></item><item><title>A High Resolution Performance Timer</title><link>http://www.bluebit.gr/forum/Topic58-6-1.aspx</link><description>We publish here some code for a high resolution performance&lt;BR&gt;timer that can be used to measure the performance of your code&lt;BR&gt;to nanosecond accuracy.&lt;BR&gt;&lt;BR&gt;The code is beased on this article [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/scalenethowto09.asp[/url]&lt;BR&gt;but it has been modified so that the timer can be started and&lt;BR&gt;stopped many times and its Duration property will return the&lt;BR&gt;cumulative elapsed time that the timer has been running.&lt;BR&gt;&lt;BR&gt;Normally you will use the PerformanceTimer class as follows:&lt;BR&gt;&lt;UL&gt;&lt;LI&gt;Create a new instance of the &lt;B&gt;PerformanceTimer&lt;/B&gt; class.&lt;/LI&gt;&lt;LI&gt;Call the &lt;B&gt;StartTimer&lt;/B&gt; method.&lt;/LI&gt;&lt;LI&gt;Execute any code you need to measure its duration in time.&lt;/LI&gt;&lt;LI&gt;Call the &lt;B&gt;StopTimer&lt;/B&gt; method.&lt;/LI&gt;&lt;LI&gt;Read the &lt;B&gt;Duration&lt;/B&gt; property to get the cumulative elapsed time the timer has been running.&lt;BR&gt;You may also read this property while the timer is running.&lt;/LI&gt;&lt;LI&gt;Call the &lt;B&gt;Reset&lt;/B&gt; method to set the Duration property to 0.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;[code]using System;&lt;BR&gt;using System.Runtime.InteropServices;&lt;/P&gt;&lt;P&gt;namespace Bluebit.Utility&lt;BR&gt;{&lt;BR&gt;    /// &amp;lt;summary&amp;gt;The %PerformanceTimer% class can be used to measure intervals of time.&amp;lt;/summary&amp;gt;&lt;BR&gt;    /// &amp;lt;remarks&amp;gt;&lt;BR&gt;    /// &amp;lt;para&amp;gt;Normally you will use the &amp;lt;strong&amp;gt;PerformanceTimer&amp;lt;/strong&amp;gt; class is as&lt;BR&gt;    /// follows:&amp;lt;/para&amp;gt;&lt;BR&gt;    /// &amp;lt;list type="bullet"&amp;gt;&lt;BR&gt;    /// &amp;lt;item&amp;gt;Create a new instance of the %PerformanceTimer% class.&amp;lt;/item&amp;gt;&lt;BR&gt;    /// &amp;lt;item&amp;gt;Call the&lt;BR&gt;    /// &amp;lt;a href="Bluebit.Learning~Bluebit.Utility.PerformanceTimer~StartTimer.html"&amp;gt;StartTimer&amp;lt;/a&amp;gt;&lt;BR&gt;    /// method.&amp;lt;/item&amp;gt;&lt;BR&gt;    /// &amp;lt;item&amp;gt;Execute any code you need to measure its duration in time.&amp;lt;/item&amp;gt;&lt;BR&gt;    /// &amp;lt;item&amp;gt;Call the&lt;BR&gt;    /// &amp;lt;a href="Bluebit.Learning~Bluebit.Utility.PerformanceTimer~StopTimer.html"&amp;gt;StopTimer&amp;lt;/a&amp;gt;&lt;BR&gt;    /// method.&amp;lt;/item&amp;gt;&lt;BR&gt;    /// &amp;lt;item&amp;gt;Read the&lt;BR&gt;    /// &amp;lt;a href="Bluebit.Learning~Bluebit.Utility.PerformanceTimer~Duration.html"&amp;gt;Duration&amp;lt;/a&amp;gt;&lt;BR&gt;    /// property to get the cumulative elapsed time the timer has been running. You may&lt;BR&gt;    /// also read this property while the timer is running.&amp;lt;/item&amp;gt;&lt;BR&gt;    /// &amp;lt;item&amp;gt;Call the&lt;BR&gt;    /// &amp;lt;a href="Bluebit.Learning~Bluebit.Utility.PerformanceTimer~Reset.html"&amp;gt;Reset&amp;lt;/a&amp;gt;&lt;BR&gt;    /// method to set the&lt;BR&gt;    /// &amp;lt;a href="Bluebit.Learning~Bluebit.Utility.PerformanceTimer~Duration.html"&amp;gt;Duration&amp;lt;/a&amp;gt;&lt;BR&gt;    /// property to 0.&amp;lt;/item&amp;gt;&lt;BR&gt;    /// &amp;lt;/list&amp;gt;&lt;BR&gt;    /// &amp;lt;/remarks&amp;gt;&lt;BR&gt;    public class PerformanceTimer&lt;BR&gt;    {&lt;BR&gt;        ///////////////////// &lt;BR&gt;        #region PRIVATE FIELDS&lt;BR&gt;        private long _freq; // internal performance-counter frequency, in counts per second&lt;BR&gt;        private long _bias; // the time it takes to execute a StartTimer and a StopTimer command.&lt;BR&gt;        private long _start; // last time the timer was started&lt;BR&gt;        private long _stop; // last time the timer was stopped&lt;BR&gt;        private long _duration; // cumulative elapsed time.&lt;BR&gt;        private bool _running; // current state of the timer. &lt;BR&gt;        #endregion&lt;BR&gt;        /////////////////////&lt;BR&gt;        #region EXTERNAL DECLARATIONS&lt;BR&gt;        [DllImport("kernel32.dll")]&lt;BR&gt;        extern static short QueryPerformanceCounter(ref long x);&lt;BR&gt;        [DllImport("kernel32.dll")]&lt;BR&gt;        extern static short QueryPerformanceFrequency(ref long x);&lt;BR&gt;        #endregion&lt;BR&gt;        /////////////////////&lt;BR&gt;        #region CONSTRUCTOR&lt;BR&gt;        /// &amp;lt;summary&amp;gt;Creates a new instance of the %PerformanceTimer% class&amp;lt;/summary&amp;gt;&lt;BR&gt;        public PerformanceTimer()&lt;BR&gt;        {&lt;BR&gt;            QueryPerformanceFrequency(ref _freq);&lt;BR&gt;            if (_freq == 0)&lt;BR&gt;                throw new ApplicationException("The installed hardware does not support a high-resolution performance counter.");&lt;/P&gt;&lt;P&gt;            // calculate the _bias; the first result maybe inaccurate&lt;BR&gt;            StartTimer();&lt;BR&gt;            StopTimer();&lt;BR&gt;            StartTimer();&lt;BR&gt;            StopTimer();&lt;BR&gt;            _bias = _stop - _start;&lt;BR&gt;            _duration = 0;&lt;BR&gt;        }&lt;BR&gt;        #endregion&lt;BR&gt;        /////////////////////&lt;BR&gt;        #region PUBLIC METHODS&lt;BR&gt;        /// &amp;lt;summary&amp;gt;Starts the timer.&amp;lt;/summary&amp;gt;&lt;BR&gt;        public void StartTimer()&lt;BR&gt;        {&lt;BR&gt;            if (!_running)&lt;BR&gt;            {&lt;BR&gt;                _running = true;&lt;BR&gt;                QueryPerformanceCounter(ref _start);&lt;BR&gt;            }&lt;BR&gt;        }&lt;/P&gt;&lt;P&gt;        /// &amp;lt;summary&amp;gt;&lt;BR&gt;        /// Stops the timer.&lt;BR&gt;        /// &amp;lt;/summary&amp;gt;&lt;BR&gt;        public void StopTimer()&lt;BR&gt;        {&lt;BR&gt;            if (_running)&lt;BR&gt;            {&lt;BR&gt;                QueryPerformanceCounter(ref _stop);&lt;BR&gt;                long d = _stop - _start - _bias;&lt;BR&gt;                d = (d &amp;gt; 0) ? d : 0;&lt;BR&gt;                _duration += d;&lt;BR&gt;                _running = false;&lt;BR&gt;            }&lt;BR&gt;        }&lt;BR&gt;        /// &amp;lt;summary&amp;gt;&lt;BR&gt;        /// Resets the timer.&lt;BR&gt;        /// &amp;lt;/summary&amp;gt;&lt;BR&gt;        /// &amp;lt;remarks&amp;gt;&lt;BR&gt;        /// The %Reset% method sets the %Duration% of the timer to zero. If the timer is&lt;BR&gt;        /// running it is stopped.&lt;BR&gt;        /// &amp;lt;/remarks&amp;gt;&lt;BR&gt;        public void Reset()&lt;BR&gt;        {&lt;BR&gt;            if (_running) StopTimer();&lt;BR&gt;            _duration = 0;&lt;BR&gt;        }&lt;/P&gt;&lt;P&gt;        #endregion&lt;BR&gt;        /////////////////////&lt;BR&gt;        #region PUBLIC PROPERTIES&lt;BR&gt;        /// &amp;lt;summary&amp;gt;Gets the cumulative elapsed time the timer has been running.&amp;lt;/summary&amp;gt;&lt;BR&gt;        /// &amp;lt;value&amp;gt;&lt;BR&gt;        /// A %System.Double% representing the number of seconds the timer has been&lt;BR&gt;        /// running.&lt;BR&gt;        /// &amp;lt;/value&amp;gt;&lt;BR&gt;        public double Duration&lt;BR&gt;        {&lt;BR&gt;            get&lt;BR&gt;            {&lt;BR&gt;                if (_running)&lt;BR&gt;                {&lt;BR&gt;                    QueryPerformanceCounter(ref _stop);&lt;BR&gt;                    long d = _stop - _start - _bias;&lt;BR&gt;                    d = (d &amp;gt; 0) ? d : 0;&lt;BR&gt;                    return (double)(_duration + d) / (double)_freq;&lt;BR&gt;                }&lt;/P&gt;&lt;P&gt;                return (double)_duration / (double)_freq;&lt;BR&gt;            }&lt;BR&gt;        }&lt;BR&gt;        /// &amp;lt;summary&amp;gt;&lt;BR&gt;        /// Gets the current performance-counter frequency, in counts per second.&lt;BR&gt;        /// &amp;lt;/summary&amp;gt;&lt;BR&gt;        public long Frequency&lt;BR&gt;        {&lt;BR&gt;            get { return _freq; }&lt;BR&gt;        }&lt;/P&gt;&lt;P&gt;        /// &amp;lt;summary&amp;gt;&lt;BR&gt;        /// Gets the current state of the timer.&lt;BR&gt;        /// &amp;lt;/summary&amp;gt;&lt;BR&gt;        /// &amp;lt;value&amp;gt;&lt;BR&gt;        /// &amp;lt;strong&amp;gt;true&amp;lt;/strong&amp;gt; if timer is running, &amp;lt;strong&amp;gt;false&amp;lt;/strong&amp;gt; if timer is&lt;BR&gt;        /// stopped.&lt;BR&gt;        /// &amp;lt;/value&amp;gt;&lt;BR&gt;        /// &amp;lt;remarks&amp;gt;&lt;BR&gt;        /// The %StartTimer% method sets this property to &amp;lt;strong&amp;gt;true&amp;lt;/strong&amp;gt; whereas the&lt;BR&gt;        /// %StopTimer% method sets it to &amp;lt;strong&amp;gt;false&amp;lt;/strong&amp;gt;&lt;BR&gt;        /// &amp;lt;/remarks&amp;gt;&lt;BR&gt;        public bool IsRunning&lt;BR&gt;        {&lt;BR&gt;            get { return _running; }&lt;BR&gt;        }&lt;BR&gt;        #endregion&lt;BR&gt;        /////////////////////&lt;BR&gt;    }&lt;BR&gt;}[/code]</description><pubDate>Mon, 02 May 2005 11:06:44 GMT</pubDate><dc:creator>Trifon</dc:creator></item><item><title>c++ builder 6.0 + mysql</title><link>http://www.bluebit.gr/forum/Topic56-6-1.aspx</link><description>Hello,Anybody knows how can I connect a MySql DB in builder c++ 6.0 with  ODBC connection?Where I can find information about this?Thanks in advance,   angausaita</description><pubDate>Tue, 12 Apr 2005 04:26:15 GMT</pubDate><dc:creator>angausaita</dc:creator></item></channel></rss>
