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 145
下载积分: 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 个回复

  • 这是一个用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
  • 经典进程同步和互斥另类WINDOWS解法.定义信号量机制在WINDOWS下完成哲学家进餐问题....
    经典进程同步和互斥另类WINDOWS解法.定义信号量机制在WINDOWS下完成哲学家进餐问题.-classical process synchronization and mutex WINDOWS alternative solution. Volume definition signal mechanism in Windows complete the dining philosophers problem.
    2022-06-14 07:22:38下载
    积分:1
  • 一个多线程同步问题. 哲学家进餐问题!! java实现
    一个多线程同步问题. 哲学家进餐问题!! java实现-a multithreaded synchronization. Dining Philosophers problem! ! Java Implementation
    2022-01-28 22:22:04下载
    积分:1
  • 进程通信的客户端程序
    进程通信的客户端程序-an client program of communication between processes
    2022-02-04 08:04:57下载
    积分:1
  • GPS数据采集程序.rar
    GPS数据采集程序.rar-GPS data collection procedures. Rar
    2022-07-26 03:48:41下载
    积分:1
  • 一个通用计时器控件
    一个通用计时器控件-a common timer control
    2022-10-16 04:25:03下载
    积分:1
  • the NT environment hidden process, the user is unaware of the conditions, the im...
    在NT环境下隐藏进程,也就是说在用户不知情的条件下,执行自己的代码的方法有很多种,比如说使用注 册表插入DLL,使用Windows挂钩等等。其中比较有代表性的是Jeffrey Richer在《Windows核心编程》中 介绍的LoadLibrary方法和罗云彬在《Windows环境下32位汇编语言程序设计》中介绍的方法。两种方法的 共同特点是:都采用远程线程,让自己的代码作为宿主进程的线程在宿主进程的地址空间中执行,从而达 到隐藏的目的。相比较而言,Richer的方法由于可以使用c/c++等高级语言完成,理解和实现都比较容易 ,但他让宿主进程使用LoadLibrary来装入新的DLL,所以难免留下蛛丝马迹,隐藏效果并不十分完美。罗 云彬的方法在隐藏效果上绝对一流,不过,由于他使用的是汇编语言,实现起来比较难(起码我写不了汇 编程序:))。笔者下面介绍的方法可以说是对上述两种方法的综合:采用c/c++编码,实现完全隐藏。并 且,笔者的方法极大的简化了远程线程代码的编写,使其编写难度与普通程序基本一致。-the NT environment hidden process, the user is unaware of the conditions, the implementation of their code There are various ways, for instance, the use of the registry into DLL, etc. linked to the use of Windows. The more representative Jeffrey Richer is the "core Windows programming" introduced by the LoadLibrary method and the Luo Bin, "under Windows 32 assembly language programming" introduced by the method. Two methods are common features are : remote threads are used to keep the code as host process threads in t
    2022-03-23 05:27:10下载
    积分:1
  • 用于PPC的多线程使用范例,MFC,适用于初学者
    用于PPC的多线程使用范例,MFC,适用于初学者-PPC for the use of multi-threaded model, MFC, applicable to beginners
    2022-02-03 04:50:09下载
    积分:1
  • use of the system on which the thread is being executed
    利用api获得系统中正在执行的线程-use of the system on which the thread is being executed
    2022-08-12 08:03:09下载
    积分:1
  • 窗口多线程编程最基本的介绍实例
    windows多线程编程最基础的入门例子-windows multithreaded programming most basic introductory examples
    2022-02-24 13:50:42下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载