atl Questions

8

I have atls.lib in my hard drive, but I can't link it into my Visual Studio project. I know that atls.lib is an ATL specific library file, and I have all the ATL files/headers/libraries. However, I...
Squally asked 20/6, 2012 at 15:37

1

I have an ATL service running as an out-of-proc server that has several COM classes that the clients are expected to be using. Because of a change in requirements, I need to be able to identify whi...
Mia asked 1/3, 2016 at 16:53

6

Solved

I'm just starting my first C++ project. I'm using Visual Studio 2008. It's a single-form Windows application that accesses a couple of databases and initiates a WebSphere MQ transaction. I basicall...
Leporid asked 4/5, 2009 at 19:47

2

Solved

Just from the start: Since March 1st 2017 this is a bug confirmed by Microsoft. Read comments at the end. Short description: I have random crashes in larger application using MFC, ATL. In all su...
Pulvinate asked 19/1, 2017 at 12:8

2

Sorry for probably stupid question, as I am C# developer it is really difficult for me to find some ideas. We are in progress of migration from VC++ 2013 to VC++ 2019. We have 2 similar VMs with VC...
Traylor asked 4/9, 2020 at 15:18

2

Solved

I just want know what exact difference between ComPtr and CComPtr, and whether ComPtr::As() is analogue of CComPtr::QueryInterface()? I read documentation of both, but there is no clear answer to t...
Evanthe asked 6/3, 2020 at 9:13

11

Solved

Does anyone here have experience with/in developing IE extensions that can share their knowledge? This would include code samples, or links to good ones, or documentation on the process, or anythin...
Dregs asked 13/4, 2011 at 2:40

3

Solved

I am working with an old ATL/COM project in Visual Studio 2017. In previous versions of Visual Studio you could select "Add Class" and then select the option "Add simple ATL object" to add a COM c...
Farrel asked 2/10, 2017 at 8:45

1

I'm using Curl in a project and my function is returning a error about CW2AEX.. const TCHAR* path; const TCHAR* fileName; TCHAR url[ MAX_PATH ] = { 0 }; _stprintf( url, _T( "%s%s" ), path, f...
Embrocate asked 14/2, 2018 at 22:39

6

Solved

I've never worked with COM before, and I've been tasked with writing an application that uses some third party COM objects. If anyone could point me to some good tutorials on how to use them it wou...
atl
Zosima asked 17/4, 2009 at 21:0

3

Solved

I'm trying to get a simple OpenCV sample working in C++ on Windows and my C++ is more than rusty. The sample is fairly simple: #include <opencv2/core/core.hpp> #include <opencv2/highgui/...
Propositus asked 10/10, 2013 at 16:41

2

Solved

I'm trying to write a class to wrap bitmap functionality in my program. One useful feature would be to copy a bitmap from another bitmap handle. I'm a bit stuck: void operator=( MyBitmapType &am...
Mathematical asked 16/4, 2011 at 14:45

2

Solved

I'm a new guy with ATL. So forgive me to ask this question. Problem description: One CEdit control is added into a ATL dialog class. It's attached in the dialog initialize function. //Define the ed...
Cheryllches asked 29/1, 2013 at 3:32

3

I have a _bstr_t string which contains Japanese text. I want to convert this string to a UTF-8 string which is defined as a char *. Can I convert the _bstr_t string to char * (UTF-8) string withou...
Amenable asked 9/3, 2009 at 12:40

2

Solved

I'm creating a COM server executable, and have run into a problem with class registration. When I created my class object, the automatically generated .rgs file looked like this: HKCR { NoRemove ...
Cary asked 20/4, 2011 at 4:15

3

Solved

Maybe anyone can explain this to me: bool Func1(LPCTSTR sData) { if (sData) { ... } } And I called the function like this: CString str = _T(""); Func1((str.IsEmpty() ? NULL : str)); And 'sDa...
Bronchus asked 7/9, 2016 at 14:2

3

1) I am trying to make a simple BHO in C# like here already answered: https://mcmap.net/q/126485/-how-to-get-started-with-developing-internet-explorer-extensions 2) But unfortunately they all tr...
Distill asked 9/4, 2014 at 5:31

1

Solved

I am investigating several Visual Studio 2015 C++ project types which use ADO to access an SQL Server database. The simple example performs a select against a table, reads in the rows, updates each...
Drysalter asked 3/9, 2016 at 16:36

2

Solved

After upgrading to VS2013 I started receiving all my ATLTRACE2 messages in a "() : atlTraceGeneral - My output" format. e.g. ATLTRACE(_T("This is my data: %d\n"), 124); ... shown as dllmain....
Aegisthus asked 11/12, 2013 at 0:16

3

Solved

I have a 32-bit ATL COM component without a type library. It has a class factory for one given class that implements several interfaces. When I use it as an in-proc server, everything works fine -...
Cykana asked 12/5, 2009 at 12:25

2

Solved

The Microsoft Office support article "Add or register an ActiveX control" says: IMPORTANT: Not all ActiveX controls can be used directly on worksheets; some can be used only on Microsoft Visual ...
Effusion asked 23/3, 2016 at 14:59

1

Solved

I'm trying to open "mspaint" and find handle of it right after it has been initialized. But FindWindow returns NULL if I call WaitForInputIdle. If I try to use the function Sleep(1000) it works. Bu...
Transitive asked 29/10, 2015 at 2:55

1

I've written a DLL that creates an ATL CString object. I compile it with Visual Studio 2015 using the "Visual Studio 2015 - Windows XP (v140_xp)" platform toolset. The DLL is loaded using LoadLibra...
Lachesis asked 17/9, 2015 at 14:50

3

Solved

I got a linking problem with atls.lib lately. I updated my linker's additional dependencies lines with: comctl32.lib C:\WinDDK\7600.16385.1\lib\ATL\i386\atls.lib C:\WinDDK\7600.16385.1\lib\ATL\i3...
Spieler asked 20/6, 2012 at 15:57

2

Solved

I have a function where I am calling CoCreateInstance. This function is called multiple times and it works, however one time the CoCreateInstance fails with the "Bad variable type" error. The thing...
Benavides asked 13/7, 2011 at 12:55

© 2022 - 2024 — McMap. All rights reserved.