Questions tagged [atlcom]
27 questions
0
votes
1 answer
Converting CString to UTF-8 with CT2CA is corrupting some characters
I am trying to write this value to a UTF-8 XML encoded text file:
Estudante - Leitura da Bíblia
I am using a lambda function:
auto AddLabel = [](tinyxml2::XMLDocument& rDoc, tinyxml2::XMLElement* pLabels, LPCSTR szElement, CString strValue, int…

Andrew Truckle
- 17,769
- 16
- 66
- 164
0
votes
1 answer
images not working properly if I open it from my shell namespace extension folder
I have my custom shell namespace extension. Just want to have a virtual folder mapped to some folder on disk C:/ with the same functionality.
using namespace ATL;
class ATL_NO_VTABLE CMyShellFolder :
public…

Pavel Eroshenko
- 11
- 2
0
votes
1 answer
VS 2008 atlcom.h ClassesAllowedInStream not defined (cannot convert parameter)
I am trying to build a project in VC++2008 and it is giving the following error:
error C2664: 'HRESULT ATL::CComVariant::ReadFromStream
(IStream *,VARTYPE,ATL::ClassesAllowedInStream,DWORD)' :
cannot convert parameter 3 from 'const int' to…

manasa
- 27
- 2
- 4
0
votes
1 answer
Duplicate entries of ENUM in two COM components
I am using two ATL/COM component in my VC++ application with the help of following import statement.
#import "First.dll" raw_interfaces_only, raw_native_types, no_namespace, named_guids
#import "Second.dll" raw_interfaces_only named_guids…

Santosh Dhanawade
- 1,756
- 14
- 29
0
votes
1 answer
How to pass COM pointer from one process to another?
I have an interface pointer to an COM object sitting within process 1. I would like to get access to the same object from another process. How can I achieve this purpose? I believe directly passing over the pointer wouldn't work due to different…

Stephen
- 1
0
votes
1 answer
How to convert from BSTR to DATE
COleVariant var(bstrString);
var.ChangeType(VT_DATE);
DATE date = var.date;
not seems to be working. Any ideas will be appreciated. Thanks.

who am i
- 33
- 1
- 4
0
votes
2 answers
How is MFC app commiting to virtual memory?
I am working on an MFC app that seems to be automagically committing to ~160MB of virtual memory. The app typically runs at 10-14MB of memory usage so this level of committed memory seems excessive. Additionally there is no where in the code where…

echobravo
- 393
- 1
- 3
- 11
0
votes
1 answer
How do I pass an array of structs (containing std:string or BSTR) from ATL to C#. SafeArray? Variant?
I have an ATL COM object that I am using from C#. The interface currently looks like:
interface ICHASCom : IDispatch{
[id(1), helpstring("method Start")] HRESULT Start([in] BSTR name, [out,retval] VARIANT_BOOL* result);
...
[id(4),…

Dave
- 8,095
- 14
- 56
- 99
0
votes
1 answer
Support of ATL WebBrowser controls in Windows mobile 7.0
Just being curious, we would like to know the support for ATL webbrowser control (IWebBrowser2) is available on next windows mobile 7.0 version.
Can anybody confirm the same.
Thanks,
Ramanand

Ramanand Bhat
- 183
- 2
- 5
- 22
0
votes
1 answer
How to use ATl COM from a windows service
Using the VS2008 wizard, I have created a Service (That does nothing currently other than Start and Stop)
I wish to use an (out of process) COM object
If I add a #import "object.tlb", then recompilation gives
error C2812: #import is not supported…

user1411477
- 53
- 6
-1
votes
1 answer
Debugging a debug C++ COM dll with pdb but without source code
I am receiving crash while i run the application in (say Connection.dll)
Prior to crash the following assertion comes in C:\Program Files\Microsoft Visual Studio 11.0\VC\atlmfc\include\atlcom.h on line no: 4735(see…

Sandip Pawar
- 47
- 3
-3
votes
1 answer
C++ dynamic_cast with a C# com visible object
I have an old COM component in C++/ATL (Active Template Library) which uses a dynamic_cast to convert a COM interface into the C++ class which implementes the interface.
If the conversion is not possible, the dynamic_cast returns a NULL pointer.
I…

Phil Jollans
- 3,605
- 2
- 37
- 50