I suggest accessing the RTF file using MS Word COM APIs (if available)and to use the same MS Word COM API to save the file as RTF again after you made your modifications. MSDN has a link to the RTF specification http://msdn.microsoft.com/en-us/library/aa140277(office.10).aspx, but you might want to avoid this method as it is very tedious.
Chiew Heng Wah
Posts
-
how to add text in external .rtf file -
How can I free memory before returning the value in my function?You could declare it as a global variable, outside the function instead:
char ReturnArray[1024] = {0}; // put it here. char *rr(char*s) { char cc[4] = {0x00,0x00,0x00,0x00}; // char ReturnArray[1024] = {0}; // move it up instead.
-
Regarding web page contentAssumming the COleContainer implements a IHTMLDocument interface you will then be able to get the HTMLElement of the Body of the webpage. The HTMLElement class has many different methods for you to access the text of the webpage. If you want the HTML use the InnerHTML method, if you want the plain text, use the InnerText. There is also the corresponding OuterHTML and OuterText - depends on what you are looking for.
-
ATL App consuming .NETI have a .NET class which provides COM Interop. How does an ATL App consume this .NET class?
-
Hello all I want to capture an image from a CameraCan I safely assume you are talking about a web-camera (webcam)? The DirectShow examples in DirectX SDK should work with the web-cam. Codes are included. Heng Wah.
-
text-to-phoneme conversionNone with MS Speech SDK. However a quick search on Google returns this useful link http://www.speech.cs.cmu.edu/comp.speech/Section5/Synth/text.phoneme.3.html
-
Hello all I want to capture an image from a CameraTry the following CodeProject article by Blas5 Title: Capture Sample with DirectX and .NET Link: http://www.codeproject.com/directx/CapSample1.asp You should also read DirectShow documentation. Also DirectX SDK has a sample program called StillCap.exe under <DXSDK Directory>\samples\Multimedia\DirectShow\bin
-
DirectShow (DirectX)The Windows Media 9 Series SDK provides a number of methods to read/write/edit. Perhaps you want to have a look at Windows Media Format SDK from the following site: http://www.microsoft.com/windows/windowsmedia/9series/sdk.aspx It's not DirectShow but it's significantly smaller in size compared to the DirectX download.
-
COM instancesI am trying to query if a system has applications instantiated DirectShow video rendering objects.:eek: Is there a way to query how many instances of any particular COM class is currently created on a system? (the instances may be owned by other applications).:confused: If so, is there a way to interface with these created COM objects of another application?:~ Thanking in advance for a reply.:-D
-
Capturing Video SurfaceThanks.
-
Capturing Video SurfaceIsn't there another way without changing to software emulation? :((
-
Capturing Video SurfaceI can screen capture a window surface. But not a video surface being played on Media Player. I get only the frame of the Media Player and a "black" surface where the current video frame should be. This "black" surface is seeming like a "transparent" layer (I am guessing here) upon which the video frames are rendered. I am guessing it is the DirectShow surface. How can I capture the video frame?:confused: