m_strFilter in 2012 - fllter combo box string with db
db_login->m_strFilter= "Username ='"+m_str_combo+"'"; // Filter the username from the table. if m_str_combo is string getting from combo box which needs to be filtered with db. How to do it in...
View ArticleMFC Ribbon: CMFCRibbonButton::RemoveAllSubItems() in CView::OnUpdate leads to...
Steps to reproduce:Create an Outlook-type MDI project with Ribbon user interface. In the OnUpdate member of you CView class, add the following code:CMFCRibbonBar *pRibbon = ((CMDIFrameWndEx*)...
View ArticleConvert CPP Code in .exe in MS Visual Studio 2010 by VC++ Project
Hi,I have one source code of .CPP program and i want to generate .exe file of this project, for that i create one new EMPTY PROJECT(VC++) in Microsoft Visual Studio 2010 and add all the .cpp and .h...
View Articleclass accessors using pure virtual
I have a basic understanding of class accessors e.g public, private and protected. But when defining pure virtual functions how should I handle these?
View ArticleDAO
Hi, In my VC++ project, I use afxdao.h in which I mentioned the GUIDs of dao. Now I changed the .mdb file to .accdb file. It works fine (both with mdb and accdb) for me if I test in a machine in which...
View ArticleThe option "Intermediate Directory" has strange influence on the generation...
I was struggleing for few hours with strange problem with embeded manifest section. Binary DLL file contains no manifest (assembly) section, if I use clean and then Build, but it works well for...
View ArticleNeed help understanding inlining behavior of MSVC
Hi all!I have the following inside a header file for a DLL:namespace lib1 { template<class T> class TemplClass { public: inline T* getT(); T* t; }; class INLINING_API DerivedClass: public...
View ArticleVC2012 regression in setlocale
I have identified a regression in the behavior of setlocale in VC2012 dealing with changed windows regional decimal separator.1. Start with Window's Region and Language settings set for a language that...
View ArticleRegistration-Free EXE COM Server ?
Is it possible to build an unmanaged C++ based executable (exe) COM Server which are registration-free (aka. includes the proper typelibrary and interface lines in the manifest file and requires no...
View Articletype conversion from const wchar_t[] to IN_ADDR* and const wchar_t[] to DWORD* ?
Dear AllI am having problem in converting type conversion from 'const wchar_t[]' to 'IN_ADDR*' and 'const wchar_t[]' to 'DWORD*'. Any suggestions would be greatly appreciated.int...
View Articleinheritance II
still figuring out but trying to find the best way to allow maintain a list of derived classes in a base class ...class Base { public: virtual void v1() = 0; virtual void v2() = 0; }; #pragma once...
View Articlec++ visual studio patch file
Hi,I have to port a Linux C application to Windows for a research project.The authors have supplied infoon how to do this in Visual Studio 2012 express C++. I have zero experience in C++. I just want...
View ArticleVisual C++ 1.5 TO Visual C++ 2010
what are the steps to be followed to convert a Visual C++ version 1.5 project to Visual C++ 2010.Any helpful idea is greatly appreciated.
View ArticleInheritance III
still trying ...class Base1 { public: virtual void v1() = 0; virtual void v2() = 0; }; #pragma once #include "Base1.h" #include "Base2.h" class C1 : Base1 public: void v1(); void v2(); void...
View ArticleVS 2010. "Unable to start program xxxx.exe" error. Help!
I am not a professional developer but a social scientist using VS for develping a simple simulation program. With VS 2010 Pro, I built a Win32 console program. When I execute the program via Run (F5),...
View ArticleGetNumberFormat returning special character instead of minus sign for...
Hi , I am trying to use GetNumberFormat for negative values in Win CE 6. In trying to do so, I get some special character as a output instead of the minus sign. This problem does not happen in the...
View Articledebugger not showing locals
Visual Studio 2008, C++ MFCThere are several parameters debugger for which the debugger will not show any value. It has reached the point where it will skip over an entire subroutine. I found...
View ArticleString selection
Windows XP and 7, Visual Studio, C++, Win32 bit app, MFC dialogWhat strings type should be usedI have switched to having Unicode enabled; yet there remain a plethora of string types. WCHAR seems to be...
View ArticleVC Redistributable - missing msdia120.dll
Hi, I am trying to install the MS DIA redistributable, which, according to http://msdn.microsoft.com/en-us/vstudio/dn249728.aspx, should be available in the VC 2013 Redistributable.But, after...
View ArticleMFC using "SQLGetInstalledDrivers" occurs error LNK2019: unresolved external...
Dear all,goodday~I am using MFC of Visual Studio 2010 C++ to develop a application which can read field value in excel file,in my code ,using the "SQLGetInstalledDrivers" functions to check whether...
View Article