|
Anyway, if you meant overloading or overriding, both functions will start at different memory addresses (two different functions cannot start at the same memory address, it doesn't make sense).
|
|
|
|
|
In case of overloading yes. It still isn't clear (at least for me) if he really meant overloading (he didn't answer the question, just put the words in a different order ).
|
|
|
|
|
DX Roster wrote: Polymorphism function overloading
Did you follow our discution ? If yes, do you understand the difference between function overloading (two functions with the same name but different arguments) and function overriding (a function which is redefined in a child class) ?
So please, indicates which is the exact case you are interested in, because these are two completely different cases.
|
|
|
|
|
As strange may appear (at least it appears strange to me), overloading is considered polymorphism (after all, you are issuing the same request on objects of different nature and the behaviour may be different on such different types).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Yeah, that's what Rajesh also said but I honnestly don't think that's what the OP meant by polymorphism
|
|
|
|
|
The OP request was fully polymorphic: it generated completely different reactions from the different subjects... If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
|
Yes, that's one of the reasons you never need a code obfuscator for ATL sources...If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Nice joke
|
|
|
|
|
It was?
You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
When I excute the developing program in VC6.0 debugging enviroment,the program run successfully.But when I excute the program of release version alone,appear the error infomation below:
microsoft Visual C++Runtime Library
Runtime Error!
Program: C:\Progra....
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
However,the program of previous release version excute successfully.why?
I need your help and suggestion,thanks.
|
|
|
|
|
onlysaint wrote: When I excute the developing program in VC6.0 debugging enviroment,the program run successfully. But when I excute the program of release version ...
microsoft Visual C++Runtime Library
Hi,
Please take a look at this article: www.flounder.com/debug_release.htm[^]
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
thanks for your suggestion,I hope some realistic operations to solve my question.
|
|
|
|
|
Firstly, both the debug builds and the release builds should be built with debug information. Some people erroneously believe that only release debug builds can be built with debugging information, but this simply isn't the case. Assuming you've got a release build with symbol files then proceed as you always would; break into the application with a debugger when the fault occurs and get a stack trace.Steve
modified on Tuesday, March 2, 2010 8:30 PM
|
|
|
|
|
Stephen Hewitt wrote: Some people erroneously believe that only release builds can be built with debugging information, but this simply isn't the case.
Umm... Surely, you wanted to say 'debug builds' instead?
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
Yeah, that's what I meant. Steve
|
|
|
|
|
Could you give me some advices to solving the problem,thanks very much!
|
|
|
|
|
I thought I did. I'll reiterate: Firstly ensure that the release build is built with debugging information. Then run the program under a debugger, break execution when the problem occurs and get a stack trace. Pick the thread that's displaying the runtime error message. Which part of this are you having problems with? Steve
|
|
|
|
|
Dear All,
I am working on Exporting different compressed format(Mjpeg,H264,Mpeg4)files into AVI container.
I have included vfw.h and vfw32.lib.And,using AVIFileCreateStream,AVIStreamWrite to create and write into AVI container.
Here,AVIStreamWrite method returns E_UNEXPECTED.
Im not able to proceed further.Also,i could not find the reason for this error.
I have searched in google.Many samples which do the export from BMP to AVI are available.
Could any one of u help me ?
I am new to this video and audio format..
Thanks,
Gomathy L.
|
|
|
|
|
Hi
Im having the same problem as you where having with AVIStreamWrite. Im trying to write MJPG frames from an IP camera into a AVI container. Did you ever solve your problem?
Thanx
|
|
|
|
|
Hi,
Yes.I have solved that problem and now I have implemented AVIStreamWrite for Mjpg,mpeg4,H264…
Actually,If that returns E_UNEXPECTED means,the codec which we r using is not correct.
I have followed this link. http://www.morgan-multimedia.com/download/codec.c
Pls,go thro it.
Regards,
Gomathy L.
|
|
|
|
|
|
I think my problem is that im not specifying the correct format of the incoming MJPG stream and therefore when I create the avi I either get an error or a black video depending on the codec I use.
|
|
|
|
|
Yes..Obviously.
AVISTREAMINFO streamInfo;
memset(&streamInfo, 0, sizeof(streamInfo));
streamInfo.fccType = streamtypeVIDEO;
streamInfo.fccHandler = mmioFOURCC('M', 'J', 'P', 'G');
streamInfo.dwScale = 1001;
streamInfo.dwRate = 30000;
streamInfo.dwSampleSize = 1;//0;
streamInfo.dwSuggestedBufferSize = 0 ;
SetRect(&streamInfo.rcFrame, 0, 0,frameInfo.m_width,frameInfo.m_height);
try this..
|
|
|
|
|
Brilliant!! It worked
One more thing, What number do I need to use for dwRate to change the frame rate to 25 fps?
Thank you.
|
|
|
|