|
|
Comments and Discussions
|
|
 |

|
hi,now i'm using vs2010 and not support your WTL helper, can you help me?
|
|
|
|
|

|
I've just checked out the version of WTLHelper that free2000fly has posted on SourceForge (see message below). Here is the list of fixes that need to be done to code to make it TRULY functional under VS 2008:
1) Initializers don't get added to class constructors if the class constructor already exists. If you add a new variable and specify an initial value, the addition will fail with the message "Cannot add function {constructor name}" if the constructor already exists. Here is the fix:
replace
if (pFunc->Kind == EnvDTE::vsCMFunctionConstructor)
with
if (pFunc->Kind & EnvDTE::vsCMFunctionConstructor)
in file InsertPoint.cpp
the reason is that function can have multiple flags, not just vsCMFunctionConstructor
2) There is no WTL 8.0 listed in the options. It turns out that to add support for WTL 8.0 you only need to do the following:
replace
ComboVersion.AddString(_T("WTL 7.5"));
with
ComboVersion.AddString(_T("WTL 7.5"));
ComboVersion.AddString(_T("WTL 8.0"));
in file CommonOptForm.cpp
Most of the code to support WTIL 8.0 is already there, with only combo box entry missing.
3) Right now the new variables being inserted into class are all added on the same line, without line breaks. This clutters the code after a while and look plain ugly. Example: int m_iEdit1;CString m_strEdit1;UINT m_uiEdit1;float m_fltEdit1;. Still looking to solve this.
4) Last but not least. Since VS 2003 (or 2005, not sure) WTLHelper no longer shows up in context menu when you right-click a dialog control in resource editor. Still looking to solve this.
Please help with this last issues, guys! Lets revive the project! Long live WTL!
modified on Sunday, May 17, 2009 1:26 AM
|
|
|
|
|

|
Can it work with eVC4?
Thanks.
|
|
|
|
|

|
Thanks, you did a great job!!!
But recently, I've upgrade my WTL Helper to 1.18 from 1.16. But the newer version make my vs2003 SP1 crash every time it exit.
After I debug it, i found that problem is cause by release a ComPtr that already release. I list the code below.
first, you init the member variable "m_sCustomProperties" of CCustomProjectSettings at line 165 in the file "Connect.cpp" by this:
CCustomProjectSettings::m_sCustomProperties.Init(m_pDTE);
but the "m_sCustomProperties" is a static member variable, so it will be destroied after you release <b>m_pDTE in the OnDisconnection resides the "connect.cpp" by this:
m_pDTE.Release();
after then, the desctructor of CCustomProjectSettings tried to releases its mebmer variable "m_sCustomProperties", of cause, this will crashes because "m_pDTE" has been destroied!
Is that correct?
Luengz Hinj Nwngz
modified on Thursday, February 28, 2008 11:15 AM
|
|
|
|

|
I saw a couple of libid definition for VS 2005 in stdafx.h. I suppose they have to be changed in order to build for VS 2008. But I have no idea how. Could someone provide some hints? Thanks.
|
|
|
|

|
HI
Can you Add information for DDX Map Dialog: add the variable type in list_box ,such as :
Old ID Variable
IDC_CHECK1 m_bCheck1
New ID Variable Variable Type
IDC_CHECK1 m_bCheck1 BOOL
thinks
|
|
|
|

|
when i setup the program and try to open the VS.Net 2005 i get an error message tell me that the class is not registered
|
|
|
|

|
WM_TIMER + New Style:
MSG_WM_TIMER(OnTimer)
LRESULT OnTimer(UINT id, TIMERPROC lpTimerProc);
but see in \WTL80_7161\include\atlcrack.h:
// void OnTimer(UINT_PTR nIDEvent)
#define MSG_WM_TIMER(func) \
if (uMsg == WM_TIMER) \
{ \
SetMsgHandled(TRUE); \
func((UINT_PTR)wParam); \
lResult = 0; \
if(IsMsgHandled()) \
return TRUE; \
}
see also other new style handlers.
(WTL Helper 1.1.8)
|
|
|
|

|
WTL Helper inserts:
MSG_WM_TIMER(OnTimer)
LRESULT OnTimer(UINT id, TIMERPROC lpTimerProc);
But atlcrack.h from WTL 8.0 defines MSG_WM_TIMER as follows:
// void OnTimer(UINT_PTR nIDEvent)
#define MSG_WM_TIMER(func) \
if (uMsg == WM_TIMER) \
{ \
SetMsgHandled(TRUE); \
func((UINT_PTR)wParam); \
lResult = 0; \
if(IsMsgHandled()) \
return TRUE; \
}
|
|
|
|

|
There is a project aiming at designing a unified icon collection, may be they can help you.
Tango Desktop Project
|
|
|
|

|
When some solution (contained only MFC projects) is loaded into Visual Studio .NET SP1 and I click "Close" button to exit VS it crashes with the error in wtlhelper.dll. Empty VS closes OK.
P.S.
OS - WinXP Pro SP2 Eng with all updates (except IE7).
|
|
|
|

|
So far this has been working like a charm on VS 2005 (Vista) with WTL 8.0 and a Windows Mobile 5 project. Can I vote 5 again?
Regards,
João Paulo Figueira
DAD MVP
|
|
|
|

|
---------------------------
Microsoft Visual Studio
---------------------------
The Add-in 'WTL Helper' failed to load or caused an exception.
Would you like to remove this Add-in?
If you choose yes, you will need to reinstall the Add-in to use it again.
Error Message: Class not registered
Error number: 80040154
---------------------------
Yes No
---------------------------
::_-_
I believe in luck and i find that the harder I work,
the more I have of it _-_::
|
|
|
|

|
When adding a handler for an action (i.e. OnButtonClick), the method itself gets inserted at the very end of the cpp file. But if you surrounf your code with namespace, the handler body appears beyond the namespace closing brace.
I hope I described the problem clearly.
P.S. Thanks, Sergey, for a great project! It's very useful.
|
|
|
|

|
I can get rid of MFC at all and switch to ATL/WTL even if I want to write GUI app.
That's really an amazing plugin, just keep on your great work!
The issue I found is WTLHelper8.dll needs dynamic link with VISUAL C++ 2005 SP1 msvcr80.dll, but I haven't updated to SP1, so the add-on failed to load.
The simple solution is that downloading corresponding module from MICROSOFT website at http://download.microsoft.com/download/e/1/c/e1c773de-73ba-494a-a5ba-f24906ecf088/vcredist_x86.exe
Otherwise, you can build the project by yourself. But please attention, you need copy msi.lib from Platform SDK to VS2005 platform SDK, and set project option "Embed manifest" to "No" in Manifest Tool page. And only for ReleaseStaticCRT configuration, you need to change all Addin* to Addin8* in MIDL page.
After that, you should be able to build successfully.
Thanks
Oliver
-- modified at 13:43 Sunday 20th May, 2007
|
|
|
|

|
Off topic a bit, just had to say that if I spoke any other language as well as you "don't speak English very well" I'd be a much happier man.;)
|
|
|
|

|
An error occured while compiled the WtlHelper project:
...\stdafx.h(115) : warning C4192: automatically excluding 'IServiceProvider' while importing type library '6B96E914-4E98-44D6-BD67-173694B10F37'
...\stdafx.h(115) : error C4772: #import referenced a type from a missing type library; '__missing_type__' used as a placeholder
WtlHelper - 1 error(s), 13 warning(s)
Could anyone help to solve that?
Thanks!
|
|
|
|

|
Please kindly add the support for VS2005,
I try to get your code run under VS2005, and failed
plz add support for VS2005
|
|
|
|

|
I have a number of problems in compiling this for VC2005.
The first problem is an error on line 115 of stdafx.h:
error C4772: #import referenced a type from a missing type library; '__missing_type__' used as a placeholder
If you then build again (not rebuild all) this error disappears, but then MSI.LIB cannot be linked.
I have noticed that MSI.LIB does not seem to exist for 2005, but I do also have 2003 on the machine I am building it on and so I have pointed the linker to that.
I then get the error:
CVTRES : fatal error CVT1100: duplicate resource. type:MANIFEST, name:2, language:0x0409
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt.
I have just found out that you can get rid of the above error by going into the project options and going to Manifest Tool\Input and Output and changing "Embed Manifest" to No.
The reason I am trying to compile this is because the installer only seems to work on my instance of VC2003 and not on VC2005.
|
|
|
|

|
I have used you wonderful WtlHelper in vs2003 and now I need to dev under vc6, I find it sees not work in vc6, I try to load it manuly in tool->customize->add-ins and macro files, but get the following message:"connect class in c:\program files\wtl helper\wtlhelper.dll unable to load this add-in. its server object was created, but failed to connect. This add-in will not be loaded by default in the future"
can you help me?
nothing~~~~
|
|
|
|

|
Thank you for your art! I really like your WTL-Helper! One day, while I was coding, I made a silly mistake that I did not include atlcrack.h though I checked "new style" in the dialog box of WTL Helper. And, I compiled my source. Suddenly, my Visual C++ 2003 clashed. Later, I found that I did not include atlcrack.h. It was my mistake but I want the WTL-Helper to warn me to include atlcrack.h or the WTL-Helper to automatically insert the sentence "#include <atlcrack.h>" into my source with some anouncement instead of clashing. I appreciate you to make this wonderful art! One more question: Doesn't WTL-Helper supoort Visual C++ 2005 Express? I am using both Visual C++ 2003 standard edition and Visual C++ 2005 Express edition. __(*^.^*)__
|
|
|
|

|
I'm using WTL helper for quite some time now and it helps me a lot. Like other people I had the problem now fixed with version 1.1.5 (toolbars settings lost). But, at least for me, this new version introduces a new problem:
Almost each time I started Visual Studio 2005, I have a new "WTL Helper" sub-menu in the Tools menu. It means that currently, I have 3 WTL Helpers. 2 are enabled and 1 is disabled. Sometimes, there are all disabled. I try to uninstall/reinstall WTL Helper but it is still the same. I try to uninstall/reinstall Visual Studio: same. Two days ago, I decided to reformat my computer and start from scatch and guess what... it is still the same.
This is very annoying. Any idea ?
|
|
|
|

|
As subject.
Although the Add-in Manager lists it, it does not appear on the Tools menu or anywhere else
|
|
|
|

|
Your WTL Helper is very useful tool, thanks for creating it.
There is, however one thing I would suggest you, to even improve it's usability.
It is filtering tree view (like in Eclipse preferences view). What I mean is a control to enter part of the name of message, which updates tree view of all messages to show only matching messages (so, tree items with contain no matching messages whould not be shown).
Cheers,
Filip
|
|
|
|

|
When WTLHelper is installed, toolbar changes are lost when VS2005 is restarted. For example, I have to add the Build toolbar everytime I restart VS2005. Adding the build buttons to default toolbar was no use either cuz they disappeared after restart. At first, I thought it was a VS2005 bug but after locating reference to WTL Helper by googling, I removed WTL Helper and VS2005 is now behaving as expected.
No other Add-ins were installed.
|
|
|
|

|
Hi Sergey,
This looks like a fantastically useful body of work. Many thanks!
|
|
|
|

|
When I started VC 7 under non-admin account
wtl-helper dialog not created.
klermont33
|
|
|
|

|
Thanks for the extremely useful class. I have just started using it in VS2005.
When I choose the 'new style' to have the declaration and definition split, the code generated for the .cpp file includes the template file for the class copied as is. If the template has default values for the the typnames used in the template, then those default values are repeated as well. The compiler shows an error that default values are only allowed in the class definition. It is no big deal to remove these, but I thought you should know.
|
|
|
|

|
I just ran across this extension and it looks promising. However, I have yet to have any success getting it to run. Every attempt has ended with killing a non-responsive VS2005 via task manager.
Installation seems to go without issue. I'm able to access the options dialog ok. Bringing up the actual WTL Helper is an adventure.
In each attempt that I describe here, I'm using VS2005 version 8.0 on Windows XP with lots of memory, disk space, and CPU speed. The WTL project being used here is based on a WTL Wizard genrated dialog based application. I have WTL 7.5 installed.
The first time I tried to run WTL Helper, a busy icon was presented and I had to kill VS2005. The second time, I was presented with a message box saying "No classes to work with!". After clicking the ok button, I tried it again. The second attempt in the same session of VS2005 again froze it up and had to be killed.
So I uninstalled and then reinstalled WTL Helper. Brought up VS2005. Loaded the WTL project. Clicked on WTL Helper again, and, woo-hoo!, apparent success. However on closer inspection, I noticed that the main dialog class was not shown. Two of the four dialogs in the project were therre, as well as CModule(!). I closed the WTL Helper, then tried it again. And again, it froze VS2005. After killing and restarting VS2005, I try running WTL Helper again. Again, I'm presented with a message box saying "No classes to work with!"
I do have VS2003 installed on the same machine. Scanning some of the comments, it appears that there are changes between VS2003 and VS2005. Is there some chance that the VS2003 version is being used? I just brought up VS2003 and created a new WTL dialog-based project on it. WTL Helper seems to work fine there. Bringing up the same project in VS2005 brings the "No classes to work with!" dialog.
Let me know if you have any solutions. Thanks.
|
|
|
|

|
#import "libid:2DF8D04C-5BFA-101B-BDE5-00AA0044DE52" version("2.2") lcid("0") raw_interfaces_only named_guids
to
#import "C:\Program Files\Common Files\Microsoft Shared\MSEnv\vsmso.olb"
and
Office::_CommandBarsPtr pCommandBars;
to
Microsoft_VisualStudio_CommandBars::_CommandBarsPtr pCommandBars;
More infomation
http://msdn2.microsoft.com/en-us/library/ms165634(VS.80).aspx
ryou
|
|
|
|

|
I use the WTL helper with vc2005. Once, I created a SDI project with a form view using the appwizard provided by wtl. when I added a handler for a menu item in the view, I got a compile error. This problem won't happen in vc2003.
This problem maybe caused by that the codes generated by appwizard are difference in vc2005 and vc2003. In vc2005, the definition of PreTranslateMessage(MSG* pMsg) is located in .h file. when I first moved the code to corresponding .cpp file then use WTL helper to add the handler, the problem went away.
|
|
|
|

|
The following errors appears during compilation of project WtlHelper in VS2005:
Debug2005
1>------ Build started: Project: WtlHelper, Configuration: Debug2005 Win32 ------
1>Compiling...
1>stdafx.cpp
1>c:\program files\microsoft visual studio 8\vc\atlmfc\include\atlmisc.h(3360) : warning C4996: '_wsplitpath' was declared deprecated
1> c:\program files\microsoft visual studio 8\vc\include\stdlib.h(782) : see declaration of '_wsplitpath'
1> Message: 'This function or variable may be unsafe. Consider using _wsplitpath_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>c:\program files\microsoft visual studio 8\vc\atlmfc\include\atlmisc.h(3419) : warning C4996: '_wsplitpath' was declared deprecated
1> c:\program files\microsoft visual studio 8\vc\include\stdlib.h(782) : see declaration of '_wsplitpath'
1> Message: 'This function or variable may be unsafe. Consider using _wsplitpath_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>d:\downloads\wtl_helper\source\stdafx.h(76) : error C3505: cannot load type library '{80CC9F66-E7D8-4DDD-85B6-D9E6CD0E93E2}'
1>d:\downloads\wtl_helper\source\stdafx.h(76) : fatal error C1104: fatal error importing libid: '80cc9f66-e7d8-4ddd-85b6-d9e6cd0e93e2'
1>Build log was saved at "file://d:\Downloads\WTL_Helper\source\Debug2005\BuildLog.htm"
1>WtlHelper - 2 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Release Static CRT
1>------ Build started: Project: WtlHelper, Configuration: Release Static CRT Win32 ------
1>Creating Type Library...
1>Processing .\AddIn.idl
1>AddIn.idl
1>c1 : fatal error C1083: Cannot open source file: '.\AddIn.idl': No such file or directory
1>midl : command line error MIDL1003 : error returned by the C preprocessor (2)
1>Build log was saved at "file://d:\Downloads\WTL_Helper\source\Release Static CRT\BuildLog.htm"
1>WtlHelper - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Release2005
1>------ Build started: Project: WtlHelper, Configuration: Release2005 Win32 ------
1>Creating Type Library...
1>Processing .\AddIn.idl
1>AddIn.idl
1>c1 : fatal error C1083: Cannot open source file: '.\AddIn.idl': No such file or directory
1>midl : command line error MIDL1003 : error returned by the C preprocessor (2)
1>Build log was saved at "file://d:\Downloads\WTL_Helper\source\Release2005\BuildLog.htm"
1>WtlHelper - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
-- modified at 5:22 Thursday 9th February, 2006
|
|
|
|

|
I try add these config to registry
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VCExpress\8.0\Addins\WtlHelper.Connect8]
"CommandLineSafe"=dword:00000000
"CommandPreload"=dword:00000001
"LoadBehavior"=dword:00000003
"Description"="Class Wizard for WTL"
"FriendlyName"="WTL Helper"
"SatelliteDLLPath"="C:\\Program Files\\WTL Helper"
"SatelliteDLLName"="WtlHelperRes.dll"
"AboutBoxDetails"="WTL Helper is powerful tool that helps using WTL."
But it seems it does not work.
If WTL Helper works in VC2005 Express, it will be wonderful!
|
|
|
|

|
It's working fine now, at least when the "WTL Helper" solution is open, but when i'm not having a solution opened, it crashes when i'm trying to run it
|
|
|
|

|
http://rsdn.ru/forum/Message.aspx?mid=1653462&only=1
|
|
|
|

|
Hi
I'm having some problems building the WTL Helper. I've downloaded the app here, with sourcecode, but the installer crashes the IDE, and i can't build the sourcecode, getting some errors.
I'm building in "release" and when i'm building the first time, this happens
\source\stdafx.h(107) : warning C4192: automatically excluding 'IServiceProvider' while importing type library '7365C6FE-4191-476B-A3FE-1CB6A7B1C119'
\source\stdafx.h(107) : error C4772: #import referenced a type from a missing type library; '__missing_type__' used as a placeholder
\source\Release\resedit.tlh(580) : error C2146: syntax error : missing ';' before identifier 'hInstance'
\source\Release\resedit.tlh(580) : error C2501: 'ResEditPKGLib::_VSPROPSHEETPAGE::__missing_type__' : missing storage-class or type specifiers
\source\Release\resedit.tlh(580) : error C2501: 'ResEditPKGLib::_VSPROPSHEETPAGE::hInstance' : missing storage-class or type specifiers
\source\Release\resedit.tlh(584) : error C2146: syntax error : missing ';' before identifier 'pfnDlgProc'
\source\Release\resedit.tlh(584) : error C2501: 'ResEditPKGLib::_VSPROPSHEETPAGE::__missing_type__' : missing storage-class or type specifiers
\source\Release\resedit.tlh(584) : error C2501: 'ResEditPKGLib::_VSPROPSHEETPAGE::pfnDlgProc' : missing storage-class or type specifiers
\source\Release\resedit.tlh(585) : error C2146: syntax error : missing ';' before identifier 'lParam'
\source\Release\resedit.tlh(585) : error C2501: 'ResEditPKGLib::_VSPROPSHEETPAGE::__missing_type__' : missing storage-class or type specifiers
\source\Release\resedit.tlh(585) : error C2501: 'ResEditPKGLib::_VSPROPSHEETPAGE::lParam' : missing storage-class or type specifiers
\source\Release\resedit.tlh(586) : error C2146: syntax error : missing ';' before identifier 'pfnCallback'
\source\Release\resedit.tlh(586) : error C2501: 'ResEditPKGLib::_VSPROPSHEETPAGE::__missing_type__' : missing storage-class or type specifiers
\source\Release\resedit.tlh(586) : error C2501: 'ResEditPKGLib::_VSPROPSHEETPAGE::pfnCallback' : missing storage-class or type specifiers
\source\Release\resedit.tlh(589) : error C2146: syntax error : missing ';' before identifier 'hwndDlg'
\source\Release\resedit.tlh(589) : error C2501: 'ResEditPKGLib::_VSPROPSHEETPAGE::__missing_type__' : missing storage-class or type specifiers
\source\Release\resedit.tlh(589) : error C2501: 'ResEditPKGLib::_VSPROPSHEETPAGE::hwndDlg' : missing storage-class or type specifiers
I also have gotten some errors conserning AddIn.idl isn't exsisting.
My environment is Windows XP Pro SP2, Microsoft Visual Studio .NET 2003 and WTL 7.5.41.96. resedit.dll is version 7.10.3077.0
I have also tried the installer from your website, but that is crashing the IDE too.
Regards Nicolai
|
|
|
|

|
Congratulations! this is the tool that I was needing for 5 years
Thanks!
|
|
|
|

|
Hi,
can I run the WTL Helper with VC++ 6.0?
PePa
|
|
|
|

|
Hello Sergey
First, your add-in is great, thanks a lot.
Now, I found one minor bug: in Message View, if you move the splitter in middle to the top of window, the add-in is consuming 100% CPU. I think I found the bug, it's located at line 165 (LRESULT CSizeListCtrl::OnPostSize) of FunctionPage.cpp.
It's due to SetColumnWidth(1, CtrlWidth - Width - 5); (I think it's a loop of WM_SIZE if the scrollbar is visible or not).
Another question:
I was searching for a good CustomDraw ListView. Yours appear a great example.
I extracted the SizeListCtrl class to implement it in a dialogbox for one of my personal projects. I copy pastAll is Ok but when I debug it, I found a bug in LPARAM CSizeListCtrl::_GetItemData(int nItem) at line 52. It generate an exception (unable to read 0xffff0b7f = address of m_pfnSuperWindowProc)...
Do you know how I can reuse your class ? Maybe you made some changes in version 0.1 ?
Thanks !
-- modified at 2:29 Friday 11th November, 2005
|
|
|
|

|
I downloaded it and installed on my VS 2005, but the "add handler or function" not work.
|
|
|
|

|
When I click the Add Funtion button, the full function definition does not accept any of the following formats
void foo();
void foo()
foo()
what am I missing?
|
|
|
|

|
The "Insert new handler" dialog limits the length of the control Indentifier - and I use very verbose IDs for my dialog controls!
The Rob Blog
|
|
|
|

|
I have just installed 0.9.0.5 and am getting an IDE crash as soon as I attempt to display the WTL Helper. Is there a better way to debug this as I cannot send you the project in question...
The Rob Blog
|
|
|
|
|
|
|

|
Hi!
Sadly... v0.9 crashes the IDE (2003) at WTL Helper Startup. Didn't have time yet to check why this happens ...
Greetings, Ralph
|
|
|
|
 |
|
|
General News Suggestion Question Bug Answer Joke Rant Admin
|
Add-in for Microsoft VC++.NET 2003 that helps to insert message handlers for WTL.
| Type | Article |
| Licence | |
| First Posted | 23 Nov 2004 |
| Views | 357,587 |
| Downloads | 6,672 |
| Bookmarked | 178 times |
|
|