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. The Lounge
  3. So, what's on your clipboard, right now?

So, what's on your clipboard, right now?

Scheduled Pinned Locked Moved The Lounge
question
48 Posts 33 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.
  • D Daniel Turini

    If it's not too big, just paste it here, right now... Cheating not allowed. Can you tell I'm bored? :)

    J Offline
    J Offline
    J Dunlap
    wrote on last edited by
    #18

    http://www.codeproject.com/useritems/pointerlessimageproc.asp[^]  http://www.codeproject.com/useritems/queuelinearfloodfill.asp[^] http://www.codeproject.com/useritems/fastimagedrawing.asp[^] --- I was IM'ing links to my new articles to a friend. :->

    1 Reply Last reply
    0
    • D Daniel Turini

      If it's not too big, just paste it here, right now... Cheating not allowed. Can you tell I'm bored? :)

      A Offline
      A Offline
      Amar Chaudhary
      wrote on last edited by
      #19

      http://files.clanwarz.net/files/[^] and i am downloading some free cool stuff from there :):)

      It is Good to be Important but! it is more Important to be Good [My Question]

      1 Reply Last reply
      0
      • D Diagon Alley

        Hmm.... I just copied a file to my share I think. Let's see.... [file:///C:/cygwin/bin/make.exe](file:///C:/cygwin/bin/make.exe)  Interesting thread!! :-D

        --------------------------------------------------------------- Life? Life will tear you apart and kick and leave you on the ground. When it does. Get up. Keep getting up. Get up again. Because it's going to get better. You might come to find the one event you thought was the most disasterous event in your life turned out to be the best thing that could have ever happened to you. -- code-frog@codeproject

        _ Offline
        _ Offline
        _AK_
        wrote on last edited by
        #20

        Diagon Alley wrote:

        Interesting thread!!

        And getting more interesting as the replies are coming.. :)

        Best Regards, Apurva Kaushal

        1 Reply Last reply
        0
        • D Daniel Turini

          If it's not too big, just paste it here, right now... Cheating not allowed. Can you tell I'm bored? :)

          J Offline
          J Offline
          Jorgen Sigvardsson
          wrote on last edited by
          #21

          If it's not too big, just paste it here, right now... Cheating not allowed.

          -- Verletzen zerfetzen zersetzen zerstören Doch es darf nicht mir gehören Ich muss zerstören

          1 Reply Last reply
          0
          • C Christian Graus

            Tsk tsk - that code is not CLSCompliant ( because VB sucks ).

            Christian Graus - C++ MVP

            R Offline
            R Offline
            Rohde
            wrote on last edited by
            #22

            Yeah I know that, because of the casing :sigh: It's just, if I were to make it CLS compliant I'd have to use different names for the property and the field which I find annoying.


            FAULTLOG.TXT: File too large.

            C 1 Reply Last reply
            0
            • C Christian Graus

              (this is NOT my code, I just made it compile for someone in the C++ forum) #include <string.h> #include <malloc.h> void funcB(const char ** names) { //the actual values names[0] and names[1] are to be accessed and used but they are null!!!???      //free names[0] and names[1] free( (char*)names[0]); free( (char*)names[1]); } void funcA() { int array = 4; char ** Names = new char *[array]; int next = 0; int i; //initialise for(i=0;i < array; ++ i) {     Names[i]=NULL; } char * list = "Abc"; Names[ next ] = (char*) malloc( sizeof( char )*( strlen( list ) + 1 ) ); memcpy( Names[ next ],list,sizeof( char )*( strlen( list ) + 1 ) ); ++next; list = "cdefg"; Names[ next ] = (char*) malloc( sizeof( char )*( strlen( list ) + 1 ) ); memcpy( Names[ next ],list,sizeof( char )*( strlen( list ) + 1 ) ); printf("vsp list got is %s\n", Names[0] ); printf("vsp list got is %s\n", Names[1] ); funcB((const char**)Names); } int main(int argc, char* argv[]) {     printf("Hello World!\n");     funcA();     return 0; }

              Christian Graus - C++ MVP

              R Offline
              R Offline
              Rohde
              wrote on last edited by
              #23

              Christian Graus wrote:

              (this is NOT my code, I just made it compile for someone in the C++ forum)

              Don't be embarassed. Just because you're a MVP I'm sure you feel the need for the occasional "Hello, World!" program now and then. It's ok. We won't tell. :laugh:


              FAULTLOG.TXT: File too large.

              C 1 Reply Last reply
              0
              • R Rohde

                Yeah I know that, because of the casing :sigh: It's just, if I were to make it CLS compliant I'd have to use different names for the property and the field which I find annoying.


                FAULTLOG.TXT: File too large.

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

                I tend to follow the common convention of putting a _ before the private member. private int _count; public int Count {   get { // etc

                Christian Graus - C++ MVP

                R 1 Reply Last reply
                0
                • C Christian Graus

                  I tend to follow the common convention of putting a _ before the private member. private int _count; public int Count {   get { // etc

                  Christian Graus - C++ MVP

                  R Offline
                  R Offline
                  Rohde
                  wrote on last edited by
                  #25

                  That's actually a good idea. I don't know why I haven't thought about that; probably because I've learned from C++ to never use fields starting with underscores since they might be reserved, so I always feel a small sting of pain when I do it, but maybe it's time to forget my C++ past. :-D Thanks.


                  FAULTLOG.TXT: File too large.

                  C 1 Reply Last reply
                  0
                  • R Rohde

                    Christian Graus wrote:

                    (this is NOT my code, I just made it compile for someone in the C++ forum)

                    Don't be embarassed. Just because you're a MVP I'm sure you feel the need for the occasional "Hello, World!" program now and then. It's ok. We won't tell. :laugh:


                    FAULTLOG.TXT: File too large.

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

                    *grin* It's not that it's simple, it's that it's kind of ugly :-)

                    Christian Graus - C++ MVP

                    1 Reply Last reply
                    0
                    • R Rohde

                      That's actually a good idea. I don't know why I haven't thought about that; probably because I've learned from C++ to never use fields starting with underscores since they might be reserved, so I always feel a small sting of pain when I do it, but maybe it's time to forget my C++ past. :-D Thanks.


                      FAULTLOG.TXT: File too large.

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

                      Yeah, it takes a while to ease into what's best for C#, instead of what was best in C++.

                      Christian Graus - C++ MVP

                      1 Reply Last reply
                      0
                      • D Daniel Turini

                        If it's not too big, just paste it here, right now... Cheating not allowed. Can you tell I'm bored? :)

                        R Offline
                        R Offline
                        Rama Krishna Vavilala
                        wrote on last edited by
                        #28

                        non_labl_elem_defn Developing a grammar for JCup.


                        Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -Brian Kernighan

                        1 Reply Last reply
                        0
                        • D Daniel Turini

                          If it's not too big, just paste it here, right now... Cheating not allowed. Can you tell I'm bored? :)

                          P Offline
                          P Offline
                          peterchen
                          wrote on last edited by
                          #29

                          a 32k frequency response curve, in Scilab text format


                          Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
                          We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
                          Linkify!|Fold With Us!

                          1 Reply Last reply
                          0
                          • D Daniel Turini

                            If it's not too big, just paste it here, right now... Cheating not allowed. Can you tell I'm bored? :)

                            A Offline
                            A Offline
                            Aamir Butt
                            wrote on last edited by
                            #30

                            CComObject * pWindowService; CComObject::CreateInstance(&pWindowService); pWindowService->QueryInterface(__uuidof(IWindowService), (void**)&m_pWindowService); :(

                            "Some people believe football is a matter of life and death. I'm very disappointed with that attitude. I can assure you it is much, much more important than that. -- Bill Shankly"

                            1 Reply Last reply
                            0
                            • D Daniel Turini

                              If it's not too big, just paste it here, right now... Cheating not allowed. Can you tell I'm bored? :)

                              N Offline
                              N Offline
                              NormDroid
                              wrote on last edited by
                              #31

                              webBrowser.Navigated += new WebBrowserNavigatedEventHandler(webBrowser_Navigated);

                              We made the buttons on the screen look so good you'll want to lick them. Steve Jobs

                              1 Reply Last reply
                              0
                              • D Daniel Turini

                                If it's not too big, just paste it here, right now... Cheating not allowed. Can you tell I'm bored? :)

                                M Offline
                                M Offline
                                Matthew Bache
                                wrote on last edited by
                                #32

                                char sOutPath[BUFLEN]; strcpy(sOutPath, sCfgPath); strcpy(sOutPath + pathLen - 3, "csv"); ofstream ofs(sOutPath, ios::out | ios::trunc);

                                Matt

                                1 Reply Last reply
                                0
                                • D Daniel Turini

                                  If it's not too big, just paste it here, right now... Cheating not allowed. Can you tell I'm bored? :)

                                  A Offline
                                  A Offline
                                  Anand Vivek Srivastava
                                  wrote on last edited by
                                  #33

                                  /etc/init.d/network restart just restarted by network service(typed it in non-root used mode than copied to su prompt)

                                  1 Reply Last reply
                                  0
                                  • D Daniel Turini

                                    If it's not too big, just paste it here, right now... Cheating not allowed. Can you tell I'm bored? :)

                                    A Offline
                                    A Offline
                                    Anna Jayne Metcalfe
                                    wrote on last edited by
                                    #34

                                    IDC_SOLUTION_PATHNAME_BROWSE Boring, huh? :->

                                    Anna :rose: Linting the day away :cool: Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

                                    1 Reply Last reply
                                    0
                                    • D Daniel Turini

                                      If it's not too big, just paste it here, right now... Cheating not allowed. Can you tell I'm bored? :)

                                      J Offline
                                      J Offline
                                      jhaga
                                      wrote on last edited by
                                      #35

                                      this.txtSok.Text = @"((gg(t|c)caattct.{60,90})|(tata(a|t)a(a|t)).{24,25}).*(c|t)(a|g)(c|t).*tga"; Gene finding regex. Still not perfect.. jhaga

                                      It would be glorious to see mankind at leisure for once. It is nothing but work, work, work. I cannot easily buy a blank-book to write thoughts in; they are commonly ruled for dollars and cents. A[man], seeing me making a minute in the fields, took it for granted that I was calculating my wages. — business! - I think that there is nothing, not even crime, more opposed to poetry, to philosophy, ay, to life itself, than this incessant business. Henry David Thoreau

                                      1 Reply Last reply
                                      0
                                      • D Diagon Alley

                                        Hmm.... I just copied a file to my share I think. Let's see.... [file:///C:/cygwin/bin/make.exe](file:///C:/cygwin/bin/make.exe)  Interesting thread!! :-D

                                        --------------------------------------------------------------- Life? Life will tear you apart and kick and leave you on the ground. When it does. Get up. Keep getting up. Get up again. Because it's going to get better. You might come to find the one event you thought was the most disasterous event in your life turned out to be the best thing that could have ever happened to you. -- code-frog@codeproject

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

                                        Diagon Alley wrote:

                                        file:///C:/cygwin/bin/make.exe

                                        Lol, it works for me. :-D


                                        Ðavid Wulff What kind of music to programmers listen to?
                                        Join the Code Project Last.fm group | dwulff
                                          I, for one, welcome our new shrew-sized overlords.

                                        D 1 Reply Last reply
                                        0
                                        • C Christian Graus

                                          Tsk tsk - that code is not CLSCompliant ( because VB sucks ).

                                          Christian Graus - C++ MVP

                                          S Offline
                                          S Offline
                                          S Senthil Kumar
                                          wrote on last edited by
                                          #37

                                          Unless the field (contactPerson) is also public or internal, that code is CLS compliant. Remember, CLS compliance only matters for exposed members of an assembly (public/internal access modifiers).

                                          Regards Senthil [MVP - Visual C#] _____________________________ My Blog | My Articles | WinMacro

                                          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