小编Leo*_* F.的帖子

Windows应用程序退出代码列表

我在哪里可以获得Windows应用程序的退出代码列表?

windows exit-code

12
推荐指数
2
解决办法
1万
查看次数

链接Borland C++ 3.1中的图形库

我想在DOS应用程序中使用图形库.我添加#include <graphics.h>到我的源文件并使用密件抄送构建应用程序:

bcc -3 -ms  -P -IC:\BC3\INCLUDE -LC:\BC3\LIB AMtest.c ExtMem.ASM 
Run Code Online (Sandbox Code Playgroud)

但是,我收到链接错误:

Turbo Link  Version 5.1 Copyright (c) 1992 Borland International

Error: Undefined symbol _closegraph in module amtest.c
Error: Undefined symbol _outtext in module amtest.c
Error: Undefined symbol _moveto in module amtest.c
Error: Undefined symbol _settextstyle in module amtest.c
Error: Undefined symbol _setcolor in module amtest.c
Error: Undefined symbol _settextjustify in module amtest.c
Error: Undefined symbol _graphresult in module amtest.c
Error: Undefined symbol _initgraph in module amtest.c
Run Code Online (Sandbox Code Playgroud)

graphics.lib …

c dos borland-c++

5
推荐指数
1
解决办法
1267
查看次数

SetSuspendState的问题

我写了一个小应用程序进入待机模式:

#include "stdafx.h"
#include <windows.h>
#include <PowrProf.h>

int _tmain(int argc, _TCHAR* argv[])
{
   SetSuspendState(FALSE, FALSE, FALSE);

   return 0;
}
Run Code Online (Sandbox Code Playgroud)

我收到此错误:1> Standby.obj:错误LNK2001:未解析的外部符号_SetSuspendState @ 12 1> C:\ Documents and Settings\Sobak\Desktop\Standby\Release\Standby.exe:致命错误LNK1120:1未解析的externalsexternals

我该如何解决?

PS我使用Visual Studio 2005

先感谢您.

c++ windows windows-xp standby

3
推荐指数
1
解决办法
1324
查看次数

标签 统计

windows ×2

borland-c++ ×1

c ×1

c++ ×1

dos ×1

exit-code ×1

standby ×1

windows-xp ×1