Click here to Skip to main content
15,879,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Fast serialization Pin
led mike19-Sep-07 12:04
led mike19-Sep-07 12:04 
AnswerRe: Fast serialization Pin
Nathan Holt at EMOM19-Sep-07 12:07
Nathan Holt at EMOM19-Sep-07 12:07 
GeneralRe: Fast serialization Pin
Budric B.20-Sep-07 6:19
Budric B.20-Sep-07 6:19 
GeneralRe: Fast serialization Pin
Nathan Holt at EMOM20-Sep-07 8:59
Nathan Holt at EMOM20-Sep-07 8:59 
QuestionTrapping DDE messages Pin
__DanC__19-Sep-07 6:16
__DanC__19-Sep-07 6:16 
AnswerRe: Trapping DDE messages Pin
Roger Broomfield19-Sep-07 18:25
Roger Broomfield19-Sep-07 18:25 
GeneralRe: Trapping DDE messages Pin
__DanC__19-Sep-07 22:48
__DanC__19-Sep-07 22:48 
QuestionHelp out with compiler error C2327 Pin
Chris Meech19-Sep-07 4:34
Chris Meech19-Sep-07 4:34 
I'm having the compiler give me
error C2327: 'ABC::m_strErrorMessageText' : is not a type name, static, or enumerator

And this is likely because I'm not putting the code together just the way it wants it. Smile | :)
Here's the code
class ABC
{
 public:
  CString        m_strErrorMessageText;
  const char*    GetErrorMessageText(){ return ( (const char*)m_strErrorMessageText ); }

 class DEF 
 {
   public:
     enum tagSource 
     {  INIT, 
        TERMINATE, 
        OPEN, 
        SQL
     } Source;
     char        m_lpErrorText[256];

    DEF(tagSource src){Source = src;}
  };

  class GHI
  {
    public:
error->      GHI() { m_strErrorMessageText = "Registry Information is missing.  Please run BATCH_CONFIG.EXE to correct."; }
};


This code is to house various exceptions that may occur within a library and I'm trying to let each of the different exception types, DEF, GHI put text into the ABC::m_strErrorMessageText member in anyway they want to. The consumers of the library can then decide what exception types they wish to catch and simply use the ABC::GetErrorMessageText in order to get meaningful information. Any ideas on what I might still need to be doing here? Thanks.

Chris Meech
I am Canadian. [heard in a local bar]

AnswerRe: Help out with compiler error C2327 Pin
led mike19-Sep-07 4:39
led mike19-Sep-07 4:39 
GeneralRe: Help out with compiler error C2327 Pin
Chris Meech19-Sep-07 5:11
Chris Meech19-Sep-07 5:11 
AnswerRe: Help out with compiler error C2327 Pin
Mike Dimmick19-Sep-07 4:44
Mike Dimmick19-Sep-07 4:44 
GeneralRe: Help out with compiler error C2327 Pin
Chris Meech19-Sep-07 5:09
Chris Meech19-Sep-07 5:09 
GeneralRe: Help out with compiler error C2327 Pin
carrivick19-Sep-07 5:46
carrivick19-Sep-07 5:46 
Questionhow to insert a checkbox as an item in a multicolumn lsi control (CListCtrl)) [modified] Pin
Dhiraj kumar Saini19-Sep-07 3:39
Dhiraj kumar Saini19-Sep-07 3:39 
AnswerRe: how to insert a checkbox as an item in a multicolumn lsi control (CListCtrl)) Pin
David Crow19-Sep-07 5:27
David Crow19-Sep-07 5:27 
Questionwant to add pictures of any type in a dialog box Pin
Dhiraj kumar Saini19-Sep-07 3:31
Dhiraj kumar Saini19-Sep-07 3:31 
AnswerRe: want to add pictures of any type in a dialog box Pin
led mike19-Sep-07 4:42
led mike19-Sep-07 4:42 
AnswerRe: want to add pictures of any type in a dialog box Pin
David Crow19-Sep-07 5:29
David Crow19-Sep-07 5:29 
GeneralRe: want to add pictures of any type in a dialog box Pin
Mark Salsbery19-Sep-07 6:48
Mark Salsbery19-Sep-07 6:48 
GeneralRe: want to add pictures of any type in a dialog box Pin
David Crow19-Sep-07 6:53
David Crow19-Sep-07 6:53 
AnswerRe: want to add pictures of any type in a dialog box Pin
Hamid_RT19-Sep-07 7:29
Hamid_RT19-Sep-07 7:29 
Questionfatal error RC1015: cannot open include file 'winresrc.h' Pin
dadacncn19-Sep-07 3:17
dadacncn19-Sep-07 3:17 
AnswerRe: fatal error RC1015: cannot open include file 'winresrc.h' Pin
shir_k19-Sep-07 3:41
shir_k19-Sep-07 3:41 
GeneralRe: fatal error RC1015: cannot open include file 'winresrc.h' Pin
dadacncn19-Sep-07 3:57
dadacncn19-Sep-07 3:57 
QuestionHow to avoid flickering in list control Pin
shir_k19-Sep-07 2:46
shir_k19-Sep-07 2:46 

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.