addtoproject->files,在选择框中输入自己想要创建的文件名,这里是"process.cpp";接下来询问是否创建新文件时回答"yes";然后通过Workspace->FileView->SourceFiles打开该文件(同上一试验);(3)通过调用菜单命令项build->buildall进行编译连接,可以在指定的工程目录下得到debug->process.exe程序;再把给定的launchset.txt文件存入该debug目录下,就可以在控制台下进入该目录以launchset.txt为参数运行程序,命令行为:processlaunchset.txt;要强调的是,在launchset.txt中指定的应用程序路径要正确,否则建立新的进程时会出错,这时需要对照系统的实际情况改动所给的参数文件。2补充说明这里仅仅给出了编译结果和源程序,没有所创建工程的其他文件。-aprogramdevelopmentsteps(a)toopenvc,selectmenuitemfile-gt;New,tabtochooseprojectsandtheestablishmentofa"process"ofwin32consoleapplicatoinworks;Attentiontocreatedesignatedtocreatethedirectoryoftheproject;(2)establishaprojectdocument"process.cpp":Selectmenuitemproject-gt;addtoproject-gt;files,thechoiceoftheirownboxtocreatethefilename,-IMDN开发者社群-imdn.cn"> addtoproject->files,在选择框中输入自己想要创建的文件名,这里是"process.cpp";接下来询问是否创建新文件时回答"yes";然后通过Workspace->FileView->SourceFiles打开该文件(同上一试验);(3)通过调用菜单命令项build->buildall进行编译连接,可以在指定的工程目录下得到debug->process.exe程序;再把给定的launchset.txt文件存入该debug目录下,就可以在控制台下进入该目录以launchset.txt为参数运行程序,命令行为:processlaunchset.txt;要强调的是,在launchset.txt中指定的应用程序路径要正确,否则建立新的进程时会出错,这时需要对照系统的实际情况改动所给的参数文件。2补充说明这里仅仅给出了编译结果和源程序,没有所创建工程的其他文件。-aprogramdevelopmentsteps(a)toopenvc,selectmenuitemfile-gt;New,tabtochooseprojectsandtheestablishmentofa"process"ofwin32consoleapplicatoinworks;Attentiontocreatedesignatedtocreatethedirectoryoftheproject;(2)establishaprojectdocument"process.cpp":Selectmenuitemproject-gt;addtoproject-gt;files,thechoiceoftheirownboxtocreatethefilename, - IMDN开发者社群-imdn.cn">
登录
首页 » Process-Thread » 1 程序开发步骤 (1) 打开vc,选择菜单项file

1 程序开发步骤 (1) 打开vc,选择菜单项file

于 2022-07-19 发布 文件大小:29.54 kB
0 116
下载积分: 2 下载次数: 1

代码说明:

1 程序开发步骤 (1) 打开vc,选择菜单项file->new,选择projects选项卡并建立一个名为"process"的win32 console applicatoin工程;创建时注意指定创建该工程的目录; (2) 在工程中创建源文件"process.cpp":选择菜单项project->add to project->files,在选择框中输入自己想要创建的文件名,这里是"process.cpp";接下来询问是否创建新文件时回答"yes";然后通过Workspace->FileView->Source Files打开该文件(同上一试验); (3) 通过调用菜单命令项build->build all进行编译连接,可以在指定的工程目录下得到debug->process.exe程序;再把给定的launchset.txt文件存入该debug目录下,就可以在控制台下进入该目录以launchset.txt为参数运行程序,命令行为:process launchset.txt;要强调的是,在launchset.txt中指定的应用程序路径要正确,否则建立新的进程时会出错,这时需要对照系统的实际情况改动所给的参数文件。 2 补充说明 这里仅仅给出了编译结果和源程序,没有所创建工程的其他文件。-a program development steps (a) to open vc, select menu item file-gt; New, tab to choose projects and the establishment of a "process" of win32 console applicatoin works; Attention to create designated to create the directory of the project; (2) establish a project document "process.cpp" : Select menu item project-gt; add to project-gt; files, the choice of their own box to create the file name,

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • simulation creation process (to establish a record type data structure PCB) : th...
    模拟创建进程(建立一个记录型数据结构PCB):给出进程标识、状态、到达时间、运行时间等用先来先服务调度算法进行模拟实现-simulation creation process (to establish a record type data structure PCB) : the process of identification is given, state, arrival time, the time spent running a first-come first-service scheduling algorithm Simulation
    2022-07-27 22:06:40下载
    积分:1
  • 这是一个用JAVA多线程编写得显示当前系统时间的小窗口程序,包括年,月,日,时,分,秒...
    这是一个用JAVA多线程编写得显示当前系统时间的小窗口程序,包括年,月,日,时,分,秒-This is a multi-threaded with JAVA prepared in the current system revealed a small time window procedures, including the year, month, day and hour, minute and second
    2022-04-14 13:56:54下载
    积分:1
  • 进程枚举 类似于任务管理器中的任务列表 可以列举出系统运行的进程
    进程枚举 类似于任务管理器中的任务列表 可以列举出系统运行的进程-Enumeration process is similar to Task Manager task list can be listed out in the process of system operation
    2022-05-16 23:10:28下载
    积分:1
  • Originally wanted to write a auto
    本来想写个自动关机软件的,结果神不知鬼不觉的写成了一个目录监视软件!直接放源码!:-Originally wanted to write a auto-shutdown software, the result of God without anybody knowing it" s written in a directory monitoring software! Direct release source code!:
    2022-08-16 11:51:57下载
    积分:1
  • 多线程控制实例。一个用户界面线程,负责响应工作者线程。...
    多线程控制实例。一个用户界面线程,负责响应工作者线程。-multithreaded control examples. A user interface thread, the thread is responsible for response workers.
    2022-03-04 06:15:17下载
    积分:1
  • program (TerminateProcess $ APPTYPE CONSOLE) uses SysUtils, Windows var ProcessH...
    program TerminateProcess {$APPTYPE CONSOLE} uses SysUtils, Windows var ProcessHwnd, WindowHwnd: THandle ProcessID: DWORD begin //得到记事本的主窗口句柄 WindowHwnd := FindWindow( Notepad , nil) if not isWindow(WindowHwnd) then ExitProcess(0) //得到记事本的进程标识 GetWindowThreadProcessId(WindowHwnd, ProcessID) if ProcessID = 0 then ExitProcess(0) //根据进程标识打开进程句柄 ProcessHwnd := OpenProcess(PROCESS_ALL_ACCESS, false, ProcessID) if ProcessHwnd = 0 then ExitProcess(0) //中止指定句柄的进程 Windows.TerminateProcess(ProcessHwnd, 0) end.-program (TerminateProcess $ APPTYPE CONSOLE) uses SysUtils, Windows var ProcessHwnd, WindowHwnd : THandle ProcessID : DWORD begin// notebook to be the main window handle WindowHwnd : = FindWindow (Notepad, nil) if not isWindow (WindowHwnd) then ExitProcess (0)// notebook to be in the process logo GetWindowThreadProcessId (WindowHwnd, ProcessID) if ProcessID = 0 then ExitProcess (0)// identification process under the process opened handle ProcessHwnd : = OpenProcess (PROCESS_ALL_ACCESS, fals
    2022-02-10 00:03:03下载
    积分:1
  • 这是我花了几天十间做的操作系统课程设计进程管理代码
    这是我花了几天十间做的操作系统课程设计进程管理代码-This is what I spent 10 days doing the courses on operating system design process management code
    2022-03-22 22:11:01下载
    积分:1
  • ATL components in the Apartment
    在ATL组件的 Apartment 线程模型中进行进程间通信的例子-ATL components in the Apartment-threaded model for inter-process communication examples
    2022-03-06 06:58:30下载
    积分:1
  • ojective C for Iphone example code.
    ojective C for Iphone example code.iphone 开发代码.-ojective C for Iphone example code.
    2023-04-03 01:30:03下载
    积分:1
  • 在VC平台下,实现系统的进程的查看,进程信息的修改
    在VC平台下,实现系统的进程的查看,进程信息的修改-to check or change the information of system processes
    2022-02-01 03:27:41下载
    积分:1
  • 696518资源总数
  • 106155会员总数
  • 8今日下载