标  题: 如何设定进程的优先级
发信人: sworm (sworm), 信区: VisualC
发信站: BBS 水木清华站 (Fri Oct 16 17:21:23 1998)


我的代码如下:
CAgentApp theApp;
SetPriorityClass((void *)GetCurrentProcess(),1);
但是提示我的错误是:
C:\Yunkong Sources\Agent\Agent.cpp(50) :
 error C2501: 'SetPriorityClass' : missing decl-specifiers
C:\Yunkong Sources\Agent\Agent.cpp(50) : error C2040: 'SetPriorityClass' :
 'int' differs in levels of indirection from 'int (void *,unsigned long)'
请问是怎么回事,多谢了:)

--

--
☆ 来源:.哈工大紫丁香 bbs.hit.edu.cn.[FROM: yazhou.bbs@bbs.net.t]
※ 修改:.fzx 于 Aug  9 16:51:19 修改本文.[FROM: heart.hit.edu.cn]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:1.927毫秒