Questions tagged [wtl]

The Windows Template Library (WTL) is an open source, object-oriented C++ template library for Win32 development. It is a lightweight alternative to the Microsoft Foundation Classes (MFC).

Sourceforge site - this is where to get the latest WTL download

MSDN Articles - February 2013 - a series of articles using WTL with . WIC Explorer

Codeproject - Particularly Michael Dunn's Series of articles

Developmentor One Two - documentation

Bjarke Viskoe - WTL applications with source code

Yahoo mailing list - (requires login) official WTL community, replicated on Gmane*

WTL works with & including Community Edition and previous professional and above versions, on all windows versions

*The Gmane link is currently unavailable, see http://gmane.org/about/

237 questions
26
votes
1 answer

Errors in Windows - DWORD (GetLastError) vs HRESULT vs LSTATUS

I'm doing some programming in Win32 + WTL, and I'm confused with the available types of errors. In general, I want to check for an error, and feed it to AtlGetErrorDescription (which calls FormatMessage). My questions are: What's the difference…
Paul
  • 6,061
  • 6
  • 39
  • 70
25
votes
5 answers

How to add WTL and ATL to visual studio c++ express 2008

I start using the visual studio c++ express 2008 at home but there is no ATL in it. How can I add ATL to visual studio c++ express 2008?
Oren F
21
votes
3 answers

Is WTL (Windows Template Library) still maintained and should I use it to create new Windows programs in C++?

I'm interested if I still should use WTL to write Windows applications? I really like how it's written but does anyone know if it is still maintained? (Maybe there is a port that someone maintains unofficially?) If WTL is not recommended to write…
bodacydo
  • 75,521
  • 93
  • 229
  • 319
14
votes
6 answers

How to write modern Windows software in C++?

I am very interested in how modern Windows software is written in C++ nowadays. I asked my friend who had worked on Windows software and he told that last things he worked with were MFC and then WTL. He said that MFC is no longer anything modern but…
bodacydo
  • 75,521
  • 93
  • 229
  • 319
11
votes
3 answers

What is the difference between ATL and WTL?

I know "WTL builds on ATL", but what does that mean in practical terms? Is ATL a subset of WTL in terms of features? (i.e. are ALL features in ATL also present in WTL?) I notice Wikipedia states ATL's development status is "current" whereas WTL's…
user1002358
  • 2,852
  • 6
  • 22
  • 32
6
votes
2 answers

How can I install WTL 8.0 Project Wizards in VS 2010?

I've downloaded the WTL 8.0 package and come to find the scripts to install App Wizards don't support VS 2010. Does anyone know of updates scripts to support installation in VS 2010? Thank you!
BigBrother
  • 1,100
  • 1
  • 9
  • 17
6
votes
4 answers

What is Microsoft using as the data type for Unicode Strings?

I am in the process of learning C++ and came across an article on the MSDN here: http://msdn.microsoft.com/en-us/magazine/dd861344.aspx In the first code example the one line of code which my question relates to is the…
REA_ANDREW
  • 10,666
  • 8
  • 48
  • 71
5
votes
1 answer

Tooltip text truncated

I found out that sometimes, the text on my tooltip is not fully displayed. Here's an example for such text: WWWWW WWWW, WW WWWWWWWW WWWWWWWWWW WWWWWWWWWWWWW WWWWWWWWW Screenshot: My tooltip creation code (WTL): CToolTipCtrl tooltip; TOOLINFO…
Paul
  • 6,061
  • 6
  • 39
  • 70
5
votes
4 answers

Simplest way to change listview and treeview colours

I'm trying to find a simple way to change the colour of the text and background in listview and treeview controls in WTL or plain Win32 code. I really don't want to have to implement full owner drawing for these controls, simply change the colours…
Simon Steele
  • 11,558
  • 4
  • 45
  • 67
5
votes
3 answers

WTL on Windows 10

Has anyone used WTL on Windows 10 already? All applications that I create with WTL segfault on Windows 10. They work on Windows 8 and Windows 7. I even tried the most basic Hello-World application in WTL on Windows 10 and it segfaults when I run…
bodacydo
  • 75,521
  • 93
  • 229
  • 319
5
votes
2 answers

Does ATL/WTL still require the use of a global _Module variable?

I'm just starting up a new ATL/WTL project and I was wondering if the global _Module variable is still required? Back a few years when I started working with WTL it was required (at least for ATL 3.0) that you define a global variable such…
Dominik Grabiec
  • 10,315
  • 5
  • 39
  • 45
5
votes
1 answer

How do ATL/WTL alternative message maps (ALT_MSG_MAPs) work? When do I use them?

I've read the documentation, which says: ATL supports alternate message maps, declared with the ALT_MSG_MAP macro. Each alternate message map is identified by a unique number, which you pass to ALT_MSG_MAP. Using alternate message maps, you can…
user541686
  • 205,094
  • 128
  • 528
  • 886
5
votes
2 answers

How to delete a pointer to a modeless dialog in WTL

in MainDlg Function LRESULT CMainDlg::OnDo(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled) { CMyDlg* dlg = new CMyDlg;// it could be CMainDlg member var //dlg.pMain = this; // i want to SendMessage(pMain.m_hWnd...) in…
fazhang
  • 485
  • 6
  • 13
4
votes
2 answers

Should I use CString, basic_string, or something else with ATL/WTL?

I've only learned a little bit of ATL in the last couple of days (after realizing how much pain pure Win32 is) and also learned about WTL and MFC, and from what I see, there are quite a few different string classes available for me. I used to do…
user541686
  • 205,094
  • 128
  • 528
  • 886
4
votes
1 answer

How to catch the "tab changed" event in a property sheet

How to catch and handle the notification about that the currently selected tab has changed in the class derived from CPropertySheetImpll? I added TCN_SELCHANGE handler to message map but a peoperty sheet has never recieved this notification. I use…
Vitaly
  • 597
  • 1
  • 5
  • 12
1
2 3
15 16