Click here to Skip to main content
16,004,836 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
Generalview image in IE's context menu Pin
tkarven1-Mar-05 0:56
tkarven1-Mar-05 0:56 
GeneralRe: view image in IE's context menu Pin
tkarven1-Mar-05 1:11
tkarven1-Mar-05 1:11 
GeneralCreating Schema Rowset ( OLE DB) in COM Pin
gauravjain28-Feb-05 5:47
gauravjain28-Feb-05 5:47 
GeneralWTL shows compile time error Pin
inbakumar.G27-Feb-05 19:08
inbakumar.G27-Feb-05 19:08 
GeneralRe: WTL shows compile time error Pin
Stuart Dootson27-Feb-05 22:12
professionalStuart Dootson27-Feb-05 22:12 
GeneralRe: WTL shows compile time error Pin
inbakumar.G27-Feb-05 22:20
inbakumar.G27-Feb-05 22:20 
GeneralRe: WTL shows compile time error Pin
Stuart Dootson27-Feb-05 22:26
professionalStuart Dootson27-Feb-05 22:26 
GeneralRe: WTL shows compile time error Pin
inbakumar.G27-Feb-05 22:35
inbakumar.G27-Feb-05 22:35 
thank you for your reply

I used two header file and one cpp file. The files are following

// stdafx.h

#define STRICT
#define WIN32_LEAN_AND_MEAN
#define _WTL_USE_CSTRING
#define _WIN32_IE 0x0600

#include <atlbase.h> // base ATL classes
#include <atlapp.h> // base WTL classes
extern CAppModule _Module; // WTL version of CComModule
#include <atlwin.h> // ATL GUI classes
#include <atlframe.h> // WTL frame window classes
#include <atlmisc.h> // WTL utility classes like CString
#include <atlcrack.h> // WTL en


// MyWindow.h
class CMyWindow : public CFrameWindowImpl<cmywindow>
{
public:
DECLARE_FRAME_WND_CLASS(_T("First WTL window"), IDR_MAINFRAME);

BEGIN_MSG_MAP(CMyWindow)
CHAIN_MSG_MAP(CFrameWindowImpl<cmywindow>)
END_MSG_MAP()
};

// main.cpp:
#include "stdafx.h"
#include "MyWindow.h"

CAppModule _Module;

int APIENTRY WinMain ( HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow )
{
_Module.Init ( NULL, hInstance );

CMyWindow wndMain;
MSG msg;

// Create the main window
if ( NULL == wndMain.CreateEx() )
return 1; // Window creation failed

// Show the window
wndMain.ShowWindow ( nCmdShow );
wndMain.UpdateWindow();

// Standard Win32 message loop
while ( GetMessage ( &msg, NULL, 0, 0 ) > 0 )
{
TranslateMessage ( &msg );
DispatchMessage ( &msg );
}

_Module.Term();
return msg.wParam;
}

the above program only i got 6 errros

First error:


error C2146: syntax error : missing ';' before identifier 'lpnm'
d:\program files\microsoft visual studio\vc98\include\atlframe.h(1176) : see reference to class template instantiation 'WTL::CFrameWindowImplBase<tbase,twintraits>' being compiled
GeneralRe: WTL shows compile time error Pin
Michael Dunn28-Feb-05 7:59
sitebuilderMichael Dunn28-Feb-05 7:59 
GeneralSharing a variable between Pin
sameeraperera27-Feb-05 5:16
sameeraperera27-Feb-05 5:16 
GeneralRe: Sharing a variable between Pin
Kevin Tambascio7-Mar-05 4:18
Kevin Tambascio7-Mar-05 4:18 
QuestionHow to catch events? Pin
Roozbeh6926-Feb-05 20:16
professionalRoozbeh6926-Feb-05 20:16 
AnswerRe: How to catch events? Pin
Stuart Dootson27-Feb-05 3:17
professionalStuart Dootson27-Feb-05 3:17 
GeneralRe: How to catch events? Pin
Roozbeh6927-Feb-05 22:43
professionalRoozbeh6927-Feb-05 22:43 
GeneralWTL can support Virus Program Pin
25-Feb-05 18:26
suss25-Feb-05 18:26 
GeneralRe: WTL can support Virus Program Pin
Tarundeep Singh Kalra4-Mar-05 8:33
Tarundeep Singh Kalra4-Mar-05 8:33 
GeneralATL control Pin
muslcesonvacation25-Feb-05 15:15
muslcesonvacation25-Feb-05 15:15 
Generaldialog display failure Pin
tkarven24-Feb-05 0:56
tkarven24-Feb-05 0:56 
GeneralRe: dialog display failure Pin
devom25-Feb-05 20:23
devom25-Feb-05 20:23 
GeneralRe: dialog display failure Pin
tkarven26-Feb-05 1:40
tkarven26-Feb-05 1:40 
General(Beginner) Resource in static lib Pin
Hades_G23-Feb-05 20:44
Hades_G23-Feb-05 20:44 
GeneralWeb Browser Control Pin
Harshapaulp22-Feb-05 23:57
Harshapaulp22-Feb-05 23:57 
GeneralDIID_DWebBrowserEvents2 for dwebbrowserevent2, and ??? for IHTMLImgEvents2 Pin
tkarven22-Feb-05 6:35
tkarven22-Feb-05 6:35 
GeneralRe: DIID_DWebBrowserEvents2 for dwebbrowserevent2, and ??? for IHTMLImgEvents2 Pin
ThatsAlok22-Feb-05 23:35
ThatsAlok22-Feb-05 23:35 
GeneralRe: DIID_DWebBrowserEvents2 for dwebbrowserevent2, and ??? for IHTMLImgEvents2 Pin
tkarven23-Feb-05 7:45
tkarven23-Feb-05 7:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.