Bitmap image not showing up on windows title bar in windows server 2012 std
I have an application written in VC++ (MFC). Its a legacy app. Recently we were asked to check its compatibility with windows server 2012 std edition. We found some issues and one of those is as...
View ArticleCryptImportKey fails on the Windows 2012 server
I am using Microsoft Cryptography API. It is working fine on Windows 2008 server. We have a new machine - windows 2012 server R2. My code (C++) does not work on this machine.Here is the code sample...
View Articledll import gives error when instantiating an object
Hi all, I am having a problem, I am working on the c++ program, I have imported a dll file which i don't know how it looks since it was just a given library and given an API guide on how to call...
View Articlehow to store vc++ output in xml format
i am fetching system information with vc++.. i want to store my output in xml file. how should i do it? my vc++ code is as below. by including which xml library/headerfile/namespace i should achieve...
View ArticleApplication converted using VS2010 is giving error on the target machine
Hi,I have 1 VC++ project downloaded from the svn and converted using VS2010 and build it successfully.When I am running the exe in another machine windows server 2008 R2 x64 I am getting error as shown...
View ArticleVS 2010 vs. VS 2013 – Create Work Item feature
Using Windows 7, C++, Visual Studio 2010 Premium and Visual Studio 2013 Premium. In VS 2010 you can right-click a warning or error in the Error List window and create a work item based on the warning...
View ArticleISAXContentHandler characters event and UTF-8
I'm having an issue with using the MSXML2::ISAXContentHandler.We have some XML files that contain the Euro symbol, and some smart quotes and apostraphes. The XML file is UTF-8 and my understanding is...
View ArticleIs the default_date() defined below thread safe according to C++11 Standard?
This is another example extracted from B.Stroustrup's new book "TCPL", more specifically from itsSection 16.3 Concrete Classes. As this is a rather long section, I'll summarize the points of interest...
View ArticleCustomized cl+link for V.S 2010
Hello,I wrote new cl+link from scratch in order to run a compiler + linker for another O.S (vxWorks).When I compile a file, my cl is running and when I link the application,my link is running.After...
View ArticleShowing a window on different desktop
I have 2 questions.I have an application which shows a full screen window in a different desktop. The issue is when the desktop is switched to show the dialog, the new desktop background is visible for...
View ArticleCompiling Apache 2.2.16 with VS2008
Hi all,I am trying to compile Apache 2.2.16 with VS2008.I run this command successfullyperl srclib\apr\build\cvtdsp.pl -2005.After building Apache.dsw in VS2008 (having 110 projects), i am getting 82...
View ArticleCFolderPickerDialog - zip files with folders
Hi guysPlease help.In brief, in a project, when a certain button is clicked, it is supposed to open a folder dialog, so I used the CFolderPickerDialog class. But It shows only folders. I want it to...
View ArticleHow to move from control to control using arrow keys
Hi, I have made an application in C Windows Api where I have a kind of grid of radio buttons and small edit controls. I want to be able to move between these controls using arrow keys.I have made the...
View ArticleDisplaying CListCtrl contents in a single column
Hi,I have a CListCtrl created with "View Type" as "Small Icon", and the items are showing up in multiple columns. We want the items to show up in a single column. I've tried options like setting "No...
View ArticleHow to copy a file and preserve the "owner"?
I wrote a program to copy files and folders to use for backup purposes which is mostly working, but the owner gets set to the user doing the copy? Is there a way to set the copied file's owner to be...
View ArticleC++ SNMP Extension Agent - how to work with AsnSequence?
Greetings gentlemen! What I need is to create SNMP agent for monitoring our software systems. I’m using "winsnmp" for writing my SNMP Extension Agent in Visual C++. The output is x64 DLL, which is...
View ArticleVS2013 command line devenv build or clean hangs
I could reproduce this command line hang using following steps:1. Create C++ win32 console application2. Add x64 solution + platform configuration3. start developer command prompt VS2013 and run cmd:...
View ArticleMFC error MSB8011: Failed to register output. when trying to get current...
Hello, i am currently developing a MDI MFC application and i am currently trying to get The properties window to update to the currently selected class object in the class view hierarchy tree.What i...
View ArticleSerial port: How to reset ::WaitCommEvent() in non-overlapped mode
Once the ::WaitCommEvent() is called such as this:::SetCommMask(m_hCommPort,EV_RXCHAR);::WaitCommEvent(apThis->m_hCommPort,&dwEventMask, NULL );//This will block the thread until of course there...
View ArticleHow "More Windows..." works in MFC MDI applications
Hi,In MFC MDI application we have windows menus to make child windows "Tile", "Cascade" etc. Below that we can see the List of Open Child windows up to 9 and after that "More Windows.." will be there....
View Article