|
|
Comments and Discussions
|
|
 |

|
edit wtlapp70.vsz
modify the second line:
Wizard=VsWizard.VsWizardEngine
to Wizard=vsWizard.VsWizardEngine.7.1
save
OK
good luck
|
|
|
|
|

|
Well ... i am on dialup and dont intend to download the platform sdk again. and the wtl 3.1 link seems to be removed. now all i can find in msdn is wtl 7.0 and they say its compatible with Visual Studio 6.0. so ... whats this big jump from 3.1 to 7?
http://download.microsoft.com/download/VisualStudioNET/Install/7.0/WXP/EN-US/WTL70.exe
-Tareq
|
|
|
|

|
There are only two versions of WTL, 3.1 and 7. 3.1 was named because ATL was at v3.1 at the time. 7 is so named to match up with the Visual C++ version.
--Mike--
"I'm working really, really fast at the moment, so a 3 minute outage becomes, due to time dilation, a 5 minute outage."
-- Chris Maunder, relativistic system administrator
Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber
|
|
|
|

|
In the first paragraph we read:
In the beginning when ATL appeared, developers were happy.... Well the happiness ended soon after when we found that we had to write code wrappers for any of the window's controls we wanted to use.
Some explanation of this would be good???
aaaaaaaaaaaaaaa
|
|
|
|

|
Search WTL on MSDN
WTL allows developers to avoid writing tedious WinAPI routines. It also provides a lightweight framework for UI programming, which leaves much smaller footprint than MFC.
However, WTL is not supported or documented by it's creators.
R.Bischoff | C++
.NET, Kommst du mit?
|
|
|
|

|
Who can tell me how to install wtl31.exe on my VC++ ?
I want to complier a sample but there is a error . The
error message is "fatal error C1083: Cannot open include file: 'atlctrls.h': No such file or directory"
I have the wtl31.exe but I don't know how to use .
please everyone send e-mail tell me how to do .
my e-mail is "goldchicken2000@yahoo.com.tw"
|
|
|
|

|
Get the WTL 7.0 version (search here in codeproject for a link). WTL7.0 contains some bug fixes and enhancements.
unpack the wtl70.exe somewhere. There are .js files for both VC++ 6.0 and .NET. Add the include directory to the ide/project options, and it should work.
R.
|
|
|
|

|
Ramon Casellas
Sorry , i don't know what is the meaning of "ide/project options".
I download the WTL 7.0 , unpack it , run the setup.js and
make new directory(WTL\include) to the C:\~\Microsoft Visual Studio\VC98\include but run the demo program will find a error . I see the readme.htm but can't solve the problem . Please teach me detail .
|
|
|
|

|
1.Copy the .h files in WTL's include directory to VC's include directory.
2.Suppose your vc is under D:,copy the AtlApp60.Awx in WTL's appwiz directory to
D:\Microsoft Visual Studio\Common\MSDev98\Bin\IDE,
that is ok!then when u open vc Wizard,u will see an extral project to choose "WTL project".
Hope u enjoy it!
xc
|
|
|
|

|
but I found that the WTL7.0 example programes couldn't be passed the compiling I don't know the reason the compiling result is shown below:
atlframe.h(274) : error C2146: syntax error : missing ';' before identifier 'lpnm'
the reason is the source code appears like this:
LPNMREBARCHEVRON lpnm;
my question is which head file include the defination of
"LPNMREBARCHEVRON "?
I am interesting in programming with VC++. I hope to meet the net freinds with the same interesting. I am glad to know the better programmer on internet.
|
|
|
|

|
I had the same problem compiling MTPad in VC++6.0. I change the following line in stdatl.h
#define _WIN32_IE 0x0501
to
#define _WIN32_IE 0x0400
and the compile well ...
|
|
|
|

|
I had the same problem compiling MTPad in VC++6.0. I change the following line in stdatl.h
#define _WIN32_IE 0x0501
to
#define _WIN32_IE 0x0400
and the compile well ...
--------------------------------
I see...but I had other problem;
Can you mail your code to me ?
Thanks.
my email "zhanghao@newlandcomputer.com"
|
|
|
|

|
sorry,When i create new project I have same error, I changed same way as you but it reported error
Ru ao phong suong tren gac tro...
|
|
|
|

|
Try removing (or modifying) the following lines in stdatl.h:
#define WINVER 0x0500
#define _WIN32_WINNT 0x0500
#define _WIN32_IE 0x0501
|
|
|
|

|
1.Copy the .h files in WTL's include directory to VC's include directory.
2.Suppose your vc is under D:,copy the AtlApp60.Awx in WTL's appwiz directory to
D:\Microsoft Visual Studio\Common\MSDev98\Bin\IDE,
that is ok!then when u open vc Wizard,u will see an extral project to choose "WTL project".
Hope u enjoy it!
Sorry, I just downloaded the WTL 7.5. There is no longer available for "AtlApp60.Awx" anymore. Although I can go back to download the ver7.1, I just curios how to solve for installation on VC6 for ver 7.5.
-- modified at 23:46 Sunday 1st January, 2006
|
|
|
|

|
Hello, I am a new programmer (self learning) and am trying to access an agent with WTL. (actually if I can get the darn thing to load and say or do something would be great!!) However I am finding very little information about WTL. I do have the Microsoft SDK installed as well as the MsAgent docs and everything else I need for the agent. However the MS documentation (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msagent/paface_2lnp.asp) for programming the Agent appears to be very confusing. When I enter the first block of code (CoCreateInstance) I start getting errors. Basically I'm uncertain as to what goes where. As I understand I need the 'Enable ActiveX Control Hosting' checked. Any chance someone would be kind enough to create an SDI app and show where the code the MSAgent docs illustrate are suppose to go?
Thank You
Mike
|
|
|
|

|
Help me please ...
I have an existing MFC dll project.
I was given sample code in WTL, implementing a specific WTL CRichEditCtrl in a CMainFrame.
I need to roll this into my existing MFC dll.
Can I? How?
|
|
|
|

|
I was browsing around some for some XML stuff at Microsoft and found this link in the download section. It allows you to download just WTL 3.1 in a zip file.
http://msdn.microsoft.com/msdn-files/027/001/586/wtl31.exe
or just go to
http://msdn.microsoft.com/downloads/default.asp
and Drill Down to Visual Studio->Visual C++->Windows Template Library
|
|
|
|

|
I want to implement a dialog box that contains a list box. Does anyone have sample WTL code that shows how to use CListBox?
|
|
|
|

|
look this template that you can use to implement Any standard control that you want , also you can take a look on the first lines of Atlctrls.h.
CDDXControl m_Combo;
CDDXControl m_ListBox;
template
class CDDXControl :public CWindowImpl
{...}
// Dialog.h: interface for the CDialog class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_DIALOG_H__BA6F9366_51A8_40EE_8B49_02EFF9943BBB__INCLUDED_)
#define AFX_DIALOG_H__BA6F9366_51A8_40EE_8B49_02EFF9943BBB__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Atlctrls.h"
#include "AtlDdx.h"
#include "AtlMisc.h"
#include "resource.h"
template
class CDDXControl :public CWindowImpl
{
public:
BEGIN_MSG_MAP(CDDXControl)
// put your message handler entries here
END_MSG_MAP()
};
class CDialog : public CAxDialogImpl,
public CWinDataExchange
{
public:
enum { IDD = IDD_DIALOG1};
CDDXControl m_Combo;
BEGIN_MSG_MAP(CDialog)
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
MESSAGE_HANDLER(WM_CLOSE, OnClose)
COMMAND_HANDLER(IDOK, BN_CLICKED, OnOK)
COMMAND_HANDLER(IDCANCEL, BN_CLICKED, OnCancel)
END_MSG_MAP()
BEGIN_DDX_MAP( CDialog )
DDX_CONTROL(IDC_COMBO1, m_Combo)
END_DDX_MAP()
LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
DoDataExchange();
return 1; // Let the system set the focus
}
CDialog();
virtual ~CDialog();
LRESULT OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
// TODO : Add Code for message handler. Call DefWindowProc if necessary.
EndDialog(0);
return 0;
}
LRESULT OnOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
{
// TODO : Add Code for control notification handler.
m_Combo.AddString("Otraaaaa");
return 0;
}
LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
{
// TODO : Add Code for control notification handler.
char buff[1024]="";
m_Combo.GetLBText( m_Combo.GetCurSel(), buff );
MessageBox( buff );
return 0;
}
};
#endif // !defined(AFX_DIALOG_H__BA6F9366_51A8_40EE_8B49_02EFF9943BBB__INCLUDED_)
|
|
|
|

|
Damn html code!!!
template <class TControlType>
class CDDXControl :public CWindowImpl
{
public:
BEGIN_MSG_MAP(CDDXControl)
// put your message handler entries here
END_MSG_MAP()
};
CDDXControl<CComboBox> m_Combo;
|
|
|
|

|
It seems that many people are able to download WTL from the Microsoft Platform SDK except for myself.
I keep getting an error message.
Does anyone have a tip on how to get WTL
|
|
|
|

|
Hi
As I am connected to Internet via somethink like 20kb modem, the
official fancy installer of Platform SDK is very unfriendly for me.
Because of that I perfectly understand those who are asking
questions like ascet even when they know that it is in Platform SDK.
Unfortunately, the WTL is probably not available separately (it
would be something like 162KB zip file).
Fortunately, it is possible to download a single cabinet file
(approximately 800KB) to install WTL (only the .h files).
Firstly, get the following cabinet file (you can just copy
the following line to the Internet Explorer, or you can use some
ftp client to do that):
ftp://ftp.microsoft.com/developr/PlatformSDK/Oct2000/psdk-common.48.cab
The size of the cabinet for Oct2000 is 893058 bytes.
Then create, let's say, WTLextract.bat file and copy the following
lines into it:
----------------------------------------------------------------
mkdir WTL
extract /L WTL psdk-common.48.cab Atl*.*
cd WTL
rename AtlApp_h.A1000D79_C485_4CB3_8AB0_B6D38ED2B38C AtlApp.h
rename AtlCrack_h.A1000D79_C485_4CB3_8AB0_B6D38ED2B38C AtlCrack.h
rename AtlCtrls_h.A1000D79_C485_4CB3_8AB0_B6D38ED2B38C AtlCtrls.h
rename AtlCtrlw_h.A1000D79_C485_4CB3_8AB0_B6D38ED2B38C AtlCtrlw.h
rename AtlCtrlx_h.A1000D79_C485_4CB3_8AB0_B6D38ED2B38C AtlCtrlx.h
rename AtlDdx_h.A1000D79_C485_4CB3_8AB0_B6D38ED2B38C AtlDdx.h
rename AtlDlgs_h.A1000D79_C485_4CB3_8AB0_B6D38ED2B38C AtlDlgs.h
rename AtlFrame_h.A1000D79_C485_4CB3_8AB0_B6D38ED2B38C AtlFrame.h
rename AtlGdi_h.A1000D79_C485_4CB3_8AB0_B6D38ED2B38C AtlGdi.h
rename AtlMisc_h.A1000D79_C485_4CB3_8AB0_B6D38ED2B38C AtlMisc.h
rename AtlPrint_h.A1000D79_C485_4CB3_8AB0_B6D38ED2B38C AtlPrint.h
rename AtlRes_h.A1000D79_C485_4CB3_8AB0_B6D38ED2B38C AtlRes.h
rename AtlScrl_h.A1000D79_C485_4CB3_8AB0_B6D38ED2B38C AtlScrl.h
rename AtlSplit_h.A1000D79_C485_4CB3_8AB0_B6D38ED2B38C AtlSplit.h
rename AtlUser_h.A1000D79_C485_4CB3_8AB0_B6D38ED2B38C AtlUser.h
----------------------------------------------------------------
Then run this batch in the directory where the cabinet file
is stored. The WTL subdirectory is created and filled with the
files. Copy the content to your "WTL/Include" subdirectory.
Notice: the previous version of WTL was placed in the cabinet
file of the same name. It is likely that the next version
will be inside of the cabinet with the same name.
Warning: AtlGdi.h still contains a bug in the
CDCT<>::GetTabbedTextExtent(). See the message
with subject "WTL 3.1: bug in AtlGdi.h (repost from 6 Oct)"
Enjoy,
Petr
P.S. The psdk-common.48.cab apparently contains also WTL examples.
If anybody knows more details on which files should be extracted, where
they should be placed, or whether other cabinets contains parts of WTL,
please post some hints.
--
Petr Prikryl, SKIL s.r.o.
|
|
|
|

|
Thanks for your great solution. After trying several times to run the Windows Installer, I did it your way and finally I have WTL 3.1
|
|
|
|
 |
|
|
General News Suggestion Question Bug Answer Joke Rant Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.
|
The 'what' and 'where do I get it' of WTL
| Type | Article |
| Licence | |
| First Posted | 29 Apr 2000 |
| Views | 314,199 |
| Bookmarked | 73 times |
|
|