This site is support & information site of WEB,and Software. This site might help you that create software or Web Site…perhaps?[:]

VC + + 2008 Express to compile the sample using WTL and Preferences

Published on| April 24th, 2009 | No Comment.
First, install
Details of the installation, there are so many sites listed, please see there. Just follow the screen to install.

  1. Visual C + + 2008 Express Edition installed
  2. WindowsR Server 2003 SP1 Platform SDK, or (R2) Installation
  3. After the installation WTL, WTL for 2008 put the installation wizard to create applications.
    1. WTL for installation, ZIP and extract the files to copy.
    2. Installation of WTL in AppWiz setup90x.js running.
    For more information, http://www.sfc.wide.ad.jp/ ~ irino/blog/2008/09/visual-c-2008-expressappwizwtl8.php.
    In fact, I, setup80x.js copy and use it to reorganize themselves to fit in, not being as above, did not know until recently.
    So, it is not used, because our ancestors have been published, please use there.
    The following is just the author, which are randomly reorganized.
    We saved up for this site. (If you have no link above, Please click here if you do not mind. )

  4. Visual C + + 2008 Express Edition to the directory, WTL and directories, Platform SDK include directory to add the ATL.
    [Tools] -> [Optional] -> [Solutions and Projects -> [VC + + directory] -> In the Show directories: [Include files] Add
    • % Platform SDK installation directory% \ Include (example: C: \ Program Files \ Microsoft Platform SDK \ Include)
    • % Platform SDK installation directory% \ Include \ atl (example: C: \ Program Files \ Microsoft Platform SDK \ Include \ atl)
    • % WTL installation directory% \ Include (example: C: \ WTL80 \ include)
Installation, is done, ATL for an older version of the latest compiler, you may become an error.
Therefore, the following must not modify the files.
  • % Platform SDK installation directory% \ Include \ atl \ atlwin.h
  • % Platform SDK installation directory% \ Include \ atl \ atlbase.h
  • atlwin.h in 1725 to change the following line per
    	BOOL SetChainEntry(DWORD dwChainID, CMessageMap* pObject, DWORD
    	dwMsgMapID = 0)
    	    int i;
    	    // first search for an existing entry
    	    for(i = 0; i < m_aChainEntry.GetSize(); i++)

  • 287 atlbase.h of change around the following line
    /* Comment it
    	PVOID __stdcall __AllocStdCallThunk(VOID);
    	VOID __stdcall __FreeStdCallThunk(PVOID);
    	#define AllocStdCallThunk() __AllocStdCallThunk()
    	#define FreeStdCallThunk(p) __FreeStdCallThunk(p)
    	#pragma comment(lib, "atlthunk.lib")
    	#define AllocStdCallThunk() HeapAlloc(GetProcessHeap(), 0, sizeof(_stdcallthunk))
    	#define FreeStdCallThunk(p) HeapFree(GetProcessHeap(), 0, p)
See also: http://www.codeproject.com/KB/wtl/WTLExpress.aspx
Let's compile a sample
WTL has a standard with a simple example. We have compiled a sample of what is expected to get the right environment.

% WTL installation directory% \ Samples \ MTPad directory "MTPad.dsw" Let's start.
Old automatically Visla C + + I will then update to the latest project.

The end of the conversion, after it finished reading file, try to implement a build.
End compilation! ! Link fails! !
I hope you receive a message like the following.
And links ...
CVTRES: fatal error CVT1100: duplicate resource. Type: MANIFEST, name: 1, language: 0x0409.
LINK: fatal error LNK1123: COFF failure during conversion to: What file is invalid, or broken. .
BIRUDOROGU is "file: / / c: \ WTL80 \ Samples \ MTPad \ Debug \ BuildLog.htm" was saved. .

This is the way to an old set of resource files in Visual C + + 2008 can not become an error.
If you remove the following line, you can link.
MTPad.rc 43 lines
"CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST" "res \ \ \ \ MTPad.exe.manifest" "\ r \ n"
MTPad.rc 399 lines
When you link, let's run.
When you see the following screen, OK.

WTL is a free development environment, you can build, you can use in commercial and more on licensing, LGPL also not allowed to force a description such as reverse engineering, may be used with confidence may.
But is the problem in the future. WTL is so, so not popular with the library developers will upgrade properly, our worries are what will. The minutes are not popular, few articles on the Web, the amount of information, MFC, compared to a lot less.
Salvation is the best, it can exist in all the source code on hand.

Based on the above, do mind that the library would certainly convenient.

Articles: ResEdit resource editor, and VC + + 2008 Exp. To be linked to

  • はてなブックマークへ追加する
  • Facebookでシェアする
  • twitter でつぶやく
  • Google Plusでシェアする
  • Pocketでシェアする