Path: csiph.com!aioe.org!2TQzTLcKUZZ5WFAX8/dq8w.user.gioia.aioe.org.POSTED!not-for-mail From: Boris Dorestand Newsgroups: comp.lang.c++ Subject: how to compile the bulk copy program Date: Fri, 07 May 2021 19:07:52 -0300 Organization: Aioe.org NNTP Server Lines: 38 Message-ID: <86sg2y42pz.fsf@example.com> NNTP-Posting-Host: 2TQzTLcKUZZ5WFAX8/dq8w.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: abuse@aioe.org Cancel-Lock: sha1:kzJUCzTFAsKCtQw0eEyI/+0hiQ0= X-Notice: Filtered by postfilter v. 0.9.2 Xref: csiph.com comp.lang.c++:79450 I'm trying to compile Pavel's bulk copy program https://github.com/zodiacon/Win10SysProgBookSamples/tree/master/Chapter11/BulkCopy Not a C++ programmer, nor a Windows person. I wonder if the context is on-topic. I also don't know which group would be more appropriate. With the WTL latest version obtained from https://wtl.sourceforge.io/ I get some compiler errors. I then tried to use the previous version of WTL, which dates back to 2015. I get other error messages. I suppose my problem is having either the wrong compiler or the wrong headers. Any directions you point me to will be useful. Thank you. (/) WTL 10, year 2020 ``c:\sys\emacs\usr\win\tmp\Win10SysProgBookSamples\Chapter11\BulkCopy>cl MainDlg.cpp Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29914 for x86 Copyright (C) Microsoft Corporation. All rights reserved. MainDlg.cpp MainDlg.cpp(33): error C2664: 'int WTL::CListViewCtrlT::InsertColumn(int,LPCTSTR,int,int,int,int,int)': cannot convert argument 2 from 'const wchar_t [7]' to 'LPCTSTR' MainDlg.cpp(33): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast`` [...] (/) WTL 9.1, year 2015 ``c:\sys\emacs\usr\win\tmp\Win10SysProgBookSamples\Chapter11\BulkCopy>cl MainDlg.cpp Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29914 for x86 Copyright (C) Microsoft Corporation. All rights reserved. MainDlg.cpp \sys\ms\WTL91_5321_Final\include\atlctrls.h(5101): error C2039: 'CString': is not a member of 'WTL' \sys\ms\WTL91_5321_Final\include\atlctrls.h(83): note: see declaration of 'WTL' [...]