atl Questions
3
I need to convert a CString instance into a properly allocated BSTR and pass that BSTR into a COM method. To have code that compiles and works indentically for both ANSI and Unicode I use CString::...
Factional asked 18/1, 2010 at 14:5
1
I am making a project using Visual C++ 2010 under Windows 7.
I need to use ATL library, in fact I installed Windows WDK (version 7600.16385.1)
In particular I using the following libraries from WDK...
Maunder asked 4/3, 2012 at 22:44
1
Solved
I need to write a function that dynamically extracts the progid from a COM object.
Is this possible?
What's the best way to do it?
EDIT: All the coclasses I need to process implement IProvideCla...
Paraesthesia asked 13/11, 2012 at 14:3
3
Solved
I know "WTL builds on ATL", but what does that mean in practical terms?
Is ATL a subset of WTL in terms of features? (i.e. are ALL features in ATL also present in WTL?) I notice Wikipedia states A...
2
Solved
I have a Qt project and would like to use an external library that includes "afxstr.h".
Problem is that whenever I compile after linking to the lib and including their header, I get an error:
#err...
Unjaundiced asked 22/5, 2012 at 20:26
2
My program is a chromeless window and I want to move the window when user drag any part of my dialog. Once WM_SYSCOMMAND is used, all subsequent mouse events are lost.
First I wrote a program to c...
1
Solved
For reasons which I won't go into I am auto-generating a load of .rgs files for a Visual Studio 2008 ATL project. I would like to be able to put a comment into each .rgs file indicating that it was...
Krp asked 2/8, 2012 at 10:31
3
Solved
Creating an ATL project in MSVC seems to create not one but two projects; the latter named the same as the former but with PS appended to its name. What is the purpose of this second project and ho...
Heterogeneous asked 6/3, 2012 at 11:26
1
Solved
I am working on an ATL COM dll in c++ and when I attempt to make use of a library I get a number of errors related to min/max such as this. It also seems to cause a number of other errors though I ...
2
Solved
Where does the destructor code for things I have defined in an ATL COM object belong?
Should it go in ~MyComClass() or in MyComClass::FinalRelease()?
Ascariasis asked 16/2, 2012 at 15:38
4
Solved
I'm a bit confused with differences between unsigned char (which is also BYTE in WinAPI) and char pointers.
Currently I'm working with some ATL-based legacy code and I see a lot of expressions lik...
Virulent asked 10/2, 2012 at 13:44
1
Solved
This seemed like a common question but after doing some searching, I wasn't really able to find my answers. There is an article on this here:
http://www.codeproject.com/KB/shell/shellextguide1.asp...
Magnetism asked 10/1, 2012 at 22:42
1
Solved
I am trying to call my BHO method from the javascript. The problem is same as stated in the the following posts:
Call BHO from Javascript function
http://social.msdn.microsoft.com/Forums/en-US/ie...
Embrey asked 11/1, 2012 at 7:47
3
Solved
I am attempting to create a new COM object in my DLL using the ATL Simple Object Wizard in Visual Studio 2005.
I enter the short name for the object, and all of the other fields are derived.
Howe...
Donetsk asked 12/3, 2009 at 0:46
1
I want to implement MFC Docking Framework
in my existing mfc application
I have taken same trial, but it gives me assertion like
before execution of my project.
In output window a text appears li...
Experience asked 8/11, 2011 at 6:38
3
Solved
Assuming I am only using them for "normal" GUI programs (no COM, no ActiveX, nothing fancy), what is the fundamental difference I will see between ATL and MFC, to help me figure out which one to us...
Lightface asked 27/8, 2011 at 1:49
2
Solved
I have a project which needs to be compiled. It is compiled on our build server which I have only installed Windows SDK 7.1 on. I would like to not have to install an actual Visual Studio on this m...
4
I have a member variable declared as
CComPtr<IXMLDOMDocument2> m_spXMLDoc;
XML document is created like this
CoCreateInstance(CLSID_DOMDocument, NULL, CLSCTX_INPROC_SERVER,
IID_IXMLDOMDo...
Stoker asked 20/7, 2010 at 8:39
2
Solved
Right single quotation mark (U+2019)
vs.
Apostrophe (U+0027)
What is the difference between these two characters?
I ran into this issue where I use CAtlString to load a string from a resource fi...
1
Solved
Given the encoding of the project is probably Unicode (but not for sure) what is the best way of converting ATL::CString to QString?
What I have thought of is this:
CString c(_T("SOME_TEXT"));
/...
4
Solved
I have a rather old project: DCOM client and server, both in C++\ATL, only Windows platform. Everything works fine: local and remote clients connect to server and work simultaneously without any pr...
4
Solved
I am converting an ATL-based static library to a DLL and am getting the following warning on any exported classes that use the ATL CString class (found in atlstr.h):
warning C4251: 'Foo::str_' :...
1
Solved
I'm developing an IE8+ BHO plugin. For now I'm simply trying to insert a text into an iframe (class="Al Ai Editable") contained in another iframe (id="canvas_frame").
I managed to obtain the IHTML...
Egotism asked 25/2, 2011 at 16:14
1
Solved
I have a COM server LocalServer32 EXE started when a client application calls c_com_ptr::CreateInstance (using ATL wrappers.)
On Windows 7, when a second client application running under the same ...
Aile asked 24/2, 2011 at 7:55
1
Solved
ATL features a set of macros for so-called COM maps. COM map is a table that associates an interface GUID with an offset that is to be added to this pointer to get to the corresponding subobject - ...
© 2022 - 2024 — McMap. All rights reserved.