|
You can use the "OLE/COM Object Viewer" accessible
from the Studio .net Tools menu.
open up the tool from the "Tools | OLE/COM Object Viewer" menu
selection and browse to the Microsoft Powerpoint x.xObject Library
in the left hand tree view. the right hand pane should fill up with
registration information. doiuble click in the left hand treeview
on the power point text and it will open the type library definition
(methods, etc..) for the ppt object model.
-
you can also run Powerpoint and select Tools | Macro | Visual Basic Editor
to bring up VBA editor (you must have a presentation open, btw). Then press F2 key to run the object browser
which shows all the methods for the powerpoint library and other
referenced libraries.
--
hope this help..
steve
sas
|
|
|
|
|
and try this link to microsoft's docs...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/modcore/html/deovrMicrosoftPowerPoint2000.asp
sas
|
|
|
|
|
Thanks.
I'm gonna try this and see how it goes.
|
|
|
|
|
MS Office actually comes with VB help in the form of .chm files although they are pretty well hidden. The path varies slightly from version to version but if you look around:
C:\Program Files\Microsoft Office\Office10\1033
(the 1033 is the important bit), you should see a bunch of .chm files. These will give you information on the various methods. It's not perfect, but it does help.
There is quite a bit of KB documentation on MSDN, lookup "Office Automation".
|
|
|
|
|
Yeah, I've seen the chm files, but they cover VB only. It is suprising, the lack of MFC samples.
Thanks anyway.
|
|
|
|
|
Hi,
I need to pass an array to a method in a com interface using variants. can anyone help me. i need to do in C++.
|
|
|
|
|
Hi,
Do a search on the sites for SAFEARRAY (or if you're using ATL try CComSafeArray)
Hope this helps,
Andy
|
|
|
|
|
Could someone in simple terms, explain Interface hooking using a COM component like MSN Messenger for example. What are the advantages of using COM interface hooking?
cheers
mike
|
|
|
|
|
|
if i want to implement a firewall with windows apis for
processing each input/output packet please introduce me that apis (if there is)
koosha
|
|
|
|
|
hello everyone. I am in deep sh*t now. i have to develop a biometric authentication system which apply neural network algorithm , that is using handwritten signatures to authenticate users instead of combination of user id and passwords. I do not even know which language to use, some told me MATLAB, some said VB. so can anyone give guidance or sample source code to me so that i do not need to start from scratch since the time is running out.
thanks a lot and please help pass this message around so that i can have more things to refer
|
|
|
|
|
Hi all
I am trying to write an Asynchronous socket in an ocx. I have generated the MFC wizard ocx and created 2 new classes -- connect & listen, both derived from CAsyncSocket.
From the xxxApp.cpp, I have created the Main Socket which listens to accept connects from clients.
I made a call to "WSAAsyncSelect(MainSok,wind->m_hWnd , WM_USER+1,FD_ACCEPT | FD_READ); " also.
But I am unable to capture the events to start reading wot is being written to my socket.
I have also written code in the OnAccept of my MainSocket to accept connections. But this routine is not being called.
How do I now receive data asynchronously???
Please help.
Thanks in advance
Cheers
Raja
|
|
|
|
|
Hello All,
I want to know the code changes to be done for converting STA to MTA on the server side.
Thanks in advance.
|
|
|
|
|
To change your server's COM apartment, change:
CoInitialize(NULL);
to:
::CoInitializeEx(NULL, COINIT_MULTITHREADED);
Bear in mind you will have to use one of the suitable pre-processor declarations (such as _WIN32_DCOM) that will "include" the CoInitializeEx declaration, otherwise you'll get errors that it's an undefined function when you attempt to compile.
|
|
|
|
|
Hi, I have no experience with COM what so ever. I cant find any good articles that actually explain COM from scratch!. If anyone can tell me any sites that are good to start me off.
I use VS.NET, how do i create a new project step by step that uses for example the MSN messenger.exe, using C#??
cheers
|
|
|
|
|
|
Hi,
I'm looking for sample code for shell programming (infotip in particular) but the ones that are in the Shell Programming section of the site do not compile under Visual C++ .NET. Since the .NET 2002 version it seems that several macros have changed and the code generated by the wizards is different.
Would anyone have shell programming samples that do work under Visual C++ .NET 2002 or 2003 ?
fred.
|
|
|
|
|
I have a COM object that I have been using for some time in main applications.
I tried to use it in a dll and I get the error C2787: no GUID has been associated
with this object when I try o compile the code.
Are there any header files that I need to add that are not present in a dll but are included in a main windows application that would fix this problem?
|
|
|
|
|
Some component you're using is trying to use __uuidof to get the GUID for the interface/class, and it hasn't had a GUID associated with it using __declspec( uuid ) . This might be an ATL smart pointer, for example.
If the code is exactly the same, you might be using a different version of the SDK. Check your project's include directory settings.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
in the event you have moved from vc++ 6.0 to vc++ .net studio:
----------------------------------------------------------------
I recently had this problem when going from vc++ 6.o to vc++ .net
I had to move my include directories around (as the other poster suggested); I solved it
by putting the platform sdk inclused before the vc includes.
$(VCInstallDir)PlatformSDK\include
$(VCInstallDir)include
It really has to do with the macros that are defined
in the include files. see MS knowledge base article
"PRB: Error C2787 When Building a Project Using ATL 3.0"
sas
|
|
|
|
|
Hi,
I've been trying to create an ActiveX control to put a directX game in it .
But I can't manage to create a DirectGraphics8 Device for such a control.
IDirect3D8::CreateDevice(...) returns D3DERR_INVALIDCALL
(while the exact same call on a "standard" hWnd, doesn't fail (with all parameters set the same).
I think my problem is to get a handle I can use to create my device...
Can anybody help me doing it or can give me pointers to article that can help ?
thanks.
|
|
|
|
|
Hi All,
I have 2 executables, say A and B.
A uses some activex controls and COM components which I want to use from exe B.
I plan to use the SharedPropertyGroupManager for this, say common.dll
I plan to host this dll in MTS and set the object pooling property for Min and Max as 1 and 1. This dll will take in pointers to the activex components used by app A to store in the SPGM.
I plan to instantiate this dll, common.dll in App 'A' and pass the instantiated activex objects to store in SPGM.
I shall instantiate the common.dll from App B and try getting the objects stored by the SPGM.
Will this work??
Can someone help me with this? If this will not work, what is the work around?
Thanks in advance,
Cheers
Raja
|
|
|
|
|
I wrote an activex control that works well in W98.
It had some problems with extended chars in WinwowsXP, so I recompiled it using unicode support.
And now it works well in WinXP. But I can't register it win w98 nor in wme.
Have I got to distribuite 2 versions (98/me and 2000/xp) or there is some way to have only one activeX working on both systems?
Thanks
Paolo
|
|
|
|
|
Not being able to register sounds like it cannot be loaded. Chances are that you're using API calls which have UNICODE/ANSI versions, eg OpenFileA and OpenFileW. In the UNICODE build, it will be trying to pull in references from the DLLs like KERNEL32, USER32 etc. The XP versions have both ANSI and UNICODE entry points, but the Win9x versions don't, they only have ANSI.
This gives an error when loading the DLL.
To resolve it, you can
(a) have two builds (as you ask)
(b) Build only an ANSI version, but convert all string parameters (in and out) and properties to be BSTR, which are UNICODE strings.
This will require a little extra effort, as you may well need to convert from UNICODE to ANSI for use internally, but it's probably worth it.
Steve S
Developer for hire
|
|
|
|
|
[quote]Not being able to register sounds like it cannot be loaded.[/quote]
It crashes and then reports the error "LoadLibrary failed".
Yes, I'm using socket API with different unicode/ansi version.
At first I had only the ansi version, but it gave me some problems with ext chars; also I don't know where to convert from unicode to ANSI, because the VC++ Wizard declares the called function using "LPCTSTR"...
|
|
|
|