游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1123|回复: 0

???如何?定?绦?n的icon?D示(在?n案?管看到的)

[复制链接]

414

主题

611

帖子

621

积分

高级会员

Rank: 4

积分
621
发表于 2005-6-19 11:39:00 | 显示全部楼层 |阅读模式
Create A Project of Win32 Concole Application(An application that supports MFC)
???如何?定?绦?n(.exe)的icon?D示(在?n案?管看到的)

#include "stdafx.h"
#include "test0001.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// The one and only application object

CWinApp theApp;

using namespace std;

int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
{
        int nRetCode = 0;

        // initialize MFC and print and error on failure
        if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0))
        {
                // TODO: change error code to suit your needs
                cerr << _T("Fatal Error: MFC initialization failed") << endl;
                nRetCode = 1;
        }
        else
        {
                // TODO: code your application's behavior here.
                CString strHello;
                strHello.LoadString(IDS_HELLO);
                cout << (LPCTSTR)strHello << endl;
        }

        return nRetCode;
}
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-12-26 02:12

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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