|
Hi,
I wrote a word addin (Office developer 2000 - VBA) that loads at startup of Ms Word. In the document with which Ms Word starts (document 1) everything is OK. I can also run the addin several times within Document 1. When I open another (new or saved) document, document 2, the addin will not run anymore. The commandbarbutton is visible en enabeled in the commandbar, but when I click on it nothing happens.
Any help will be appreciated.
Thanks,
Hendrik Jan
|
|
|
|
|
Hi,
We are working on development of a solution based on the RTC Client API v1.3 SDK. We want that the application we are developing should work as a service.
So we first tried to run the 'RTCSample' application as a service. For this we used a third party application that starts normal windows application through service.
Installing the service and starting the 'RTCSample' application through this service was not a problem. But using the sample application started with this way, we have not been able to connect to the LCS server.
We have confirmed that all the LCS related settings are correct. If we run that application without service it does not cause problem and we are able to connect to the LCS.
We want to run 'RTCSample' application as a service. So can you please help us how to make it as a service?
If there are any limitations on the RTC API regarding the service mode, please let us know.
|
|
|
|
|
I am having trouble with running one of my ASP.Net application. The problem is that the application runs another exe application using the process object and the exe in turn generates some output files but the output files are missing while running under ASP.net application scope. It runs fine when run through a console application or asp application. It is a problem specific to ASP.NEt application. Maybe something related to user permission under which the application is executing but i an not able to figure out the problem. Anybody out there know how to solve it please help.
thanks Ramendra
Ramendra K
|
|
|
|
|
I have a ASP.Net web application which calls a .exe program that generates some output files. But while running under ASP.Net environment i dont see the output files generated. It works fine when run under asp environment. I did tried to set permissions but that too didn;t work. Maybe i am not doing it correctly, so, please let me know what should i do to get it working.
Any help would be appreciated...
thanks, Ramendra
Ramendra K
|
|
|
|
|
What does this have to do with COM ? How do you call the exe ? Does it fail ( i.e. does it blow up, or can you just not see the result ) ? Can you control the exe to see what's going on ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
It has nothing to do with COM. I am calling the exe using the process object of the .net framework. It doesn't fail just returns without creating the output files. It doesn;t blow up. I dont know what you mean by controlling the exe. I call the exe application using the process object.
thanks, Ramendra
Ramendra K
|
|
|
|
|
ramenk wrote: It has nothing to do with COM.
Well, why did you ask in the COM forum then ? :P
ramenk wrote: It doesn't fail just returns without creating the output files.
What is the exe ? Did you write it ? If so, can you change it to help you work out what the problem is ?
ramenk wrote: I dont know what you mean by controlling the exe. I
I mean, is it yours/do you have the source code.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
No i didn;t write the exe and cannot change it. I have to use as is and make it work.
thanks, Ramendra
Ramendra K
|
|
|
|
|
Then you need to check the debugger to make sure it's being called properly, and apart from that, just check that the asp.net process has permissions to create files where you're trying to create them.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
It has nothing to do with COM. I am calling the exe using the process object of the .net framework. It doesn't fail just returns without creating the output files. It doesn;t blow up. I dont know what you mean by controlling the exe. I call the exe application using the process object.
thanks, Ramendra
Ramendra K
|
|
|
|
|
I was wondering whether we can FTP from different host (places)using TAPI .basically,all knows TAPI usually used for telephone action & also can be use for dial up,but for FTP, is it possible to use it.Actually, if using via internet, this of course can be done,but for security purpose,we intend to use dial-up only.
so,anyone with that knowledge,please enlighten me
tq
fzillion
-- modified at 3:48 Monday 24th October, 2005
|
|
|
|
|
I think RAS will do what you want to do, which I'm assuming is establish a TCP/IP connection over dial-up.
|
|
|
|
|
Hi
I am working on a project that uses switch telephone machine and i want to control this machine by using C# if there is any one can help me please >>>
Wail
|
|
|
|
|
Try asking in the C# forum instead of the COM forum.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I would like my COM object to expose the functionality to export itself into different binary representations into an output stream. E.g. to render itself into a stream as PDF or as JPEG, etc. The functionality itself is already available, but I don't know how to expose this function in terms of standard COM interfaces.
I looked at the IPersistXXX interfaces but they don't allow to specify the target format but assume that the format is inherent to the object. Also for every output format there are potentially format dependent options that need to be passed in.
IPersistMoniker looked promising but I am not sure if the intent of this interface is the export into different formats.
I would like to reuse existing COM interfaces if possible rather than defining my own interface.
What do you recommend?
Best regards
Carsten
|
|
|
|
|
There is the IPersistFile which has Load(filename) and Save(filename).
With best wishes,
Vita
|
|
|
|
|
Hi Vita.
Right, but how does the interface allow me to export my object? I would guess the correct format by evaluating the file extension, but that won't work if want to stream the content instead of writing it to a file (IPersistStream). Also IPersistFile does not allow me to pass extra information to configure the export process, such as target width/height of an exported bitmap or the compression ratio for JPEG.
|
|
|
|
|
Right, but how does the interface allow me to export my object?
As usual IPersist* interface. If you try to find some export interface, so you can use the exact IPersistFile. If you aren't able to choice the export interface, you should implement the exact one required by client.
I would guess the correct format by evaluating the file extension, but that won't work if want to stream the content instead of writing it to a file (IPersistStream).
The stream stores the binary data which presents this object (see OleLoadFromStream). There is no matter which format the object used to be stored.
With best wishes,
Vita
|
|
|
|
|
Hi Vita.
I guess I want to make a different point. The COM object that I have represents a graphic with an internal binary representation that is specifc to my application. I want to export this graphic to JPEG into a stream (or a number of other formats). The JPEG representation is not enough to recreate my graphics, so it is not equivalent to persisting my object, I just want to export it to a stream (not to a file), e.g. to pipe it into another filter stream or to return it as a response to an http request.
Somewhat like this (pseudocode):
<br />
IUnknown* pMyObject = ...<br />
IStream* pOut = ...
<br />
IExport* pExport;<br />
pMyObject->QueryInterface(IID_IExport, (LPVOID*) &pExport);<br />
<br />
LPCWSTR mimeType = L"image/jpeg";<br />
IBindCtx* pJpegOptions = ...<br />
IPersistStream* pPersStream;<br />
pExport->get_Persister(&pPersStream, mimeType, pJpegOptions);<br />
<br />
pPersStream->Save(pOut, FALSE);<br />
<br />
<br />
mimeType = L"application/postscript";<br />
IBindCtx* pPostscriptOptions = ...<br />
pExport->get_Persister(&pPersStream, mimeType, pPostscriptOptions );<br />
<br />
pPersStream->Save(pOut, FALSE);<br />
I wonder if this is the right programming pattern to export an object and if yes, is there a standard interface that corresponds to the IExport in my pseudocode?
I considered using IPersistMoniker like this:
<br />
IUnknown* pMyObject = ...<br />
<br />
IPersistMoniker* pPersMon;<br />
pMyObject->QueryInterface(IID_IPersistMoniker, (LPVOID*) &pPersMon);<br />
<br />
IMoniker* pOutMon;<br />
CreateFileMoniker(L"test.jpg", &pOutMon);<br />
IBindCtx* pJpegOptions = ...<br />
pPersMon->Save(pOutMon, pJpegOptions, FALSE)<br />
Is this the right pattern?
|
|
|
|
|
|
Can any one suggest a good book on COM I do not want that it should cover C++ or object oriented concepts but directly into the com concepts with examples.
Please any one could suggest me a good book which they have probably read.
Nishant J jaiswal
|
|
|
|
|
Don Box' books are definitely the best in my opinion.
Essential COM
http://www.amazon.com/gp/product/0201634465/104-1873800-1887156?v=glance&n=283155&n=507846&s=books&v=glance
Effective COM
http://www.amazon.com/gp/product/0201379686/104-1873800-1887156?v=glance&n=283155&n=507846&s=books&v=glance
Carsten
|
|
|
|
|
Thank you Carsten for your help do you also know some ebook or material on the net which is on the same line
NJJ
|
|
|
|
|
I recommend you to have a look in the MSDN Library[^]
. There is a lot of information there.
And there are a lot of articles very helpful here in The Code Project. For example...
From Joao C. Morais -- All of them. The articles are a very good introduction to COM Architecture[^]
From Lim Bio Liong -- All of them are indispensables. Have a look in the Beginners section [^].
|
|
|
|
|
i want to use the numericupdown control in my application but it doesnt adopt the XP style look. it still has that old classic look even though the rest of the controls have the XP look. How do i so this. I'm sure it's possible becuase the numericupdown control is used in the date tim applet in the control panel having XP looks.
|
|
|
|