Click here to Skip to main content
16,011,611 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Owner Draw Pin
NC21-Mar-02 9:12
NC21-Mar-02 9:12 
GeneralRe: Owner Draw Pin
Tomasz Sowinski21-Mar-02 9:16
Tomasz Sowinski21-Mar-02 9:16 
GeneralRe: Owner Draw Pin
NC21-Mar-02 9:20
NC21-Mar-02 9:20 
GeneralBITMAPS!!! Pin
21-Mar-02 6:56
suss21-Mar-02 6:56 
GeneralRe: BITMAPS!!! Pin
Jamie Hale21-Mar-02 7:13
Jamie Hale21-Mar-02 7:13 
GeneralDialog windows into bitmaps Pin
21-Mar-02 6:24
suss21-Mar-02 6:24 
GeneralRe: Dialog windows into bitmaps Pin
Davide Calabro21-Mar-02 6:36
Davide Calabro21-Mar-02 6:36 
General[ Problem declaring CDialog derived class pointer... ] Pin
Xenos21-Mar-02 5:42
Xenos21-Mar-02 5:42 
This is a problem I've had before, but I just can't seem to figure it
out:

I have a dialog (CDlgIEAddText) that modifys properties of a class
(CIELayerText), and I have created a member variable in (CIELayerText)
of type (CDlgIEAddText*) .

I have included the DlgIEAddText.h header file, but the compiler keeps
saying "ielayertext.h(26) : error C2501: 'CDlgIEAddText' : missing
storage-class or type specifiers"

Does anyone know why I can't declare this pointer even though I have
included the header file??

Thanks!

Here's the CIELayerText.h file and error the compiler generates:

*** HEADER FILE ***

// IELayerText.h: interface for the CIELayerText class.
//
//////////////////////////////////////////////////////////////////////
#if
!defined(AFX_IELAYERTEXT_H__29E5E993_F1E6_4F27_BEA6_DC5C4380E20D__INCL
UDED_)
#define
AFX_IELAYERTEXT_H__29E5E993_F1E6_4F27_BEA6_DC5C4380E20D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "DlgIEAddText.h"

#include "IELayerObject.h"


class CIELayerText : public CIELayerObject
{
public:
void Properties(CWnd* pWnd);
void ContextMenu(CPoint point, CWnd* pWnd);
void Render(CDC* pDC);
BOOL Create(CString csText, CRect* pRect, LOGFONT* logfontFont,
COLORREF colorFG, COLORREF colorBG, DWORD dwAlign);
CIELayerText();
virtual ~CIELayerText();

private:

CDlgIEAddText *m_pDlg; // *** I can't declare this pointer, why not?

DWORD m_dwAlign;
CString m_csText;
LOGFONT m_logfontFont;
};

#endif //
!defined(AFX_IELAYERTEXT_H__29E5E993_F1E6_4F27_BEA6_DC5C4380E20D__INCL
UDED_)

GeneralRe: [ Problem declaring CDialog derived class pointer... ] Pin
Tomasz Sowinski21-Mar-02 5:55
Tomasz Sowinski21-Mar-02 5:55 
GeneralRe: [ Problem declaring CDialog derived class pointer... ] Pin
Bill Wilson21-Mar-02 10:38
Bill Wilson21-Mar-02 10:38 
GeneralToolbar & text Pin
Rajveer21-Mar-02 5:47
Rajveer21-Mar-02 5:47 
GeneralRe: Toolbar & text Pin
Tomasz Sowinski21-Mar-02 5:57
Tomasz Sowinski21-Mar-02 5:57 
GeneralCSplitterWnd and OnCreateClient() Pin
dazinith21-Mar-02 5:22
dazinith21-Mar-02 5:22 
GeneralRe: CSplitterWnd and OnCreateClient() Pin
Tomasz Sowinski21-Mar-02 5:52
Tomasz Sowinski21-Mar-02 5:52 
GeneralRe: CSplitterWnd and OnCreateClient() Pin
dazinith21-Mar-02 6:31
dazinith21-Mar-02 6:31 
GeneralRe: CSplitterWnd and OnCreateClient() Pin
Tomasz Sowinski21-Mar-02 7:34
Tomasz Sowinski21-Mar-02 7:34 
GeneralRe: CSplitterWnd and OnCreateClient() Pin
dazinith22-Mar-02 10:28
dazinith22-Mar-02 10:28 
GeneralRe: CSplitterWnd and OnCreateClient() Pin
Deian16-Jun-02 20:08
Deian16-Jun-02 20:08 
GeneralCan´t implement CInternetSession Pin
The_Pike21-Mar-02 5:11
The_Pike21-Mar-02 5:11 
GeneralRe: Can´t implement CInternetSession Pin
dazinith21-Mar-02 5:29
dazinith21-Mar-02 5:29 
GeneralRe: Can´t implement CInternetSession Pin
Carlos Antollini21-Mar-02 5:41
Carlos Antollini21-Mar-02 5:41 
GeneralCreating modeless dialog failure Pin
Hans Ruck21-Mar-02 4:21
Hans Ruck21-Mar-02 4:21 
GeneralRe: Creating modeless dialog failure Pin
Joaquín M López Muñoz21-Mar-02 4:29
Joaquín M López Muñoz21-Mar-02 4:29 
GeneralRe: Creating modeless dialog failure Pin
Hans Ruck21-Mar-02 4:44
Hans Ruck21-Mar-02 4:44 
GeneralRe: Creating modeless dialog failure Pin
Joaquín M López Muñoz21-Mar-02 5:02
Joaquín M López Muñoz21-Mar-02 5:02 

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.