Originally posted by: Benni Adham
I've created my own toolbar several months ago for
a simple editor. Everything just seems working fine. I
read WordPad source code =).
But later on I've realize that the printing doesn't work
very well. It seems that It misscalculated the size
of words they're truncated (in words).
Any one have any solution?
Originally posted by: Stuart McDonald
Here are the errors i get while compiling:
C:\My Documents\StuSoft Word\FormatBar.h(30) : error C2065: 'IDR_FORMATBAR' : undeclared identifier
C:\My Documents\StuSoft Word\FormatBar.h(30) : error C2057: expected constant expression
C:\My Documents\StuSoft Word\FormatBar.cpp(37) : error C2065: 'IDC_FONTNAME' : undeclared identifier
C:\My Documents\StuSoft Word\FormatBar.cpp(38) : error C2065: 'IDC_FONTSIZE' : undeclared identifier
MainFrm.cpp
C:\My Documents\StuSoft Word\MainFrm.h(39) : error C2501: 'CFormatBar' : missing decl-specifiers
C:\My Documents\StuSoft Word\MainFrm.h(39) : error C2146: syntax error : missing ';' before identifier
'm_wndFormatBar'
C:\My Documents\StuSoft Word\MainFrm.h(39) : error C2501: 'm_wndFormatBar' : missing decl-specifiers
C:\My Documents\StuSoft Word\MainFrm.cpp(67) : error C2065: 'm_wndFormatBar' : undeclared identifier
C:\My Documents\StuSoft Word\MainFrm.cpp(67) : error C2228: left of '.Create' must have
class/struct/union type
C:\My Documents\StuSoft Word\MainFrm.cpp(68) : error C2228: left of '.LoadToolBar' must have
class/struct/union type
C:\My Documents\StuSoft Word\MainFrm.cpp(78) : error C2228: left of '.SetBarStyle' must have
class/struct/union type
C:\My Documents\StuSoft Word\MainFrm.cpp(78) : error C2228: left of '.GetBarStyle' must have
class/struct/union type
C:\My Documents\StuSoft Word\MainFrm.cpp(86) : error C2228: left of '.SetWindowTextA' must have
class/struct/union type
C:\My Documents\StuSoft Word\MainFrm.cpp(87) : error C2228: left of '.EnableDocking' must have
class/struct/union type
StuSoft Word.cpp
C:\My Documents\StuSoft Word\MainFrm.h(39) : error C2501: 'CFormatBar' : missing decl-specifiers
C:\My Documents\StuSoft Word\MainFrm.h(39) : error C2146: syntax error : missing ';' before identifier
'm_wndFormatBar'
C:\My Documents\StuSoft Word\MainFrm.h(39) : error C2501: 'm_wndFormatBar' : missing decl-specifiers
StuSoft WordDoc.cpp
StuSoft WordView.cpp
C:\My Documents\StuSoft Word\StuSoft WordView.cpp(28) : error C2065: 'FN_GETFORMAT' : undeclared
identifier
C:\My Documents\StuSoft Word\StuSoft WordView.cpp(29) : error C2065: 'FN_SETFORMAT' : undeclared
identifier
C:\My Documents\StuSoft Word\StuSoft WordView.cpp(106) : error C2065: 'CHARNMHDR' : undeclared identifier
C:\My Documents\StuSoft Word\StuSoft WordView.cpp(106) : error C2059: syntax error : ')'
C:\My Documents\StuSoft Word\StuSoft WordView.cpp(112) : error C2059: syntax error : ')'
Generating Code...
Error executing cl.exe.
Originally posted by: Gavin Stark
I have a rich edit CONTROL in a dialog box that I would love to have this format bar displayed for. Is
there any way of doing this?
Gavin Stark
Originally posted by: Jacques E. ZOO
I tried to run the application you provide.
I have Visual C++ 5 Professional Edition with Service Pack 3.
The compiler says:
C:\Mine\VisualC\Learn3\Exo05\Editor\EditorView.cpp(42) : error C2065: 'OnGetCharFormat' : undeclared
identifier
C:\Mine\VisualC\Learn3\Exo05\Editor\EditorView.cpp(43) : error C2065: 'OnSetCharFormat' : undeclared identifier
C:\Mine\VisualC\Learn3\Exo05\Editor\EditorView.cpp(44) : error C2065: 'OnBarReturn' : undeclared identifier
Apparently, none of these three functions was defined in the application. I checked the help file of
DevStudio, but none of them is associated with CRichEditView...
Could you show me how and where to define them?
Thank you.