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. General Programming
  3. C / C++ / MFC
  4. Check Application

Check Application

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 3 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.
  • T Offline
    T Offline
    Tjie Pouw
    wrote on last edited by
    #1

    Hi there, how can i check whether my application runs already or not on the system (OS), so that if i try to start the application again, instead of start a new instance of the application, then just bring the application to the foreground. thanks

    H 1 Reply Last reply
    0
    • T Tjie Pouw

      Hi there, how can i check whether my application runs already or not on the system (OS), so that if i try to start the application again, instead of start a new instance of the application, then just bring the application to the foreground. thanks

      H Offline
      H Offline
      Hamed Musavi
      wrote on last edited by
      #2

      http://www.codeproject.com/cpp/avoidmultinstance.asp[^]

      // "Life is very short and is very fragile also." Yanni
      while (I'm_alive)
      {
      cout<<"I love programming.";
      }

      S 1 Reply Last reply
      0
      • H Hamed Musavi

        http://www.codeproject.com/cpp/avoidmultinstance.asp[^]

        // "Life is very short and is very fragile also." Yanni
        while (I'm_alive)
        {
        cout<<"I love programming.";
        }

        S Offline
        S Offline
        Sreedhar DV
        wrote on last edited by
        #3

        Hamed Mosavi wrote:

        // "Life is very short and is very fragile also." Yanni while (I'm_alive) { cout<<"I love programming."; }

        These many compilation errors in your small code. Are you a true lover of programming ;-) error C2001: newline in constant error C2015: too many characters in constant error C2143: syntax error : missing ';' before 'constant' error C2143: syntax error : missing ';' before 'while' error C2001: newline in constant error C2015: too many characters in constant error C2143: syntax error : missing ')' before 'constant' error C2143: syntax error : missing ';' before '{'

        Sreedhar DV [Real success is having courage to meet failure without being defeated.]

        H 1 Reply Last reply
        0
        • S Sreedhar DV

          Hamed Mosavi wrote:

          // "Life is very short and is very fragile also." Yanni while (I'm_alive) { cout<<"I love programming."; }

          These many compilation errors in your small code. Are you a true lover of programming ;-) error C2001: newline in constant error C2015: too many characters in constant error C2143: syntax error : missing ';' before 'constant' error C2143: syntax error : missing ';' before 'while' error C2001: newline in constant error C2015: too many characters in constant error C2143: syntax error : missing ')' before 'constant' error C2143: syntax error : missing ';' before '{'

          Sreedhar DV [Real success is having courage to meet failure without being defeated.]

          H Offline
          H Offline
          Hamed Musavi
          wrote on last edited by
          #4

          Sreedhar DV wrote:

          These many compilation errors in your small code

          Oh my god! Did you really compile that!:-D I knew one day that happens. Someone notices the ' in I'm. I decided to put it there so that it would be more readable by non programmer members. It used to be 'Printf("...' and someone claimed it's better to use cout (because of it's performance!:wtf: performance in CP!) Now if I remove that ' as well, I guess only programmers understand it;) I decided to leave it to be, after all no one(?) is to compile or use this.

          Sreedhar DV wrote:

          Are you a true lover of programming

          Yes! Enough lover to continue coding for 6 years even when I don't earn enough money from that.;)

          // "Life is very short and is very fragile also." Yanni
          while (I'm_alive)
          {
          cout<<"I love programming.";
          }

          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