Mike M. said:
Sounds like you have your hands full. I only use Visual c++ 6.0. I haven't
been given the opportunity to use .NET yet. In my c++ apps I create a
logging class/function to write all of my debugging info to a file. That is
easier than trying to watch it scroll past in a control or the output
window. You should also be able to compile a debug version and step through
the code. You won't be able to poke into the structures you are looking at
since they are probably COM interfaces. However, you can assign the
structure values returned to local variables and then look at them. If I
wasn't so busy I would try to look at the structures you mentioned. I will
have to wait for some quiet time before I can do that. I anticipate that in
about 25 years. ;-)
Be advised that some of the COM interfaces are somewhat wacky. All of the
help is in VB parlance and you have to sort of guestimate into c++ or look
at the generated .tlh and tli files after including the PowerPoint type
library.
Good luck.
What are .tlh and .tli files?
There are no such critters in the .NET project's directories.
Powerpoint, itself, has no effect on the code, other than the code detecting
"powerpnt.exe".
I have possible good news, but first.
I purchased MSFT C/C++, I guess it was version 5, about 7-0 years ago, when
I decideed to try my hand woth WLLs in Office 95.
Very shortly after that purchase, MSFT released/announced Office 97, so I
ditched the idea of using C/C++ and got VB 5 Learning edition, and then VB 6
Enterprise.
I also have MSFT Visual C/C++ 6 Learning edition, indeed I have two copies,
that came with books. This helped because I was abe to compile and then
import the workspace into .NET.
However, I have NO Visual C/C++ 6 books that talk about Forms. Heck one of
the books EXPLICITLY states that ALL examples will be for console
applications.
A difficulty is that the single C++ .NET book I have was for VS .NET 2002
and it had nothing about Windows forms for C++, and almost nothing about
Managed software,
In recent daze, I've been plodding thru MSDN, the KB, the Help, etc..
There's (relatively) very little for C++, everything is for C# and VB .NET.
Yesterday, I ordered Kate Gregory's book, hope that helps in the future, as
I do expect that there will be other times I wish to see how particular
C/C++ works.
I thought about throwing the info into a file, but I wanted to use a Form,
and ever the masochist, I do intend to convert the code to C#, VB .NET and
VB 6.
Now for the good news.
The structures are directly addressable, as are most structures used in the
API. That's the easy part.
As I stated in recent daze, the usage count for powerpnt.exe does not seem
to get updated, but now that I can output to a Form, I can better see the
results.
Many/all of the modules associated with powerpnt.exe do expose usage counts.
I would hope/expect that one of those DLLs will reveal what I've been after.
Now that I better understand what the code does, I'm going to try to do the
following, which is expedited by having a Form.
1. Let the code merrily plod along listing processes in a listbox.
2. When the code finds the powerpoint process, clear the listbox, output the
powerpoint info and terminate the loop.
3. Output the content of the list to a file.
4. Run the program with 1, 2, and 3 powerpoint objects running and hope!