|
Thanks, just tried that, HRESULT always 0. Also picture loads successfully (except when running under Purify that is).
Ran it with Purify with CoInitialize, and also OleInitialize. Still got an unhandled exception in the same place, didn't fix it. Found out that the reason it doesn't happen under Purify with my other programs is because they try LoadImage first - when I adapted one of them to make sure it always uses OleLoadPicturePath then got an access violation again when running under Purify.
Did a google search and some code examples don't use anything, some use CoInitialize and a few use OleInitialize but seems to be rarer.
Anyway will just avoid this bit of code for now and see if the bug still occcurs.
With it skipped, the program was basically error free in Purify except for a memory related warning during WM_PASTE operations pasting text into the rich edit, can't remember what it was now though and forgot to write it down - anyway doesn't give a code location in evaluation version of Purify.
Maybe the three day trial of insure++ will give more information when I have time to give it a go.
Thanks, do say if you or anyone reading this has any other ideas and I'll continue to investigate and will be sure to post here if / when I fix it.
|
|
|
|
|
I'll do if i come up with anything usable, good luck.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Computers don't kill programs, users kill programs <
> "It doesn't work, fix it" does not qualify as a bug report. <
|
|
|
|
|
Great, thanks!
Just a quick update.
It's not done it for a week now. Normally would have happened at least once by now - as there is no particular hurry to get this sorted out, I will leave it for another week to be sure.
That's with the subclassing disabled and the OleLoadPicturePath code also disabled. Next step will be to re-enable those two features one at a time and see which it is, which would take up to another fortnight for each one.
Not had time yet to set aside three days for a test drive of Insure++.
More later,
Robert
|
|
|
|
|
Thanks for the update, i'm still curious so if some new info turns up about the problem, please drop a few lines here.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> "It doesn't work, fix it" does not qualify as a bug report. <
> Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it. <
|
|
|
|
|
Well after nearly three weeks glitch free with the new update, suddenly did it today.
So - not caused by the subclassing, or by the OleLoadPicturePath (or if either of those have anything to do with it, not the only thing that causes it).
So back to the idea of checking the code thoroughly with a memory overrun checker. Which I'll do when I have time.
Robert
|
|
|
|
|
Damn , lurking errors are nasty...too bad you can't intentionally reproduce it...i have no idea what could help, if i think of something i will post it...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> "It doesn't work, fix it" does not qualify as a bug report. <
> Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it. <
|
|
|
|
|
Hi All
Where i can found msppt8.h? or How can i make msppt8.h file?Please help me
|
|
|
|
|
Generate it from Powerpoint typelibrary.
Project->Add Class->MFC->MFC Class from Typelib. if from registry, select 'Microsoft Powerpoint Object Library' or if from file browse for powerpoint type library (msppt.olb) in directory where Ms Office is installed. Select whatever classes you need there.. give header file name.. go ahead..
|
|
|
|
|
ok i add
msppt.olb then it's generate more than 100 class.So which class header file name i chane.As per Microsoft site say only one header file include
Msppt.h .So can you give me tips to which file name change.
My requirement is open MS PowerPoint.
Please celebrator it.
Thanks in advance.
modified on Friday, June 11, 2010 6:10 AM
|
|
|
|
|
for older versions of visual studio, it generates all wrapper classes in to single header file say mspptX.h. But it doesn't mater. Only care to include the header files before using the wrapper classes declared in them. Still you can specify single header file name for all generated classses so that just need to include this single .h file.
|
|
|
|
|
ok when i add
MSPPT.olb in 2005 and 2008 then i am not getting.There is any more option.
Please help me
|
|
|
|
|
what you are not getting?
|
|
|
|
|
sorry it's mistake
i mean to say
msppt.h
|
|
|
|
|
if you have msppt.h.Please attached it.
Thanks in advance
|
|
|
|
|
why do you insist on the name 'msppt.h'? You select whatever interfaces you want and let visual studio to declare wrapper classes for them in any .h file. You just include those .h files before using those classes.
Refer this
|
|
|
|
|
can you attache
msppt.h or whatever you name declare please help me
|
|
|
|
|
how to attach?
|
|
|
|
|
|
|
|
Thanks to mail me..But how can i use it..
|
|
|
|
|
still i am waiting for your response.
|
|
|
|
|
|
I'm working on MS Visual C++ 6.0. I have a dialog with a combo box on it. Since it needs to display the items in sorted order, i have checked the 'sort' feature available by right-clicking on the combo box and choosing "Sort". This does the job, except that the sorting takes place such that 11 appears before 2 (because the sorting is string based). I need the sorting done based on the length too i.e it should appear as 9, 10 ,11 and not 10, 11 and then 9.
How can I edit the "Sort" functionality of the combo box?
|
|
|
|
|
what are the values that your combo carry.
are they fixed? or are they going to change regularly.
--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.
|
|
|
|