星期六, 9月 23, 2006

Jogging

早上5點30分起跑


星期五, 9月 22, 2006

Creating a Dialog-based App

初使用MFC寫Application, 不知道如何在Dialog中攔截Enter & Escape鍵!
為什麼要攔截這兩個鍵? 目的是希望使用者按下這個鍵時而關閉Dialog.

星期四, 9月 21, 2006

Using the CComboBox control

Simple type has a permanently open list box and you are able to type in Edit control.

Dropdown type has a 'closed' list box which can be opened by clicking on the 'drop down' button. The Edit control WILL accept input.

Drop List type has a 'closed' list box which can be opened by clicking on the 'drop down' button. The Edit control will NOT accept any input.

星期一, 9月 18, 2006

To run an *.exe command in windows forms when designing a Gui.

Hiw to run an *.exe command in windows forms when designing a Gui

Search: | Post New Topic | Post A Reply |

Replies: 1 Pages: 1
Unread Author Topic: Hiw to run an *.exe command in windows forms when designing a Gui

Guest Hiw to run an *.exe command in windows forms when designing a Gui
posted 9/15/2006 02:01 PM EDT reply
Hi
I am designing a gui that makes it easier for the user to run a few commands from the command window. the user enters the 2 inputs to the windows form and press a button.
I am coding in C++, How can i run an exe file that uses the 2 inputs from the user from windows form?

Guest Re: Hiw to run an *.exe command in windows forms when designing a Gui
posted 9/15/2006 05:47 PM EDT reply
A lot of ways you can use:

1)ShellExecuteEx();
2) ShellExecute();
3) spawnl();
4) CreateProcess();