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 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 ...
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 :)
...
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 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...
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...
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...
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...
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...
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 ...
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.
...
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 ...
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...
We have a windows service executing on a windows 2003 box as the 'LocalSystem' account.
This service spawns off a executable.
The executable in turn tries to create an instacne of a COM obj...
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'm using the CLSID_WebBrowser CLSID to create an instance of internet explorer. The system must look the CLSID up to establish the path to the iexplore.exe file at some point - where in the s...
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...
HI all,
Can anyone help me in creating a COM interface in VC++. Please provide me some tutorials through which I can use the interfaces in my code. Basically I have to use AdvancedDisk Inte...
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 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...
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 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 not idea whether I have not looked thorougly or if it's just not possible. So here we go.
Is it possible to declare a function pointer in IDL.
The idea is along this lines. The cli...
Hi guys i have a problem (i think little), the CopySID fuction return a good SID structure but in the main function the check give a totaly different textual SID! Why? :/