|
Hi All,
I am trying to retrive message from a computer that is running Microsoft Exchange Server
using OnSyncSave(IExStoreEventInfo pEventInfo, string bstrURLItem, int lFlags)
The bstrURLItem i am getting is of this format
file://./backofficestorage/London.ukproject.com/
Public Folders/Exch test msg-87539250.EML
The message subject given was Exch test msg
Why are these numbers appended to Message Subject ?
Ashish Vasudev
|
|
|
|
|
I would like to learn COM to use in WTL. But I can't find no tutorials that are up to date for C++. And actually goes through it all. And not just skip around expecting you to know everything.
|
|
|
|
|
|
Hi Experts,
How can I check for particular version of MS-Outlook from registry value.
Thanx in advance.
|
|
|
|
|
Hello All,
I have a problem.
My application is a MFC AppWizard(exe) project and Dialog base application with automation support.
This automation support feature provides a odl file and we have exposed some functions using this odl file.
Now we want to place this interface pointer in the ROT.
I have placed the interface pointer in the ROT, and able to retrieve the same in the same process.
Problem started when I retrieve the same interface pointer from ROT in a different process ( other than my process), it is not finding this interface at all in the ROT ( but the moniker is presented in the ROT).
I got to know that this is the problem of not having proxy/stub dll for my application.
Now my question is how to create a proxy/stub dll for this odl file.
Regards
Kishore
|
|
|
|
|
How to write directly in COleStreamFile(would be serialized in Structured Storage)?
Thanks.
|
|
|
|
|
Hi,
I have a small problem. Hope you guys help me solve it. Here goes...
I have a base class BASE and three classes derived from BASE, namely A, B and C. BASE contains properties and functions common to A, B and C. Now, I have to create multiple instances of A, B and C and store them together. So what do I do? I create an array of BASE pointers and a variable which signifies the type of derived class the BASE pointer holds so that whenever I need a derived class, I just get the pointer and type from the Array and upcast it to its concerned class. Is this a good design?
Now I have to implement the same using COM components. I have to expose BASE, A, B and C via COM interfaces and create the component such that when ever I get a BASE component, just by looking at the type, I can Query it for the appropriate Interface. Is the correct way of solving such a problem or is there a better way to do it?
Thanks..
---
Hakuna-Matata
It means no worries for the rest of your days...
It's our problem free, Philosophy
"I think my response was 'What idiot dreamed this up?'" -- Mary Ann Davidson, Oracle's chief security officer, in typical blunt manner, remembering her reaction to the company's scheme to brand its databases as "unbreakable."
|
|
|
|
|
I would say yes, store the COM-Objects with IUnknown- or your BASE-Interface and query for the disired Interface.
|
|
|
|
|
Hi all,
I'm need of some quick help on this. Sorry that I haven't done much home work. I'm a little new to COM. But certainly appreciate any help.
I got a typelib file, that was generated by a VC++ project. It's a simple typelib. An ABC library, XYZ co-class and IXYZ interface.
Now, I got to write this code in .NET. I created a VB.NET project and added a COM class with the same name as the co-class in C++ - "XYZ". And I compiled. However, in the typelib, I get the default names for the library(the .NET project name) and interface ("_XYZ") . i.e., the library name and interface name are different in both the type libs.
I would like to know how in .NET we explicitly specify the library name and interface name too, so that I get exactly the same type lib in VC++ project.
That should be a simple one I guess.
Xavier
|
|
|
|
|
To Use COM Component in .NET you have to use tlbimp tool available in .NET
|
|
|
|
|
Thanks, but my doubt is not that. May I wasn't clear in explaining the problem.
When creating a COM class in .NET, the default interface generated in the typelib has the same name as class preceded with an underscore. if the class is ABC, it's interface will be _ABC. Do you know if we can override this.
|
|
|
|
|
Here is the code that causes problem:
<br />
CComPtr<IUnknown> m_pMyComp;<br />
IUnknown* pUnkOuter = GetControllingUnknown();<br />
HRESULT hRes = CoCreateInstance(CLSID_MyComp, pUnkOuter, CLSCTX_INPROC_SERVER, IID_IUnknown, (void**)&m_pMyComp.p);<br />
if (hRes != S_OK)<br />
return hRes;<br />
This code was ported from VS2003, it works in VS2003 but it crashes only in VS 2005 release mode. Any idea where the problem is??
|
|
|
|
|
What is the HRESULT ? Check additionally with the "dependency walker" whether all dependent dlls are available
|
|
|
|
|
|
|
I have a file MYFile.WSC which is being used by as asp site, which i am converting over to .net (c#). Inorder to use this .WSC file i am going down the route of com interop so as .net can use the existing code, to save me recoding. I am generating a type library file by right clicking on it and selecting the option to generate one, i am then parsing this into TlbImp:
TlbImp C:\MYFile.tlb out:C:\MYFile.dll
Microsoft (R) .NET Framework Type Library to Assembly Converter 2.0.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
TlbImp : error TI0000 : System.SystemException - The type library importer encountered an error during type verification. Try importing without class members. :
System.TypeLoadException - The signature is incorrect.
There is no information on HOW to import without the class member???
thanks
|
|
|
|
|
Hi,
i write one activex, it have one property that receive string with file name to open. I open my activex through iexplorer. AxtiveX is writen on VC++ 2005
Problem is that wherever i put my .html file in diferent folders it always search for the file in the folders that activex was started for the first time.
My file looks like this
<object <br />
width=450 height=250 <br />
classid="clsid:BB4DE790-ED91-44ED-87BC-2B0811F56DFB" ><br />
< param name="source_file" value=".\aa.txt" ><br />
</object><br />
Help
|
|
|
|
|
It works fine in previous version until we decide to use .NET 2005. The C# project failed to add reference of COM Dll in C++ with the error message:
A reference to "../whatevername.dll" could not be added. Please make sure that the file is accessible, that it is a valid assembly or COM component".
Please help.
Jack Rong
|
|
|
|
|
You should make Interop.whatevername.dll file and add it to your project. Some tools provide by VS2005 will help you. Look for TLBEXP.EXE
|
|
|
|
|
I have written an ATL COM server in a DLL with merged proxy/stub using Visual Studio 2005. It can sometimes be used locally and other times remotely. Deploying locally is straightforward and I've now got a client using it that way. However I've been wading through all sorts of internet articles, discussions etc. about how to deploy, debug, and use the component remotely, but to no avail.
I need to be able to deploy and debug on a remote machine via peer-to-peer and/or ethernet switched networks, including guidance on how to configure the security correctly on Windows XP Prof. with SP 2. I've got to believe there is a 'step by step' guide on how to do this, but I haven't found one yet.
Please can anyone help.
Thanks.
|
|
|
|
|
Hey,
i always register my dll in com+ as application. Than you can export this application in a msi file. You can deploy for clientside and serverside. The security thing is a try and error. Good luck
|
|
|
|
|
Hi,
I want to create an IE plug-in where whenever a download dialog is expected, the file is downloaded automatically to a specified folder - the dialog should should not appear.
Has anyone worked on something similar? Is such a thing work be possible to do w/out extensive COM/IE/ATL/OLE knowledge?
I am somewhat familiar with C++ & COM/ATL/OLE concepts.
From the MSDN docs, I also know that I just need to create a COM object which implements a couple of interfaces and register it.
But, am absolutely clueless where to begin & how to get to that. (Never used the Visual Studio)
Any helpful pointers plz ?
Thanks,
-pk
|
|
|
|
|
|
Hi
i developed a com addin for msword in MFC
i have done the registration issues for it ,and i added a menu item for invoking the addin functionality , so it is registered and working properly when i open NEW word document.
the problem occurs when i OPEN an already saved word document, when i click the menu item the famous error message appears "Microsoft office word has encountered a problem and needs to close, we are sorry for the inconvience"
when i work on a new word document i can attach to the word process and debug but when i work on an opened word document i can attach but the break points are not active
can anyone give me any hint?
thanks alot
|
|
|
|
|
if i have a DLL (could be a COM DLL, could be a generic Windows DLL), is there a way to inspect it to see if it implements a specific IDispatch interface without registering the DLL and using CreateDispatch.
i imagine the process is something like:
LoadLibrary
GetProcAddress for QueryInterface
use QueryInterface to find .... (?)
i need this to test DLLs to see if they meet the requirements for our plugin interface without registering the DLL (to avoid cluttering the users' registry)
|
|
|
|