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 wOOdy-Soft 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 classT

  1. classT

    problems with random_shuffle() in <algorithm>

    thank you.... yes, I had finally figured it out but I can't understand why there would be a version of the function (the 2 parameter one) that is essentially "not very random" - weird!
  2. classT

    problems with random_shuffle() in <algorithm>

    I have been using srand((unsigned)time(NULL)) at the beginning of main() to seed it and I'm still getting the problem. Here's the code and output: #include <cstdlib> #include <cstdio> #include <cstring> #include <ctime> #include <iostream> using namespace std; int main(void) {...
  3. classT

    problems with random_shuffle() in &lt;algorithm&gt;

    Hi all, does anybody know why random_shuffle() does not appear to be random at all. I mean, no matter how I try to &quot;seed&quot; random_shuffle() always returns the same results! Thanks in advance!
  4. classT

    Tab Controls without using MFC

    Hi, I can create a Tab Control successfully without using MFC - however, I'd like the tabs to be vertical and to the right. I've tried everything it says on MSDN but it's just not working. Has anybody worked with Tab Controls (without MFC) before? Does anyone know how I can do this? Thanks
  5. classT

    virus?

    why am i getting all this strange stuff - is there a virus flying around?
  6. classT

    Custom Draw help please !

    i think you need to look at making it owner-drawn control
  7. classT

    Utility Project

    what do you mean?
  8. classT

    Networking (CSocket) troubles...

    FANTASTIC!!! It works like a charm!! Thanks!
  9. classT

    Networking (CSocket) troubles...

    Hi all, I have been experimenting with the CSocket class and have built a small client program and small server program which I have tested on two separate PCs over an internet connection. One of the PCs is running Windows XP and the other Windows95. When I set up the client on the XP machine...
  10. classT

    An open-source project for members of this forum... PLEASE READ!

    How about another ToString() function that works to a precision: CString CDouble::ToString(int precision) { char buffer[20]; _ltoa((long)m_Int,buffer,10); CString str = buffer; str += &quot;.&quot;; _ltoa((long)m_Fract,buffer,10); CString fStr =...
  11. classT

    Getting page size chosen by user in Print Setup????

    Hi, does anyone know how I can get the page size chosen by the user in the Page Setup dialog?? Thanks
  12. classT

    Printing and second doc/view type

    Works like a treat!! THANKS
  13. classT

    Printing and second doc/view type

    Hi all, I have a MDI project where I have added a second document/view type. Everything is working great except for one silly thing: the print and print preview menus are disabled and do not work with my second document type. I've looked through all the code and compared with my original...
  14. classT

    CListCtrl List control question

    Ahhhhh! Superb! Thanks for that one :-)
  15. classT

    CListCtrl List control question

    Hi all, does anybody know how I can make a selection extend all the way across a CListCtrl in report view. Currently, I can only select an item if I click in the first column. Also, it is only the first column that becomes highlighted when selected.

Part and Inventory Search

Back
Top