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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by drLect0r

  1. drLect0r

    ???TCanvas Background Color

    Hi! Background color of what? (in which case ?) Give an example,please. regards.
  2. drLect0r

    ???TCanvas Background Color

    Image1->Canvas->Brush->Color = clBlue; regards.
  3. drLect0r

    Parsing a string

    My colleague Pavlo always in a hurry. Next code is really what you need. I supposed, that str is AnsiString, and it contains something like this: 2:00:00 PM //------------------------------- for(int x = 1;x <= str.Length();x++) if(str[x] == ':' || str[x] == ' ')...
  4. drLect0r

    Deleting multiple items

    very, very strange visitor... Beginner ?
  5. drLect0r

    How can I see in my program if there is not yet an instance running

    The code is case sensitive, so &quot;Test&quot; != &quot;test&quot;. To avoid this, use strcmpi(title,&quot;Test&quot;);
  6. drLect0r

    How can I see in my program if there is not yet an instance running

    I supposed, that the program name is &quot;Test&quot;, then next code will not allow to execute second instance of the program &quot;Test&quot;. //----------------------------------------------------------static int runing = 0; //----------------------------------------------------------bool...
  7. drLect0r

    Deleting multiple items

    The only way (I suppose): //-------------------------------------------------- void deleteItems() { int* sel = new int[ListBox1->Items->Count]; int j = 0; for(int k = 0;k < ListBox1->Items->Count;k++) if(ListBox1->Selected[k]) sel[j++] = k; while(j)...
  8. drLect0r

    Waiting in C++ Builder

    #include <dos.h> long delay = 500; // 5 sec.,delay in hundred of second struct time oldt; struct time newt; gettime(&oldt); for(;;) { gettime(&newt); long t = (newt.ti_hund-oldt.ti_hund) + 100*(newt.ti_sec - oldt.ti_sec) + 6000*(newt.ti_min - oldt.ti_min)...
  9. drLect0r

    how could i include thread programming in c++

    There is a good example of using TThread in &quot;BCB Examples&quot;... Find and use it!
  10. drLect0r

    Global Variables - C++ Builder Newbie

    If you have several variables relating to one conception (object), the best way is to use a class.
  11. drLect0r

    How to eliminate linker error: Unresolved external... referenced in...

    Try to use Project->Build All Projects (!!!) P.S. It's time to install BCB4 !
  12. drLect0r

    Global Variables - C++ Builder Newbie

    another example: var.h: //--------------------------- #ifndef __MY_VAR__ // It's very important! #define __MY_VAR__ int myFirstVar; // etc // etc #endif //--------------------------- other forms: man.cpp: // for example //--------------------------- #include &quot;var.h&quot; // the body...
  13. drLect0r

    WM_ENDSESSION and WM_QUERYENDSESSION problem

    Remove all references to &quot;EndSession&quot;. EndSession is called after QueryEndSession. Then It must work! dr. S.Lector.
  14. drLect0r

    WM_ENDSESSION and WM_QUERYENDSESSION problem

    in xxxx.h: //---------------------------------------------------------- BEGIN_MESSAGE_MAP MESSAGE_HANDLER (WM_ENDSESSION,TWMEndSession,WndProc); END_MESSAGE_MAP(TForm); //---------------------------------------------------------- in xxxx.cpp...
  15. drLect0r

    Help Files--Content Files

    Use Visual Help and you will not have any problems.

Part and Inventory Search

Back
Top