com

How does the caller know when there's a Decimal inside a VARIANT?

岁酱吖の 提交于 2020-02-04 01:18:05
问题 The COM VARIANT type is defined using the tagVARIANT structure like this: typedef struct tagVARIANT { union { struct { VARTYPE vt; WORD wReserved1; WORD wReserved2; WORD wReserved3; union { LONGLONG llVal; LONG lVal; BYTE bVal; SHORT iVal; FLOAT fltVal; DOUBLE dblVal; VARIANT_BOOL boolVal; VARIANT_BOOL __OBSOLETE__VARIANT_BOOL; SCODE scode; CY cyVal; DATE date; BSTR bstrVal; IUnknown *punkVal; IDispatch *pdispVal; SAFEARRAY *parray; BYTE *pbVal; SHORT *piVal; LONG *plVal; LONGLONG *pllVal;

How do I get/set Domino read status of messages via Domino COM Object?

坚强是说给别人听的谎言 提交于 2020-02-02 18:09:47
问题 I have an application that interacts with Domino via the Domino COM object. I can send, find, delete messages without problem but getting/setting the unread status does not work. The Domino COM object has method to get the read status but it always come back as read. Anyone have a workaround that works? I've had no success with anything I've found searching online. 回答1: Unread marks in Domino are a funny old beast. They're derived from multiple sources: whilst you have an internal table of

How do I get/set Domino read status of messages via Domino COM Object?

眉间皱痕 提交于 2020-02-02 18:01:30
问题 I have an application that interacts with Domino via the Domino COM object. I can send, find, delete messages without problem but getting/setting the unread status does not work. The Domino COM object has method to get the read status but it always come back as read. Anyone have a workaround that works? I've had no success with anything I've found searching online. 回答1: Unread marks in Domino are a funny old beast. They're derived from multiple sources: whilst you have an internal table of

Outlook.Store.GetDefaultFolder Outlook is creating strange folders in a new .pst file

懵懂的女人 提交于 2020-02-02 16:29:11
问题 After creating a new .pst file only 2 folders are created with the new Outlook.Store(.pst). Example 1: After you close Outlook and reopen it, several folders are created. Some are standard folders, such as Recycle Bin, RSSFeed, and more. But some are strange and have strange names (with strange characters). Example 2: When I was debugging the routine of my COM Addin I have identified that in Addin's 'Startup' event, there is a code that checks the default folders of the Outlook.Store. The

I am missing the Add new item Add “MFC Class From Typelib” in VS-2019

会有一股神秘感。 提交于 2020-01-30 05:41:10
问题 I have all MFC stuff installed foe my VS-2019 Porfessional. I miss the Add New Item "MFC Class From Tyspelib" used in former version to create a simple IDispatch wrapper. I checked everything and I installed the same stuff like in VS-2017. I see this in my VS-2017 version. What did I miss? 回答1: Many Wizards, including that, have been removed from the VS2019. The release notes say: Deprecations - Visual Studio 2019 The following C++ ATL/MFC wizards are no longer available: ATL COM+ 1.0

COM Exception - TYPE_E_CANTLOADLIBRARY?

时光怂恿深爱的人放手 提交于 2020-01-28 10:47:05
问题 I am using a COM dll in my .Net web application. This works fine on multiple different machines. However on one particular machine I get the following error: Unable to cast COM object of type 'CServer.CApplicationClass' to interface type 'CServer.ICApplication'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{CF0DFA28-046B-4C7D-8AA9-F4B7477D8CAE} ' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT

How to do logins using the WinHttpRequest COM?

一曲冷凌霜 提交于 2020-01-28 07:56:31
问题 You can see lots of people automating things on websites using mouseclick and keystroke simulation on browser windows or using the IE COM, but for some applications you don't want your application to take hundrets of megabytes of RAM and use loads of CPU power to render the website etc. So the question is: How to do logins to websites / webservices using AutoHotkey without a browser but using the WinHttpRequest COM? 回答1: I already posted this on the AHK forums, but I think the information is

Does proxy/stub expose the interface?

血红的双手。 提交于 2020-01-26 03:26:46
问题 Suppose I introduced a COM interface and don't want any third party to use it. I have full control over the sources of the COM component and the IDL file that holds the interface definition. My COM component will need marshalling stuff fro that interface, so I'll need to either implement IMarshal or provide a typelib or provide a proxy/stub. Obviously if I provide a typelib anyone can inspect it and find what my interface is and how it can be used. That's not what I want. What if I use proxy

COM 0x8001010E error when invoking from a new thread

对着背影说爱祢 提交于 2020-01-25 13:04:31
问题 I have a c++ DLL that uses an IDispatch interface to invoke methods on a third party DLL. It works if I invoke those methods from the original thread but if a new thread is started (not the one CoCreateInstance was called on) to invoke the method after the it throws a 0x800101E error is thrown. I also tried CoInitialize on the second thread without success. 回答1: The error 0x8001010E is RPC_E_WRONG_THREAD "The application called an interface that was marshalled for a different thread.". You

Understanding IServiceProvider and QueryService

匆匆过客 提交于 2020-01-25 09:25:27
问题 Can anyone explain the idea behind IServiceProvider and QueryService ? I don't understand what a service is and how it differs from another type of object or interface. I've seen little explanation--mainly some remarks here and here on MSDN, but I don't understand them. Why would you have IServiceProvider and QueryService instead of just having some sort of "GetAnotherObject" method? Thanks for any guidance. 来源: https://stackoverflow.com/questions/59432866/understanding-iserviceprovider-and