Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Back Room
  4. My beautiful function

My beautiful function

Scheduled Pinned Locked Moved The Back Room
comgraphics
13 Posts 10 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Chris Losinger

    since the item number in a CListCtrl (ICON view) doesn't really reflect its on-screen position, i am forced to execute this function to arrange things work after a drag and drop. note that all i do here is copy the items out, clear the control, then put the items back exactly as they came out. i was mad when i wrote this.

    struct stupidFuckingHack
    {
    std::string txt;
    LV_ITEM lvi;
    };

    void CTIFFAssemblerListView::ReorderTheFuckingList()
    {
    /*
    first, get all the fucking items in the fucking CListCtrl
    */
    std::vector<stupidFuckingHack> items;
    char title[MAX_PATH + 1];
    for (int i=0; i *lt; GetListCtrl().GetItemCount(); i++)
    {
    stupidFuckingHack shit;

      ZeroMemory(&shit.lvi, sizeof (LV\_ITEM));
      shit.lvi.iItem		= i;
      shit.lvi.mask		= LVIF\_TEXT | LVIF\_IMAGE | LVIF\_PARAM;
      shit.lvi.pszText		= title;
      shit.lvi.cchTextMax	= MAX\_PATH;
    
      GetListCtrl().GetItem( &shitem.lvi);
    
      shit.txt = title;
      items.push\_back(shit);
    

    }

    /*
    hold on.. don't let the user see this
    */
    GetListCtrl().LockWindowUpdate();

    /*
    delete every fucking thing
    */
    GetListCtrl().DeleteAllItems();

    /*
    put them all back in, exactly as they came out. duh.
    */

    for (i=0; i < items.size(); i++)
    {
    stupidFuckingHack &shit = items.at(i);

      shit.lvi.pszText = (char \*)shit.txt.c\_str();
      shit.lvi.mask = LVIF\_TEXT | LVIF\_IMAGE | LVIF\_PARAM;
    
      GetListCtrl().InsertItem(&shit.lvi);
    

    }

    /*
    now things are as they should be, you piece of shit control
    */
    GetListCtrl().UnlockWindowUpdate();
    }

    (If there's a better way, tell me!) -c


    To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
       /. #3848917

    Fractals!

    M Offline
    M Offline
    Martin Marvinski
    wrote on last edited by
    #2

    You are in my territory now!! I thought I was the only one who wrote vile code. It was always a good thing my products didn't come with source code!! Finally I have something in common with my fellow CPians! :-D

    1 Reply Last reply
    0
    • C Chris Losinger

      since the item number in a CListCtrl (ICON view) doesn't really reflect its on-screen position, i am forced to execute this function to arrange things work after a drag and drop. note that all i do here is copy the items out, clear the control, then put the items back exactly as they came out. i was mad when i wrote this.

      struct stupidFuckingHack
      {
      std::string txt;
      LV_ITEM lvi;
      };

      void CTIFFAssemblerListView::ReorderTheFuckingList()
      {
      /*
      first, get all the fucking items in the fucking CListCtrl
      */
      std::vector<stupidFuckingHack> items;
      char title[MAX_PATH + 1];
      for (int i=0; i *lt; GetListCtrl().GetItemCount(); i++)
      {
      stupidFuckingHack shit;

        ZeroMemory(&shit.lvi, sizeof (LV\_ITEM));
        shit.lvi.iItem		= i;
        shit.lvi.mask		= LVIF\_TEXT | LVIF\_IMAGE | LVIF\_PARAM;
        shit.lvi.pszText		= title;
        shit.lvi.cchTextMax	= MAX\_PATH;
      
        GetListCtrl().GetItem( &shitem.lvi);
      
        shit.txt = title;
        items.push\_back(shit);
      

      }

      /*
      hold on.. don't let the user see this
      */
      GetListCtrl().LockWindowUpdate();

      /*
      delete every fucking thing
      */
      GetListCtrl().DeleteAllItems();

      /*
      put them all back in, exactly as they came out. duh.
      */

      for (i=0; i < items.size(); i++)
      {
      stupidFuckingHack &shit = items.at(i);

        shit.lvi.pszText = (char \*)shit.txt.c\_str();
        shit.lvi.mask = LVIF\_TEXT | LVIF\_IMAGE | LVIF\_PARAM;
      
        GetListCtrl().InsertItem(&shit.lvi);
      

      }

      /*
      now things are as they should be, you piece of shit control
      */
      GetListCtrl().UnlockWindowUpdate();
      }

      (If there's a better way, tell me!) -c


      To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
         /. #3848917

      Fractals!

      S Offline
      S Offline
      Shog9 0
      wrote on last edited by
      #3

      Chris Losinger wrote: (If there's a better way, tell me!) Well, as far as efficiency goes, since you know in advance how many items you're dealing with, you could pre-allocate them, both for the vector and the list (after you've deleted them)(not sure how the list handles memory allocation after items have been deleted; it might not be any benefit; shouldn't hurt though). Optimizations like this wouldn't matter if you've only got a few items at any given time though. Could make a huge difference once you get several hundred (list is pretty slow WRT re-allocating memory). As far as functionality, maybe use SetRedraw() instead of LockWindowUpdate()? Everything else looks ok, except for the asterisks in the symbol names... ;)

      Shog9  --

      Maybe Java is kind of like God, it "works in mysterious ways". It seems like your apps are running slowly, because in the backgroud Java is solving world hunger, or finding the cure to cancer. - Ryan Johnston, Don't die java!

      C 1 Reply Last reply
      0
      • S Shog9 0

        Chris Losinger wrote: (If there's a better way, tell me!) Well, as far as efficiency goes, since you know in advance how many items you're dealing with, you could pre-allocate them, both for the vector and the list (after you've deleted them)(not sure how the list handles memory allocation after items have been deleted; it might not be any benefit; shouldn't hurt though). Optimizations like this wouldn't matter if you've only got a few items at any given time though. Could make a huge difference once you get several hundred (list is pretty slow WRT re-allocating memory). As far as functionality, maybe use SetRedraw() instead of LockWindowUpdate()? Everything else looks ok, except for the asterisks in the symbol names... ;)

        Shog9  --

        Maybe Java is kind of like God, it "works in mysterious ways". It seems like your apps are running slowly, because in the backgroud Java is solving world hunger, or finding the cure to cancer. - Ryan Johnston, Don't die java!

        C Offline
        C Offline
        Chris Losinger
        wrote on last edited by
        #4

        yeah. there are only going to be a few items in this list. efficiency isn't a concern here. -c


        To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
           /. #3848917

        Fractals!

        1 Reply Last reply
        0
        • C Chris Losinger

          since the item number in a CListCtrl (ICON view) doesn't really reflect its on-screen position, i am forced to execute this function to arrange things work after a drag and drop. note that all i do here is copy the items out, clear the control, then put the items back exactly as they came out. i was mad when i wrote this.

          struct stupidFuckingHack
          {
          std::string txt;
          LV_ITEM lvi;
          };

          void CTIFFAssemblerListView::ReorderTheFuckingList()
          {
          /*
          first, get all the fucking items in the fucking CListCtrl
          */
          std::vector<stupidFuckingHack> items;
          char title[MAX_PATH + 1];
          for (int i=0; i *lt; GetListCtrl().GetItemCount(); i++)
          {
          stupidFuckingHack shit;

            ZeroMemory(&shit.lvi, sizeof (LV\_ITEM));
            shit.lvi.iItem		= i;
            shit.lvi.mask		= LVIF\_TEXT | LVIF\_IMAGE | LVIF\_PARAM;
            shit.lvi.pszText		= title;
            shit.lvi.cchTextMax	= MAX\_PATH;
          
            GetListCtrl().GetItem( &shitem.lvi);
          
            shit.txt = title;
            items.push\_back(shit);
          

          }

          /*
          hold on.. don't let the user see this
          */
          GetListCtrl().LockWindowUpdate();

          /*
          delete every fucking thing
          */
          GetListCtrl().DeleteAllItems();

          /*
          put them all back in, exactly as they came out. duh.
          */

          for (i=0; i < items.size(); i++)
          {
          stupidFuckingHack &shit = items.at(i);

            shit.lvi.pszText = (char \*)shit.txt.c\_str();
            shit.lvi.mask = LVIF\_TEXT | LVIF\_IMAGE | LVIF\_PARAM;
          
            GetListCtrl().InsertItem(&shit.lvi);
          

          }

          /*
          now things are as they should be, you piece of shit control
          */
          GetListCtrl().UnlockWindowUpdate();
          }

          (If there's a better way, tell me!) -c


          To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
             /. #3848917

          Fractals!

          C Offline
          C Offline
          ColinDavies
          wrote on last edited by
          #5

          I don't understand

          for (int i=0; i *lt; GetListCtrl().GetItemCount(); i++)

          But have you considered using a forking parallel sorting index ? Regardz Colin J Davies

          Sonork ID 100.9197:Colin

          I am sick of fighting with Martin, I think I will ignore his posts from here on in, and spend the time working on articles instead. Christian Graus

          C 1 Reply Last reply
          0
          • C ColinDavies

            I don't understand

            for (int i=0; i *lt; GetListCtrl().GetItemCount(); i++)

            But have you considered using a forking parallel sorting index ? Regardz Colin J Davies

            Sonork ID 100.9197:Colin

            I am sick of fighting with Martin, I think I will ignore his posts from here on in, and spend the time working on articles instead. Christian Graus

            C Offline
            C Offline
            Chris Losinger
            wrote on last edited by
            #6

            i even considered a recursive function, just to really prove my anger. :) -c


            To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
               /. #3848917

            Fractals!

            C 1 Reply Last reply
            0
            • C Chris Losinger

              i even considered a recursive function, just to really prove my anger. :) -c


              To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
                 /. #3848917

              Fractals!

              C Offline
              C Offline
              ColinDavies
              wrote on last edited by
              #7

              ah, I don't use ListCtrls as they are too fancy for me, but the old ListBox let you Insert and Delete effortleslly. Its a shame they don't allow you to InsertItems() and then RedrawItems() simply. :-( Regardz Colin J Davies

              Sonork ID 100.9197:Colin

              I am sick of fighting with Martin, I think I will ignore his posts from here on in, and spend the time working on articles instead. Christian Graus

              1 Reply Last reply
              0
              • C Chris Losinger

                since the item number in a CListCtrl (ICON view) doesn't really reflect its on-screen position, i am forced to execute this function to arrange things work after a drag and drop. note that all i do here is copy the items out, clear the control, then put the items back exactly as they came out. i was mad when i wrote this.

                struct stupidFuckingHack
                {
                std::string txt;
                LV_ITEM lvi;
                };

                void CTIFFAssemblerListView::ReorderTheFuckingList()
                {
                /*
                first, get all the fucking items in the fucking CListCtrl
                */
                std::vector<stupidFuckingHack> items;
                char title[MAX_PATH + 1];
                for (int i=0; i *lt; GetListCtrl().GetItemCount(); i++)
                {
                stupidFuckingHack shit;

                  ZeroMemory(&shit.lvi, sizeof (LV\_ITEM));
                  shit.lvi.iItem		= i;
                  shit.lvi.mask		= LVIF\_TEXT | LVIF\_IMAGE | LVIF\_PARAM;
                  shit.lvi.pszText		= title;
                  shit.lvi.cchTextMax	= MAX\_PATH;
                
                  GetListCtrl().GetItem( &shitem.lvi);
                
                  shit.txt = title;
                  items.push\_back(shit);
                

                }

                /*
                hold on.. don't let the user see this
                */
                GetListCtrl().LockWindowUpdate();

                /*
                delete every fucking thing
                */
                GetListCtrl().DeleteAllItems();

                /*
                put them all back in, exactly as they came out. duh.
                */

                for (i=0; i < items.size(); i++)
                {
                stupidFuckingHack &shit = items.at(i);

                  shit.lvi.pszText = (char \*)shit.txt.c\_str();
                  shit.lvi.mask = LVIF\_TEXT | LVIF\_IMAGE | LVIF\_PARAM;
                
                  GetListCtrl().InsertItem(&shit.lvi);
                

                }

                /*
                now things are as they should be, you piece of shit control
                */
                GetListCtrl().UnlockWindowUpdate();
                }

                (If there's a better way, tell me!) -c


                To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
                   /. #3848917

                Fractals!

                C Offline
                C Offline
                Cathy
                wrote on last edited by
                #8

                Maybe you could use CListCtrl::GetItemRect(...) but I'm not sure if it would be any better. Cathy Life's uncertain, have dessert first!

                1 Reply Last reply
                0
                • C Chris Losinger

                  since the item number in a CListCtrl (ICON view) doesn't really reflect its on-screen position, i am forced to execute this function to arrange things work after a drag and drop. note that all i do here is copy the items out, clear the control, then put the items back exactly as they came out. i was mad when i wrote this.

                  struct stupidFuckingHack
                  {
                  std::string txt;
                  LV_ITEM lvi;
                  };

                  void CTIFFAssemblerListView::ReorderTheFuckingList()
                  {
                  /*
                  first, get all the fucking items in the fucking CListCtrl
                  */
                  std::vector<stupidFuckingHack> items;
                  char title[MAX_PATH + 1];
                  for (int i=0; i *lt; GetListCtrl().GetItemCount(); i++)
                  {
                  stupidFuckingHack shit;

                    ZeroMemory(&shit.lvi, sizeof (LV\_ITEM));
                    shit.lvi.iItem		= i;
                    shit.lvi.mask		= LVIF\_TEXT | LVIF\_IMAGE | LVIF\_PARAM;
                    shit.lvi.pszText		= title;
                    shit.lvi.cchTextMax	= MAX\_PATH;
                  
                    GetListCtrl().GetItem( &shitem.lvi);
                  
                    shit.txt = title;
                    items.push\_back(shit);
                  

                  }

                  /*
                  hold on.. don't let the user see this
                  */
                  GetListCtrl().LockWindowUpdate();

                  /*
                  delete every fucking thing
                  */
                  GetListCtrl().DeleteAllItems();

                  /*
                  put them all back in, exactly as they came out. duh.
                  */

                  for (i=0; i < items.size(); i++)
                  {
                  stupidFuckingHack &shit = items.at(i);

                    shit.lvi.pszText = (char \*)shit.txt.c\_str();
                    shit.lvi.mask = LVIF\_TEXT | LVIF\_IMAGE | LVIF\_PARAM;
                  
                    GetListCtrl().InsertItem(&shit.lvi);
                  

                  }

                  /*
                  now things are as they should be, you piece of shit control
                  */
                  GetListCtrl().UnlockWindowUpdate();
                  }

                  (If there's a better way, tell me!) -c


                  To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
                     /. #3848917

                  Fractals!

                  C Offline
                  C Offline
                  Christian Graus
                  wrote on last edited by
                  #9

                  You can use * in a function name ? Christian come on all you MS suckups, defend your sugar-daddy now. - Chris Losinger - 11/07/2002

                  D 1 Reply Last reply
                  0
                  • C Chris Losinger

                    since the item number in a CListCtrl (ICON view) doesn't really reflect its on-screen position, i am forced to execute this function to arrange things work after a drag and drop. note that all i do here is copy the items out, clear the control, then put the items back exactly as they came out. i was mad when i wrote this.

                    struct stupidFuckingHack
                    {
                    std::string txt;
                    LV_ITEM lvi;
                    };

                    void CTIFFAssemblerListView::ReorderTheFuckingList()
                    {
                    /*
                    first, get all the fucking items in the fucking CListCtrl
                    */
                    std::vector<stupidFuckingHack> items;
                    char title[MAX_PATH + 1];
                    for (int i=0; i *lt; GetListCtrl().GetItemCount(); i++)
                    {
                    stupidFuckingHack shit;

                      ZeroMemory(&shit.lvi, sizeof (LV\_ITEM));
                      shit.lvi.iItem		= i;
                      shit.lvi.mask		= LVIF\_TEXT | LVIF\_IMAGE | LVIF\_PARAM;
                      shit.lvi.pszText		= title;
                      shit.lvi.cchTextMax	= MAX\_PATH;
                    
                      GetListCtrl().GetItem( &shitem.lvi);
                    
                      shit.txt = title;
                      items.push\_back(shit);
                    

                    }

                    /*
                    hold on.. don't let the user see this
                    */
                    GetListCtrl().LockWindowUpdate();

                    /*
                    delete every fucking thing
                    */
                    GetListCtrl().DeleteAllItems();

                    /*
                    put them all back in, exactly as they came out. duh.
                    */

                    for (i=0; i < items.size(); i++)
                    {
                    stupidFuckingHack &shit = items.at(i);

                      shit.lvi.pszText = (char \*)shit.txt.c\_str();
                      shit.lvi.mask = LVIF\_TEXT | LVIF\_IMAGE | LVIF\_PARAM;
                    
                      GetListCtrl().InsertItem(&shit.lvi);
                    

                    }

                    /*
                    now things are as they should be, you piece of shit control
                    */
                    GetListCtrl().UnlockWindowUpdate();
                    }

                    (If there's a better way, tell me!) -c


                    To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
                       /. #3848917

                    Fractals!

                    S Offline
                    S Offline
                    Simon Walton
                    wrote on last edited by
                    #10

                    Ah, you've reminded me of the general horror of using List Controls and trying to get 265-colour icons in the report view. Simon "This is an equal opportunities airline. The pilot is blind." Sonork ID 100.10024

                    1 Reply Last reply
                    0
                    • C Christian Graus

                      You can use * in a function name ? Christian come on all you MS suckups, defend your sugar-daddy now. - Chris Losinger - 11/07/2002

                      D Offline
                      D Offline
                      David Wulff
                      wrote on last edited by
                      #11

                      ROFL! :-D


                      David Wulff http://www.davidwulff.co.uk

                      1 Reply Last reply
                      0
                      • C Chris Losinger

                        since the item number in a CListCtrl (ICON view) doesn't really reflect its on-screen position, i am forced to execute this function to arrange things work after a drag and drop. note that all i do here is copy the items out, clear the control, then put the items back exactly as they came out. i was mad when i wrote this.

                        struct stupidFuckingHack
                        {
                        std::string txt;
                        LV_ITEM lvi;
                        };

                        void CTIFFAssemblerListView::ReorderTheFuckingList()
                        {
                        /*
                        first, get all the fucking items in the fucking CListCtrl
                        */
                        std::vector<stupidFuckingHack> items;
                        char title[MAX_PATH + 1];
                        for (int i=0; i *lt; GetListCtrl().GetItemCount(); i++)
                        {
                        stupidFuckingHack shit;

                          ZeroMemory(&shit.lvi, sizeof (LV\_ITEM));
                          shit.lvi.iItem		= i;
                          shit.lvi.mask		= LVIF\_TEXT | LVIF\_IMAGE | LVIF\_PARAM;
                          shit.lvi.pszText		= title;
                          shit.lvi.cchTextMax	= MAX\_PATH;
                        
                          GetListCtrl().GetItem( &shitem.lvi);
                        
                          shit.txt = title;
                          items.push\_back(shit);
                        

                        }

                        /*
                        hold on.. don't let the user see this
                        */
                        GetListCtrl().LockWindowUpdate();

                        /*
                        delete every fucking thing
                        */
                        GetListCtrl().DeleteAllItems();

                        /*
                        put them all back in, exactly as they came out. duh.
                        */

                        for (i=0; i < items.size(); i++)
                        {
                        stupidFuckingHack &shit = items.at(i);

                          shit.lvi.pszText = (char \*)shit.txt.c\_str();
                          shit.lvi.mask = LVIF\_TEXT | LVIF\_IMAGE | LVIF\_PARAM;
                        
                          GetListCtrl().InsertItem(&shit.lvi);
                        

                        }

                        /*
                        now things are as they should be, you piece of shit control
                        */
                        GetListCtrl().UnlockWindowUpdate();
                        }

                        (If there's a better way, tell me!) -c


                        To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
                           /. #3848917

                        Fractals!

                        L Offline
                        L Offline
                        loket
                        wrote on last edited by
                        #12

                        LOL Half my code looks like that..:) /M


                        - Don't sweat the petty things, and don't pet the sweaty things.

                        1 Reply Last reply
                        0
                        • C Chris Losinger

                          since the item number in a CListCtrl (ICON view) doesn't really reflect its on-screen position, i am forced to execute this function to arrange things work after a drag and drop. note that all i do here is copy the items out, clear the control, then put the items back exactly as they came out. i was mad when i wrote this.

                          struct stupidFuckingHack
                          {
                          std::string txt;
                          LV_ITEM lvi;
                          };

                          void CTIFFAssemblerListView::ReorderTheFuckingList()
                          {
                          /*
                          first, get all the fucking items in the fucking CListCtrl
                          */
                          std::vector<stupidFuckingHack> items;
                          char title[MAX_PATH + 1];
                          for (int i=0; i *lt; GetListCtrl().GetItemCount(); i++)
                          {
                          stupidFuckingHack shit;

                            ZeroMemory(&shit.lvi, sizeof (LV\_ITEM));
                            shit.lvi.iItem		= i;
                            shit.lvi.mask		= LVIF\_TEXT | LVIF\_IMAGE | LVIF\_PARAM;
                            shit.lvi.pszText		= title;
                            shit.lvi.cchTextMax	= MAX\_PATH;
                          
                            GetListCtrl().GetItem( &shitem.lvi);
                          
                            shit.txt = title;
                            items.push\_back(shit);
                          

                          }

                          /*
                          hold on.. don't let the user see this
                          */
                          GetListCtrl().LockWindowUpdate();

                          /*
                          delete every fucking thing
                          */
                          GetListCtrl().DeleteAllItems();

                          /*
                          put them all back in, exactly as they came out. duh.
                          */

                          for (i=0; i < items.size(); i++)
                          {
                          stupidFuckingHack &shit = items.at(i);

                            shit.lvi.pszText = (char \*)shit.txt.c\_str();
                            shit.lvi.mask = LVIF\_TEXT | LVIF\_IMAGE | LVIF\_PARAM;
                          
                            GetListCtrl().InsertItem(&shit.lvi);
                          

                          }

                          /*
                          now things are as they should be, you piece of shit control
                          */
                          GetListCtrl().UnlockWindowUpdate();
                          }

                          (If there's a better way, tell me!) -c


                          To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
                             /. #3848917

                          Fractals!

                          N Offline
                          N Offline
                          Navin
                          wrote on last edited by
                          #13

                          Chris Losinger wrote: (If there's a better way, tell me!) Well, you ought to be using C++ style comments instead of C comments. :-D I work on an installer and uninstaler for drivers, some of the code surrounding API's (or registry hacks to get around using APIs that won't work) are similar, but a little more toned down. Enough to make others who look at the code laugh, but not bad enough to get me fired. Even if you win the rat race, you're still a rat.

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups