CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2012
    Posts
    2

    Question How To open notepad application thorough c++?

    I java We can be able to open any application through coding.. likewise Is it possible to open through c++? Help me.. as soon as possible

  2. #2
    Join Date
    Jul 2005
    Location
    Netherlands
    Posts
    2,042

    Re: How To open notepad application thorough c++?

    Have a look at this.
    Cheers, D Drmmr

    Please put [code][/code] tags around your code to preserve indentation and make it more readable.

    As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky

  3. #3
    Join Date
    Aug 2012
    Posts
    2

    Re: How To open notepad application thorough c++?

    i found the solution guys
    #include <stdlib.h>
    #include<stdio.h>
    #include<windows.h>
    #include<conio.h>
    void main()
    {
    ShellExecute(NULL,"open","c:\\windows\\system32\\notepad.exe",NULL,NULL,SW_SHOWNORMAL);

    getch();
    }
    It perfectly worked if you complied in vc++ compiler

  4. #4
    Join Date
    Apr 1999
    Posts
    27,449

    Re: How To open notepad application thorough c++?

    Quote Originally Posted by akathir2020 View Post
    It perfectly worked if you complied in vc++ compiler
    And what if Notepad is not located at c:\\windows\\system32?

    Regards,

    Paul McKenzie

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured