There is no such thing as "an" assertion error. Every assertion error
occurred on. Coupled
tell us what went wrong. In the *absence* of these three pieces of
no solution to the problem.
Yes this is all working now except for the implementation in the actual
About Box. I'm getting the Assertion Error.
For the AboutBox implementation I have the following:
prototypes
void SetVersionString (LPTCSTR sVer);
LPTCSTR GetVersionString (void);
//m_CtrlStaticVer is the control variable for the CStatic that is to be
set
with the proper value in the dialog
BOOL CAboutDlg::OnInitDialog(void)
{
CString s;
s.Format( _T("AppVersionDynamic, Version %d.%d.%d.%d"), VERMAJ,
VERMIN, VERFIX,
BUILDNUMBER );
SetVersionString( s );
m_CtrlStaticVer.SetWindowText( GetVersionString() );
return TRUE;
}
I get 2 Assertion Errors. One deals with the control variable setting the
value. If commented out, I get still get an assertion on the dialog when
you close it out.
Thanks
"Joseph M. Newcomer" <newcomer@flounder.com> wrote in message
news:i7jg165ugb9uba3nei7p3tqleka51cvm7v@4ax.com...
If you add a VERSIONINFO to the RC2 file, you must DELETE the EXISTING
ONE
from the .rc
file! Otherwise, guess what, you have a duplicate resource of type
VERSION, whose name is
1, and whose language is 0x0409.
Error 1 leads directly to error 2.
joe
On Tue, 15 Jun 2010 12:24:05 -0500, "JCO" <someone@somewhere.com> wrote:
When I add this information to the RC2 file, I get these two errors:
1 CVT1100: duplicate resource, Type:VERSION, name:1, language:0x0409
2 LNK1123: failure during conversion to COFF: file invalid or corrupt
"RB" <NoMail@NoSpam> wrote in message
news:umG$MhIDLHA.4400@TK2MSFTNGP05.phx.gbl...
Corrective update, although the paste I gave you does in fact work
in my App currently. You may want to reexamine my use of the
results of #define _STR(x) #x
#define STR(x) _STR(x)
since I am still learning this area, and some reading I did last night
proves to me that I did not fully understand what this macro was
expanding to when I implemented some of the pasted code.
I really should not be replying to questions since I am not at that
level of competence yet. I only supplied it since I "appeared at the
time" to have a working example of what you asked for, which
the whole idea was given to me ( if you followed the thread )
by David Webber, but the implementation (and any foo bars )
are my doing, not Davids.
So use what you will but be aware.
RB
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
Joseph M. Newcomer [MVP]