Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Missing Afx Strings

Status
Not open for further replies.

bulgakov

Programmer
Apr 24, 2003
26
GB
All,
I have a problem with LoadString not finding any Afx Strings, the various VERIFY
statements assert due to not finding the string.
The strings vary from "Untitled" which is used
via a NewDocument call, to "Do you wish to save ?"

e.g. of a verify assert

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

CString title;
VERIFY(title.LoadString(nIDSTitle)); //stops here



The history behind this is I am trying to import in to an existing app
a seperate app that has a view/doc etc. Do I need to link in any
special libs ? Thanks.

Marcus.
 
>> I am trying to import in to an existing app
>> a seperate app

I am not familiar with import a seperate app, what does that mean?

-pete
 
I mean we have an existing application which is
the main software project, and I have prototyped some
new functionality in a seperate application,
now I wish to integrate this prototyped software
into the main one.

The problem is that I have imported some code that
was generated with the App wizard, the imported code
I am trying to use in the main application
will not run because there are certain strings missing,
I would expect them to be in my string tables but
they are not, they are all prefixed with Afx,

ie AfxUntitled

Marcus.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top