August 14th, 2012 09:59 PM
#1
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
August 15th, 2012 02:57 AM
#2
Re: How To open notepad application thorough c++?
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
August 15th, 2012 03:05 AM
#3
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
August 15th, 2012 03:23 AM
#4
Re: How To open notepad application thorough c++?
Originally Posted by
akathir2020
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
Forum Rules
Click Here to Expand Forum to Full Width
Bookmarks