Click here to Skip to main content
15,899,937 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to show an image within an RichEdit control? Pin
Hamid_RT18-Jan-09 22:51
Hamid_RT18-Jan-09 22:51 
QuestionHow to save the content of an RichEdit control as a record in MS-Access database? Pin
Joseph Marzbani18-Jan-09 18:41
Joseph Marzbani18-Jan-09 18:41 
AnswerRe: How to save the content of an RichEdit control as a record in MS-Access database? Pin
Stuart Dootson18-Jan-09 22:07
professionalStuart Dootson18-Jan-09 22:07 
AnswerRe: How to save the content of an RichEdit control as a record in MS-Access database? Pin
David Crow19-Jan-09 3:21
David Crow19-Jan-09 3:21 
Questionread a ms word document using vc++ Pin
AVIHAR18-Jan-09 18:10
AVIHAR18-Jan-09 18:10 
AnswerRe: read a ms word document using vc++ Pin
_AnsHUMAN_ 18-Jan-09 18:57
_AnsHUMAN_ 18-Jan-09 18:57 
AnswerRe: read a ms word document using vc++ Pin
David Crow19-Jan-09 3:25
David Crow19-Jan-09 3:25 
QuestionConstructors and Serialization Pin
BobInNJ18-Jan-09 9:34
BobInNJ18-Jan-09 9:34 
I am writing an application using C++ and MFC. A few weeks ago, I wrote the following
line of code:
<br />
IMPLEMENT_SERIAL( CMainWindow, CFrameWnd, 1 )<br />


The code worked. The class CMainWindow has only one constructor and that constructor does not take any arguments. Today, I changed that constructor to take a single argument, a reference to an
fstream object. Now, I get the following error messages from the compiler on the line shown above.
There error messages are:
<br />
error C2512: 'CMainWindow' : no appropriate default constructor available<br />
error C2758: 'CMainWindow::debugFile' : must be initialized in constructor base/member initializer list<br />

Note that debugFile is the name of the formal parameters for the constructor CMainWindow. I would
really like to be able to serialize the class CMainWindow and at the same time, I would like the class constructor to take one argument. What should I do?

Thanks

Bob
AnswerRe: Constructors and Serialization Pin
CPallini18-Jan-09 9:53
mveCPallini18-Jan-09 9:53 
AnswerRe: Constructors and Serialization Pin
Iain Clarke, Warrior Programmer18-Jan-09 23:30
Iain Clarke, Warrior Programmer18-Jan-09 23:30 
GeneralRe: Constructors and Serialization Pin
BobInNJ19-Jan-09 6:09
BobInNJ19-Jan-09 6:09 
QuestionpoolObject Pin
rini2518-Jan-09 7:51
rini2518-Jan-09 7:51 
AnswerRe: poolObject Pin
Stuart Dootson18-Jan-09 8:29
professionalStuart Dootson18-Jan-09 8:29 
AnswerRe: poolObject Pin
Radhakrishnan G.19-Jan-09 4:34
Radhakrishnan G.19-Jan-09 4:34 
QuestionWin32 API function for getting the hardware details Pin
aaasrgm18-Jan-09 4:01
aaasrgm18-Jan-09 4:01 
AnswerRe: Win32 API function for getting the hardware details Pin
Jonathan Davies18-Jan-09 4:16
Jonathan Davies18-Jan-09 4:16 
GeneralRe: Win32 API function for getting the hardware details Pin
aaasrgm18-Jan-09 4:32
aaasrgm18-Jan-09 4:32 
GeneralRe: Win32 API function for getting the hardware details Pin
Jonathan Davies18-Jan-09 4:57
Jonathan Davies18-Jan-09 4:57 
GeneralRe: Win32 API function for getting the hardware details Pin
Randor 19-Jan-09 4:31
professional Randor 19-Jan-09 4:31 
AnswerRe: Win32 API function for getting the hardware details Pin
Jijo.Raj18-Jan-09 6:57
Jijo.Raj18-Jan-09 6:57 
Questionerror 0xD0000022 when writing minidump Pin
Green Fuze18-Jan-09 3:21
Green Fuze18-Jan-09 3:21 
AnswerRe: error 0xD0000022 when writing minidump Pin
krmed18-Jan-09 3:28
krmed18-Jan-09 3:28 
GeneralRe: error 0xD0000022 when writing minidump Pin
Green Fuze18-Jan-09 20:42
Green Fuze18-Jan-09 20:42 
GeneralRe: error 0xD0000022 when writing minidump Pin
Sauce!18-Jan-09 21:13
Sauce!18-Jan-09 21:13 
QuestionStrange file not found exception Pin
George_George18-Jan-09 2:41
George_George18-Jan-09 2:41 

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.