Advertisement

900 organizations, including eBay, Ericsson and Lockheed Martin, now work smarter with Corporate Accounts. Save up to 42%!

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested ATL / WTL / COM Programming Solutions: 1 - 25 of 35
 
Year ago I wrote a windows service (using an CAtlServiceModuleT<> based class), it worked fine. I did not touch the code since then. Now I need to return back to its further development and I...
hi experts, it's my first time i try to develop an driver for windows xp. iv downloaded the DDK (www.microsoft.com/ddk/) for windows read all information found a simple example and build ...
I've been addressing several separate issues on my machine and I have a hunch that they are COM-related or perhaps due to a corrupted registry.  It is however beyond my present powers to figur...
I have an application that is using the webbrowser control to surf to a pre-determine website. However, I found that when the website opens a new window, the session information is lost. Thi...
I have a core technology project written as a static lib using C++. I need to create a COM interface from this project. How to do so. I searched on the internet and all what i found is ATL ...
I am building an ATL COM DLL. Can somebody tell me what is the difference between the methods and the functions in ATL. I am not able to add an overloaded constructor with add methods but us...
Is there any method/win32 call available to check if the file is in use by any other process. I have a requirement where i need to check if the file is in use or not. I found that i can ...
Hi, I'm new to Experts-Exchange and this would be my first question.  Thanks in advance, please let me know if the format of my question can be improved to make it easier for the experts :) ...
The crash (developing/running on Vista, using COM without ATL/MFC) appears to be during CoUninitialize (at some point after the event sink object gets deleted): First-chance exception at 0x...
Hello, I have a core project written in C++. It's too sophisticated and large (about 18000 lines of code). I want to make a smooth and sophisticated GUI using .Net Framework. How can I ma...
I have a legacy app which Im updating to communicate with a com automation server The app is C++ but does not use MFC nor ATL. My COM is really rusty... I am able to create an instance o...
The class is declared as class CMainDlg : public CDialogImpl<CMainDlg> I want to handle WM_PAINT at the dialog, but I can't have the parent version run as well if I just put the handler in ...
My C++ (not .NET) program loads HTML files with some embedded scripts  into an instance of HTMLDocument object. When scripts does not have any errors everything is fine. But sadly, when the sc...
I have a COM object written in c#.  In this COM object I have a reference to a c# .exe. From the COM object I try to create a class from the .exe being referenced.  It compiles fine, but at...
I have build a COM wrapper for an underlying C++ DLL in order to access it with VB6 and .NET, but I am puzzled by why I'm NOT having a memory leak for one of the methods I wrote. I have run...
I have an application that uses WTL 7.0 and I'm upgrading it to WTL 8.0.   The code that used to compile fine now gives we the following error: Error     1     error C2039: 'CString' : is not a membe...
I have a VC++ 6.0 application with an associated text file.  This text file is read in at start up every time the application is run.  However, I don't wish to ship the text file with the exec...
Hello, I am having difficulties implementing a sink for a COM object dispatch interface. This is an MFC console application, so using wizards to add CCmdTarget automation is not an option. ...
I have two visual studio projects that create a dll using ATL. I need to re-factor my code so some of the interfaces from the first component could be used inside of the second, so ideally I w...
I am writting addin using Visual Studio 2005 C++ and ATL for Word 2007.  How do I get event notifications like    DocumentBeforeClose, DocumentBeforeSave, etc.   I need to do some processing b...
Hey Guys, So here's the deal: I wrote a script that automatically installs a printer on a 2k3 server for Linux Citrix thin-clients that connect to it. It basically grabs the client's IP addre...
I'm using VC6 and I notice something strange compiling for WMI.  The wbemuuid.lib I'm using comes from my C:\winddk\3790-1830\lib\w2k\i386 directory and I have this directory listed in Tools->...
Hi all I have a windows client application which is using the MS Internet Explorer for viewing web pages. We are using VBScript embedded in HTML files. The application allows the user to me...
hello, I need help in query interface like i am getting  com pointer through a function and i need to extract the data  and  put in the required type.  CComPtr<IModelDoc2>     swDrawing          = NUL...