Click here to Skip to main content
15,893,337 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWinsock gethostbyaddr problem Pin
Shamoon28-Nov-02 18:26
Shamoon28-Nov-02 18:26 
GeneralRe: Winsock gethostbyaddr problem Pin
Rickard Andersson2029-Nov-02 3:09
Rickard Andersson2029-Nov-02 3:09 
GeneralNeed help in removing element in std::map ! Pin
bahruddina28-Nov-02 15:20
bahruddina28-Nov-02 15:20 
GeneralRe: Need help in removing element in std::map ! Pin
Scott H. Settlemier28-Nov-02 16:27
Scott H. Settlemier28-Nov-02 16:27 
GeneralUnresolved symbol CLSID_SQLOLEDB Pin
paulb28-Nov-02 14:41
paulb28-Nov-02 14:41 
GeneralChanging a view in an SDI. Pin
VanHlebar28-Nov-02 14:32
VanHlebar28-Nov-02 14:32 
GeneralRe: Changing a view in an SDI. Pin
Anatari28-Nov-02 15:15
Anatari28-Nov-02 15:15 
GeneralRe: Changing a view in an SDI. Pin
VanHlebar29-Nov-02 7:40
VanHlebar29-Nov-02 7:40 
Anatari,

Thanks for the help. I am having one problem though. When I goto create my new view using te Create method I get a compile error of "Create: cannot access protected member declared in class CFormView"

Here is what I am attempting per the article you suggested.

if(!m_pMyView) MyView is a class derived from CFormView
{
m_pMyView = new CMyView;

m_pMyView->Create(NULL, NULL, AFX_WS_DEFAULT_VIEW, CFrameWnd::rectDefault, AfxGetMainWnd(), AFX_IDW_PANE_FIRST+1, NULL);
}

I am doing this in the OnNewDocument of my Document class. Any ideas why I get this error? I have taken the constructor and destructors of my new Vew class and made them public and removed all the DECLARE_DYNCREATE and IMPLEMENT_DYNCREATE macros from the header and source files of the class.

-Eric

GeneralRe: Changing a view in an SDI. Pin
deffer1-Dec-02 17:50
deffer1-Dec-02 17:50 
GeneralRe: Changing a view in an SDI. Pin
valikac28-Nov-02 17:30
valikac28-Nov-02 17:30 
GeneralOpening a new document Pin
Andrew Bleakley28-Nov-02 12:50
Andrew Bleakley28-Nov-02 12:50 
GeneralRe: Opening a new document Pin
valikac28-Nov-02 17:33
valikac28-Nov-02 17:33 
GeneralRe: Opening a new document Pin
Roger Allen29-Nov-02 2:24
Roger Allen29-Nov-02 2:24 
GeneralRe: Opening a new document Pin
Jamie Hale29-Nov-02 9:04
Jamie Hale29-Nov-02 9:04 
GeneralClassWizard Not Working Properly Pin
Steven M Hunt28-Nov-02 11:29
Steven M Hunt28-Nov-02 11:29 
GeneralRe: ClassWizard Not Working Properly Pin
Anatari28-Nov-02 15:13
Anatari28-Nov-02 15:13 
GeneralFloating CControlbar Question ... Pin
Maximilien28-Nov-02 11:19
Maximilien28-Nov-02 11:19 
GeneralRe: Floating CControlbar Question ... Pin
Maximilien29-Nov-02 3:25
Maximilien29-Nov-02 3:25 
Questionhow to tab to next edit box by pressing 'return (enter key)' Pin
IrishSonic28-Nov-02 11:18
IrishSonic28-Nov-02 11:18 
AnswerRe: how to tab to next edit box by pressing 'return (enter key)' Pin
Chris Losinger28-Nov-02 17:27
professionalChris Losinger28-Nov-02 17:27 
AnswerRe: how to tab to next edit box by pressing 'return (enter key)' Pin
Roger Allen29-Nov-02 4:39
Roger Allen29-Nov-02 4:39 
GeneralLinking Pin
Anthony988728-Nov-02 11:05
Anthony988728-Nov-02 11:05 
Generala non rectangular splash screen class with Alpha blending (Article discussions) Pin
yary28-Nov-02 9:30
yary28-Nov-02 9:30 
GeneralRe: a non rectangular splash screen class with Alpha blending (Article discussions) Pin
Christian Graus28-Nov-02 11:20
protectorChristian Graus28-Nov-02 11:20 
QuestionIs there a function in C++ that will split a char array delimited by a specific character? Pin
Redeemer-dk28-Nov-02 9:05
Redeemer-dk28-Nov-02 9:05 

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.