Click here to Skip to main content
15,900,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCreating Dll files with multiple header and source files Pin
ajorge200827-Oct-08 6:17
ajorge200827-Oct-08 6:17 
QuestionRe: Creating Dll files with multiple header and source files Pin
Mark Salsbery27-Oct-08 6:29
Mark Salsbery27-Oct-08 6:29 
AnswerRe: Creating Dll files with multiple header and source files Pin
ajorge200827-Oct-08 6:32
ajorge200827-Oct-08 6:32 
GeneralRe: Creating Dll files with multiple header and source files Pin
Mark Salsbery27-Oct-08 6:40
Mark Salsbery27-Oct-08 6:40 
AnswerRe: Creating Dll files with multiple header and source files Pin
Roger Stoltz27-Oct-08 6:31
Roger Stoltz27-Oct-08 6:31 
GeneralRe: Creating Dll files with multiple header and source files Pin
ajorge200827-Oct-08 6:45
ajorge200827-Oct-08 6:45 
AnswerRe: Creating Dll files with multiple header and source files Pin
Roger Stoltz27-Oct-08 7:03
Roger Stoltz27-Oct-08 7:03 
QuestionCDocManager::DoPromptFileName(...) error Pin
yellowine27-Oct-08 4:58
yellowine27-Oct-08 4:58 
I used Visual C++ 2005 to generate an MFC doc-view sample application. I got an strange error message when I try to open an previously save file in MFC in a static library. I have traced the problem and it was the codes in MFC provided docmgr.cpp below which caused the problem:

BOOL CDocManager::DoPromptFileName(CString& fileName, UINT nIDSTitle, DWORD lFlags, BOOL bOpenFileDialog, CDocTemplate* pTemplate)
{
CFileDialog dlgFile(bOpenFileDialog, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, NULL, NULL, 0);

CString title;
VERIFY(title.LoadString(nIDSTitle));

dlgFile.m_ofn.Flags |= lFlags;

...

}


The VERIFY(title.LoadString(nIDSTitle)) statement gives VERIFY's error.

However, if I compiled the application in "Use MFC in a shared DLL".
Then compile and build it, it can work without any problem!

Anyone know what the problem is?
AnswerRe: CDocManager::DoPromptFileName(...) error Pin
KarstenK27-Oct-08 5:13
mveKarstenK27-Oct-08 5:13 
GeneralRe: CDocManager::DoPromptFileName(...) error Pin
yellowine27-Oct-08 6:21
yellowine27-Oct-08 6:21 
QuestionRe: CDocManager::DoPromptFileName(...) error Pin
David Crow27-Oct-08 5:16
David Crow27-Oct-08 5:16 
AnswerRe: CDocManager::DoPromptFileName(...) error Pin
yellowine27-Oct-08 6:26
yellowine27-Oct-08 6:26 
GeneralRe: CDocManager::DoPromptFileName(...) error Pin
KarstenK28-Oct-08 21:26
mveKarstenK28-Oct-08 21:26 
Question[Message Deleted] Pin
Andy20227-Oct-08 4:23
Andy20227-Oct-08 4:23 
QuestionRe: Shared Library Pin
CPallini27-Oct-08 4:32
mveCPallini27-Oct-08 4:32 
QuestionCaptionBar in a VS6.0 program Pin
Larry Mills Sr27-Oct-08 4:09
Larry Mills Sr27-Oct-08 4:09 
Answer[OT] Re: CaptionBar in a VS6.0 program Pin
David Crow27-Oct-08 5:17
David Crow27-Oct-08 5:17 
QuestionVS 2008 MFC App under NT 4.0 Pin
ToSchi9827-Oct-08 4:04
ToSchi9827-Oct-08 4:04 
AnswerRe: VS 2008 MFC App under NT 4.0 Pin
James R. Twine27-Oct-08 4:29
James R. Twine27-Oct-08 4:29 
AnswerRe: VS 2008 MFC App under NT 4.0 Pin
KarstenK27-Oct-08 4:55
mveKarstenK27-Oct-08 4:55 
AnswerRe: VS 2008 MFC App under NT 4.0 Pin
Graham Bradshaw27-Oct-08 5:00
Graham Bradshaw27-Oct-08 5:00 
QuestionConvert String Pin
akshay.is.gr827-Oct-08 2:01
akshay.is.gr827-Oct-08 2:01 
AnswerRe: Convert String Pin
CPallini27-Oct-08 2:42
mveCPallini27-Oct-08 2:42 
QuestionHow to changae installer GUI dialog box Text??? Pin
tarunclassic27-Oct-08 0:38
tarunclassic27-Oct-08 0:38 
QuestionHow can i avoid infinite loop when using FTP Connection on some not existing ip address ? Pin
Yanshof27-Oct-08 0:17
Yanshof27-Oct-08 0:17 

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.