I have a special table, where I record some values in a SQL_VARIANT column. This works nicely. Here simplified CREATE TABLE [tbl] ( [IdColumn] [int] NOT NULL, [NewValue] [sql_variant] NULL, ) To read this table I use a my current ATL OLE DB stuff and I can easily bind this column as VARIANT. For DATE ..
Category : atl
I have a crash dump and I want to debug it with WinDbg to find out the core issue. I found out that the issue is a stack overflow exception and it was thrown by QueryInterface function somewhere inside DirectX. This is what WinDbg shows me with !analyze -v command: SYMBOL_NAME: d3d11!ATL::AtlInternalQueryInterface+ee MODULE_NAME: d3d11 IMAGE_NAME: ..
Let’s say you have some sort of class, and you’d like to call some of its methods on a background thread. That’s what I’m interested in, and I thought CThreadPool would be a nice thing to use for this. I was wondering if anyone has used CThreadPool for method calls before. So here’s what I’ve ..
Let’s say you want to add a little extra graphical info to a Windows control. For example, you want to add drag/drop functionality to a listview (using the procedure discussed here), but with horizontal lines signaling the drop/insertion points as the user drags an item. (The control belongs to your own application.) Is there a ..
My application uses a third-party out-of-process DCOM component, for some reason i want to start dcom server as child of my process instead of child of svchost.exe, is it possbile via some COM configuration changes? Source: Windows..
everyone, I use Flickr drive shell extension( https://www.viksoe.dk/code/flickrdrive.htm ) Go to write a cloud disk and find that the overlay extension and the tree on the left cannot be displayed normally. Overlay extension can be normally displayed on other local disks, but the folder in the cloud disk cannot be displayed. The secondary directory in ..
I’m trying to code a program that changes a BMP file and adds some modifications in particular locations. The BMPs I’m trying to modify are monochrome (1 bit per pixel) as the image size needs to be quite small. I’m using the ATL CImage class to do this. However, I can’t seem to use SetPixel ..
We have an existing DLL without ATL support. I am moving an ATL dialog into that DLL so I need to enable ATL support. I added the following barebone code to add support for ATL and initialise the ATL module and it all works fine: class DECLSPEC_UUID("XXXX-….") MyLib; class CMyDLLModule : public ATL::CAtlDllModuleT<CMyDLLModule> { public: ..
Please considere the method CTime::Format wich is defined in the following .h-file: "…Microsoft Visual Studio19ProfessionalVCTools…atlmfcincludeatltime.h" How is it possible to rename the method CTime::Format? Source: Windows Que..
Recent Comments