Click here to Skip to main content
15,917,568 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Weird run-time error Pin
ZoogieZork16-Aug-03 18:33
ZoogieZork16-Aug-03 18:33 
GeneralRe: Weird run-time error Pin
Cannibal17-Aug-03 2:48
Cannibal17-Aug-03 2:48 
GeneralRe: Weird run-time error Pin
valikac17-Aug-03 5:37
valikac17-Aug-03 5:37 
QuestionHow to create a resource dll and export resource symbols? Pin
Abin16-Aug-03 16:25
Abin16-Aug-03 16:25 
AnswerRe: How to create a resource dll and export resource symbols? Pin
Alexander M.,16-Aug-03 23:59
Alexander M.,16-Aug-03 23:59 
GeneralRe: How to create a resource dll and export resource symbols? Pin
Abin17-Aug-03 3:43
Abin17-Aug-03 3:43 
GeneralRe: How to create a resource dll and export resource symbols? Pin
Alexander M.,17-Aug-03 6:18
Alexander M.,17-Aug-03 6:18 
GeneralMutiple Doc/View Support in MDI MFC App Problem Pin
bneacetp16-Aug-03 15:46
bneacetp16-Aug-03 15:46 
I am trying to create an application that is capable of working with multiple document types, each having its own view. In the InitInstance() function I have done the following:

BOOL CTestApp::InitInstance()
{
... Other code

LoadStdProfileSettings(15); // Load standard INI file options (including MRU)
// Register the application's document templates. Document templates
// serve as the connection between documents, frame windows and views

CMultiDocTemplate* pDocTemplate;

pDocTemplate = new CMultiDocTemplate(IDR_FIRSTTYPE,
RUNTIME_CLASS(CTypeOneDoc),
RUNTIME_CLASS(CChildFrame), // custom MDI child frame
RUNTIME_CLASS(CTypeOneView));
if (!pDocTemplate)
return FALSE;
AddDocTemplate(pDocTemplate);

CMultiDocTemplate* pDocTemplateT;

pDocTemplateT = new CMultiDocTemplate(IDR_SECTYPE,
RUNTIME_CLASS(CTypeTwoDoc),
RUNTIME_CLASS(CChildFrame), // custom MDI child frame
RUNTIME_CLASS(CTypeTwoView));
if (!pDocTemplateT)
return FALSE;
AddDocTemplate(pDocTemplateT);

... Other code

I have all appropriate view and document classes in place for these doc templates and the project compiles without any problems. The first doc view is derived from CHTMLView and the second is derived from CRichEditView.

PROBLEM:
I create a new rich edit document, type some text into the view, and save it and then close the document. Then when I open the document I just saved, it appears that the document's contents had never been saved, or if they had, they certainly didn't open properly. Unsure | :~
ALSO:
The messagebox that usually automatically pops up when you try to close a doc that has not been saved since its last modification fails to come up like it should. Confused | :confused:

I believe that these two problems are somehow related. Please help. Confused | :confused:

This has really got me stuck. Does anyone have any suggestions? Any leads to the problem would definitely be appreciated.

BNEACETP
GeneralRe: Mutiple Doc/View Support in MDI MFC App Problem Pin
Joey Bloggs17-Aug-03 1:05
Joey Bloggs17-Aug-03 1:05 
GeneralRe: Mutiple Doc/View Support in MDI MFC App Problem Pin
bneacetp17-Aug-03 7:19
bneacetp17-Aug-03 7:19 
GeneralDeriving a template from a template Pin
aka the guy16-Aug-03 14:30
aka the guy16-Aug-03 14:30 
GeneralRe: Deriving a template from a template Pin
Andrew Walker16-Aug-03 16:03
Andrew Walker16-Aug-03 16:03 
GeneralRe: Deriving a template from a template Pin
aka the guy17-Aug-03 15:54
aka the guy17-Aug-03 15:54 
GeneralProblem with AddNew of CRecordset Pin
Vassilis Papoulidis16-Aug-03 13:22
Vassilis Papoulidis16-Aug-03 13:22 
GeneralWSABUF WSASend and WSAReceive and server question Pin
Kuniva16-Aug-03 12:05
Kuniva16-Aug-03 12:05 
GeneralRe: WSABUF WSASend and WSAReceive and server question Pin
valikac16-Aug-03 15:01
valikac16-Aug-03 15:01 
GeneralRe: WSABUF WSASend and WSAReceive and server question Pin
Kuniva17-Aug-03 2:09
Kuniva17-Aug-03 2:09 
GeneralRe: WSABUF WSASend and WSAReceive and server question Pin
Kuniva17-Aug-03 2:18
Kuniva17-Aug-03 2:18 
GeneralRe: WSABUF WSASend and WSAReceive and server question Pin
valikac17-Aug-03 5:34
valikac17-Aug-03 5:34 
GeneralCancelling MoveFileExe with MOVEFILE_DELAY_UNTIL_REBOOT Pin
Kayembi16-Aug-03 8:25
Kayembi16-Aug-03 8:25 
GeneralRe: Cancelling MoveFileExe with MOVEFILE_DELAY_UNTIL_REBOOT Pin
Michael Dunn16-Aug-03 9:01
sitebuilderMichael Dunn16-Aug-03 9:01 
GeneralRe: Cancelling MoveFileExe with MOVEFILE_DELAY_UNTIL_REBOOT Pin
Kayembi16-Aug-03 11:57
Kayembi16-Aug-03 11:57 
GeneralRe: Cancelling MoveFileExe with MOVEFILE_DELAY_UNTIL_REBOOT Pin
Michael Dunn16-Aug-03 13:11
sitebuilderMichael Dunn16-Aug-03 13:11 
GeneralRe: Cancelling MoveFileExe with MOVEFILE_DELAY_UNTIL_REBOOT Pin
Kayembi16-Aug-03 14:54
Kayembi16-Aug-03 14:54 
GeneralRe: Cancelling MoveFileExe with MOVEFILE_DELAY_UNTIL_REBOOT Pin
PJ Arends16-Aug-03 15:38
professionalPJ Arends16-Aug-03 15:38 

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.