游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1578|回复: 4

difference of "win32 application" and "win32 con

[复制链接]

5

主题

13

帖子

19

积分

新手上路

Rank: 1

积分
19
发表于 2006-2-15 16:44:00 | 显示全部楼层 |阅读模式
who can tell me :
the difference of "win32 application" and "win32 console application"

#include <windows.h>
#include <GL/gl.h>
#include <GL/glaux.h>
#include <glos.h>

#pragma comment(lib, "opengl32.lib" )
#pragma comment(lib, "glu32.lib" )
#pragma comment(lib, "GLAUX.LIB" )

void main(void)
{
auxInitDisplayMode(AUX_SINGLE|AUX_RGBA);
auxInitPosition(0,0,500,500);
auxInitWindow("simple");
glClearColor(0.0,0.0,0.0,0.0);
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(1.0,0.0,0.0);
glRectf(-0.5,-0.5,0.5,0.5);
glFlush();
_sleep(1000);
}

the program can be compiled in win32 console application,
but can't be compiled in win32 application.

65

主题

225

帖子

232

积分

中级会员

Rank: 3Rank: 3

积分
232
发表于 2006-2-15 17:11:00 | 显示全部楼层

Re:difference of "win32 application" and "win32 console appl

using WinMain for compiled in win32 application!

82

主题

331

帖子

340

积分

中级会员

Rank: 3Rank: 3

积分
340
QQ
发表于 2006-2-15 18:11:00 | 显示全部楼层

Re:difference of "win32 application" and "win32 console appl

Subsystem : console

24

主题

256

帖子

267

积分

中级会员

Rank: 3Rank: 3

积分
267
发表于 2006-2-16 09:08:00 | 显示全部楼层

Re:difference of "win32 application" and "win32 console appl

形像一点说,就是windows 和 dos 的区别

5

主题

13

帖子

19

积分

新手上路

Rank: 1

积分
19
 楼主| 发表于 2006-2-16 14:22:00 | 显示全部楼层

Re:difference of "win32 application" and "win32 console appl

已经明白拉!谢谢!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-1-23 11:48

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表