|
My base class has one pure virtual function. If I try that I get "cannot instantiate abstract class"
Although, thanks for the comments
|
|
|
|
|
Then try DECLARE_DYNAMIC and IMPLEMENT_DYNAMIC macros in case of base class:
class CImmediateBaseClass : public CObject
{
DECLARE_DYNAMIC(CImmediateBaseClass)
virtual void f() = 0;
};
. . .
IMPLEMENT_DYNAMIC(CImmediateBaseClass, CObject)
I hope it works.
|
|
|
|
|
I got rid of the pure virtual function (well, not get rid of but made less than pure) and then I was able to put those macros at every level and it let me static link to MFC and it "appears" that the serialization is working correctly but a thorough analysis will probably be needed but you got me past that brick wall at a minimum.
Thanks Viorel!
-- modified at 13:54 Tuesday 25th July, 2006
|
|
|
|
|
How does an SMPT server work? When I use a SMTP client to connect to the SMTP server, how does it send the message later? How do the SMTP server and the target server (the mail server of the recipient) communicate?
modified 9-Mar-17 17:15pm.
|
|
|
|
|
Check out the O'Reilly book on sendmail.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
|
See here and here.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Daniel Kanev wrote: how does it send the message later? How do the SMTP server and the target server (the mail server of the recipient) communicate?
Is tanbaum book and white papers is of any help?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
errors while compiling for 64 bit.
1. DWL_USER' : undeclared identifier
2. GWL_WNDPROC' : undeclared identifier
3. 'GCL_WNDPROC' : undeclared identifier
these are used in SetWindowLong but I don't know why these are giving errors all the files are included properly.
"A winner is not one who never fails...but the one who never quits"
|
|
|
|
|
Have you looked in the (winuser.h) header file to see if there are any preprocessor directives in/around those identifiers?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi all...
Is there any library that can be used to perform animated image transition, like those on power point presentation? For example, when I load several JPG files, the dialog shows the first image. If I click, say, "Next picture" button, the dialog shows the next image with animated transition like blurring or sliding, etc.
Thank you...
-Houari
|
|
|
|
|
Im not sure but I think you can find your answer in directx
|
|
|
|
|
I'm new to MFC and started developing applications just a few months back. I'm trying to build an application using which I can read a word document and get the information that I need.
Can anyone tell me how can I perform simple file operation on a word document similar to text files like Getline()? Something similar to C or C++ file operations.
Thanks,
Gajendra
|
|
|
|
|
I don't know that the doc format is well documented. I'd suggest using Word through COM to read / write the files, though this will require that Word be installed on the same machine as your program.
earl
|
|
|
|
|
earl wrote: though this will require that Word be installed on the same machine as your program
AFAIK, you don't need to install word on the target computer. Just a simple dll (don't remember its name) will be ok.
|
|
|
|
|
It is not that easy. A word document has a very specific format and you won't be able to read it like that. You need to go for Word automation (search this site or google or MSDN to learn how it works).
|
|
|
|
|
Cedric Moonen wrote: It is not that easy. A word document has a very specific format and you won't be able to read it like that. You need to go for Word automation (search this site or google or MSDN to learn how it works).
Cédric Moonen
Software developer
I checked the MSDN library online and I could find some Stream operations but they are not very clear to me.
CFile cFile(TEXT("File.rtf"), CFile::modeRead);
Can I use this class functions to perform operations successfully? Well it seems so...
|
|
|
|
|
I said that you have to look for 'Word automation'. Did you read my post ?
I never spoke about Stream operation. What I suggested you is exactly the same as the other suggested: using a COM interface for Word (it's just another word for the same thing). You won't be able to read the file if you don't know how it is structured. And I don't think you know (neither do I)
|
|
|
|
|
Thanks Cedric !! I'll gather more information and then probably I'll ask specific questions.
Gajendra
|
|
|
|
|
I would opt for Word's COM interface, but if you really want to navigate the file yourself, the format of some of the older versions of Word can be found here.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi David,
I'm not aware of COM
Please suggest something else... If this is the best then I'll have to get on with it.
|
|
|
|
|
gajendrakashyap wrote: I'm not aware of COM
a.k.a. Outlook Automatioon.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi David,
It would be a great help if you could give me a clear idea how to go about this. Probably names of those interfaces and some help on using them. Tips ...
Thanks,
Gajendra
|
|
|
|
|
See here, and then click the "Visual C++/MFC - Information and Sample Code" link. There's also MSDN articles like Q220911, Q261997, Q222101, Q196776, Q192348.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi David,
All this is going to help me a lot. I will try to work out on these sample codes. I could not find the last article Q192348.
Thanks much for the help.
Regards,
Gajendra
|
|
|
|