   WTL pains
  I asked in this thread about the best way to create level editors. I''m looking into the WTL library for the platform SDK and it seems like it could be very useful. I''m using VC++ 7 and it has it''s nice dialog editor. The problem is that I can''t figure out how to use these templates as a basis for a window. I know you can call a CDialogImpl using the Dialog ID, but this seems suited only to dialogs and not to child windows in a CFrameWindow.Anybody had any experience with WTL that can shed a little light on the problem?Thanks   
  First off, I''ve only been messing with the WTL for a couple days now so I may not have the best info for you.If I understand you question correctly, then all you need to do is have your child frame''s view object inherit from CDialogImpl. This is how the WTL wizard sets things up and so far it seems to work fine for me. ;  Well, I took your advice and installed the AppWizard; I successfully hacked the code to do what I wanted. What I don''t quite understand is why this worked, when I was doing the same thing in my own code; yet it failed to work?Anyway, it''s all done now. The next question will be coming when I find teething troubles using WTL windows from a DLL. I hope that THAT''S not going to be an issue.From what seems to be a useful template package, it''s a total pain in the ass to get working properly ;  I did something a while ago where i got a WTL window working from a DLL, i''ll see if i can dig up the code again (its part of a long dead project)...  ;  There''s nothing different about using WTL in a DLL as compared to using it in an EXE. You simply call _Module.Init(instance, 0); on DLL_PROCESS_ATTACH and _Module.Term(); on DLL_PROCESS_DETACH. 