Escaping backslashes when passing variables to build events
I have completed a setup to put Git version information into the VC++ application - it works well and prevents uncommitted code running in production.One issue remains unanswered for me - when I use a...
View ArticleHow can i delete a printer driver completely.
I want to make a program to delete printer driver. When i use "DeletePrinterDriver", it got an error:failed with error 3001:The specified printer driver is currently in use.I can not find any solution...
View ArticleConversion from VC6.0 to VS2012, CDialogImpl ambiguous error - while adding a...
Hi All,Recently i had converted our legacy vc6.0 project to vs2012 got structure alignment issue and got them resolved (Thanks to all replies ) .Now when i added a dialog box from resource view(via...
View ArticleHover watch not working for local variables in a function
Hello,I am using MS Visual C++ 2010 Express. I am trying to debug a program. In the .cpp program I go from the main() function to another (secondary) function. The variables that are declared in the...
View ArticleWhich msxml version is Stable?
Which msxml version should be used to avoid memory leak ? As report indicates that MSXML has memory leakage.Vikrant Khandare - IndiaI have my own Activex Control in which I’m parsing xml file using...
View ArticleUsing Winsock to login to website
Hi, I would like some information on how to log into a website using WinSock. The website URL starts with HTTPS. I have done this using LibCurl and now I want to see if it's possible without external...
View ArticleHow To Show an Image On MFC HTML Dialog?
I have made a MFC HTML dialog project, but i can not show image like this:<img src="image.png" />What should I do?
View ArticleWindows 7 UI design: metro style window
Hello! I was wondering if someone could help me figure out how to implement the metro style window for Win7 in c++. For example VS12 and Adobe CS6 window skins do this. I am sure it is probably...
View ArticleConversion from IPv6 to Ipv4
Hi All,I have some doubts regarding to Ipv4 and Ipv6.1) Do we have any Visual C++ API which can convert Ipv6 to Ipv4 and vice versa?2) if I try to convert Ipv6 to Ipv4, Does that API work on the...
View ArticleWin32 API
Hello, I would like to know when a win32 API function is used by some process.Is there a way to approach this?Like returning a boolean or something if let's say the API function SetCursorPos is used.
View ArticleMicrosoft Visual C++ Debug Error
Hello.My Error is:Retrieving the COM class factory for component with CLSID {DDB97CDF-36EB-494C-B07E-DE050F24EF9E} failed due to the following error: 80000003 One or more arguments are invalid...
View ArticleVC2010 CFileView, CClassView, CPropertiesWnd, how to fix them?
I have a project created with VC2010 and the initial layout is almost ideal, it has a CFileView and a CClasView in a tabbed bar on the left and a CPropertiesWnd on the right.But for my project these...
View ArticleHow to learn Basics of COM in mfc?
Hi All,I very much new to COM, I have gone through many articles on internet but still confused from where to start with.can anyone please provide me some DEMO project on COM so that i get some initial...
View ArticleHow to create a control for Toolbox in MFC
Hi,I am trying to write a control that i can add to the ToolBox in my MFC (C++ in VS2010 - unmanaged code) project. Due to limitations on the computers, our projects are not supposed to use any .NET....
View Articlethread taking reference
This seems like a bug. If I create a thread object and pass in function which takes a reference to int, and then increment the int inside the function, the incremented value is not captured in the main...
View ArticleI got this complie error 2265
The code is somewhat like this:template <class T> class A { private:T* ptr_; public:T* get() { return ptr_; }T& operator*() const {ASSERT(ptr != NULL);return *ptr;} }; int main()...
View ArticleHow to disable the CMFCMenuBar from floating?
I have CMFCMenuBar which is docked on the mainframe, with many toolbars docked below it. The manager doesn't want the menu floating from mainframe. I commented out the m_menuBar.EnableDocking(...),...
View ArticleHotkey for MFC Ribbon QAT dropdown menu
Hi everyone,Is there a hotkey has been assigned to open the dropdown menu of QAT? Normally, you can use ALT or F10 to start a key sequence to select a command in a Ribbon bar. It looks like several...
View ArticleINapSystemHealthValidator::Validate() does not get called
Hi,I have developed an SHV that i am running on a win 2008 r2 server virtual machine. (host is windows 7 64 bit). The shv gets installed and properly initializes but when a client sends SoH validate...
View ArticleVisual Studio 2013 - C++ Installer Fail
I'm trying to make an installer in C++ for a Windows Forms application, and I've discovered 2 minor/major bugs.Trying to view the HTM files directly makes the graphics look messed up.Trying to start...
View Article