473,396 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Opening Common File Dialogs

36
Out of curiosity, is it possible to run code to run an application like notepad?
Apr 8 '07 #1
9 1324
sicarie
4,677 Expert Mod 4TB
Out of curiosity, is it possible to run code to run an application like notepad?
To execute an application? Like the 'system()' command?
Apr 8 '07 #2
jj555s
36
How is system() used?
Could you provide a link?
Apr 8 '07 #3
sicarie
4,677 Expert Mod 4TB
How is system() used?
Could you provide a link?
I think Google would be your best bet. I like cplusplus.com, but I've never looked up the system command on it.
Apr 8 '07 #4
jj555s
36
I can't find it
Apr 8 '07 #5
jj555s
36
how do you get rid of the command prompt window when you run system("notepad.exe");?
Apr 8 '07 #6
Ganon11
3,652 Expert 2GB
The system() function is included in either the iostream header file or the std namespace (I suspect the namespace). You pass the function a CString, and the function does the work to execute the command prompt equivalent of your string.

So basically, if I wanted to run MyProg.exe in the same folder as my C++/C program, I could use the statement:

Expand|Select|Wrap|Line Numbers
  1. system("MyProg.exe");
This would be the equivalent of entering "MyProg.exe" into a DOS Command Prompt window.
Apr 8 '07 #7
jj555s
36
How do you get rid of the command prompt screen?
In addition I want to load a certain file with notepad, I'm not sure if I can add extensions when I code the line.
Apr 8 '07 #8
Banfa
9,065 Expert Mod 8TB
In that case try using CreateProcess.
Apr 8 '07 #9
sicarie
4,677 Expert Mod 4TB
jj555 - You started a new thread with the same question - please do not thread hijack/double-post. I have split the threads, and merged your two.
Apr 8 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Stephen Layton | last post by:
Manipulating comdlg32.dll using Ken Getz code below: ahtCommonFileOpenSave InitialDir:="F:\DiocesanDatabase\" & strNoSlashHouseNumber, _ Filter:=strFilter, FilterIndex:=1, Flags:=lngFlags, _...
1
by: Dalan | last post by:
Before distributing a database that I have developed, I thought that I would ask the resident gurus a general question regarding Common Dialogs Control. Correct me if I'm wrong, but I have read...
1
by: SpotNet | last post by:
Hi NewsGroup, I'm (not too) new to C#, I have built a Windows Common dialogs name space with these dialogs contained within. Got all the functionality from these dialogs that C# will let me do...
23
by: George | last post by:
Is there a way to customize the open file common dialog? I am trying to modify the button text so I can create a delete file common dialog. I need the same functionality of the open file common...
4
by: Adam | last post by:
I have a form that has a timer running on it (System.Timers.Timer). On this form, I have a button that opens a Common Dialog box. As soon as this button is pressed, the timer stops running. When I...
6
by: Steve Barnett | last post by:
I need to include a wizard in my application that will, as one of the steps, ask the user to select a file to open and (later) a file to save it as. The naff way to do this would be to have a...
2
by: MLM450 | last post by:
I am creating various customized open file dialogs. When I display one of my large dialogs followed by one of the smaller dialogs, you can see the smaller dialog resize itself from the larger...
1
by: MLM450 | last post by:
I am creating various customized open file dialogs. When I display one of my large dialogs followed by one of the smaller dialogs, you can see the smaller dialog resize itself from the larger...
2
by: reshm | last post by:
In my application i have file save & file open button i use common dialog box to save the file but simultaneously i want to show progrss bar to show the progess. how can i do?
9
compman9902
by: compman9902 | last post by:
Hello, and thank toy for reading this post. Thus far, this website has helped me a lot, (I have finally finished my encryptor: "site removed by moderator", go to the downloads link) and I will...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.