Specializing a template function for a type that is itself a template
Suppose I have this function defined:template<typename T> T F() { return T(); }I would like to create a specialization for use when T is any type of vector. vector, of course, requires template...
View ArticleC Program compiled using Visual Studio 2012 fails on XP with error .exe is...
I have a legacy program that was written in straight C (not C++). It compiled fine using Visual C++ 6.0 and ran on a Windows XP and Windows Server 2003 machines. I recently ported it to a 64 bit...
View ArticleHow do I get rid of source file redirects when debugging a Visual Cplusplus...
When i debug my code and my breakpoint gets to a certain line, it redirects to some random source files and that seem very tedious to go through while always pressing F11. For example when the...
View Articlefind number of users logged in windows
Hi AllHow can we find out the number of users logged in windows at a time? ( if there are many users logged in using switch user)ThanksManigandasuresh
View Articlewhat is the virtual properties?
I'm c++ beginner and could not understand the following class CItem { public: VIRTUALPROPERTY_BOTH(DWORD, UID, set_UID, get_UID) VIRTUALPROPERTY_BOTH(OBJID, ID, set_ID, get_ID)...
View Article2nd request - New install of VS2010Ex fails to compile
This is my second request for help on this problem. It occurs on my VS2012Ex and my NEW install of VS2010Ex.I first installed VS2012Ex, but because of it's lack of WinCLI templates I decided to...
View ArticleXIRR function in visual studio for Cpp;
Hi,I need the XIRR function in my Visual Studio C++ project.Can someone help me on this topic please ?Since both visual studio and microsoft office is provided by Microsoft, is there any library/dll...
View ArticleTCHAR someArrary[10] i want to convert in tho const char* somechar ?
hello every one,I am very new for the c++,actully i want to convert TCHAR myText[256];into some const char* myText.what i have to do?Regardsashish yadav.
View ArticleSimple RSA/Hash for MFC for software activation
Hi,I am looking for a simple class/library to access RSA functions and Hash (e.g. SHA1) from Windows crypto providers. The class should provide a really easy interface without low-level stuff such as...
View ArticleCComboBox as Edit box On click other button in mfc
Hi friends!!i have a combo box and one pushbutton in newly registered, CWnd derived custom control class;i created Combo box in CBS_DROPDOWNLIST style. i want this to become an EDIT control (i.e...
View ArticleWindows Search Indexing
On the Disk Properties, there is a box you can check for "Allow files on this drive to have contents indexed in addition to file properties". I'm writing a program that has to check if this checkbox...
View ArticleRead RFID module: 0 bytes being read
Hello, I am trying to read an rfid tag using a ftdi driver: http://www.ftdichip.com/Support/Documents/ProgramGuides/D2XX_Programmer's_Guide(FT_000071).pdfI open the device correctly but when I try to...
View Article'C++ Primer Plus' 6th Edition vs. 'C++ Primer' 5th Edition?
I am a beginner to C++ (with programming experience in other languages like Javascript), and I have shortlisted two books which I would like to buy. C++ Primer Plus by stephen prata. C++ Primer by...
View Articlemicrosoft cpp;; exception cnotsupportedexception at memory location
hello,i m setting the Template in MFC application for file open template .... this are id's SetTemplate(FILEOPEN, CUSTOM_FILE);but getting exception error"microsoft c++ exception cnotsupportedexception...
View Articleinconsistent behaviour with recordset NEW () and AddNew ()
i have run into a very strange and inconsistent behaviour of VC++2010 IDEgiven this recordset LONGLONG m_ID;long m_lingua;CString m_titolo;CTime m_dataemissione;int m_fonte;CString...
View ArticleHow does the compiler interpret uncasted situation?
Hello,How does the compiler interpret the "if" statement below when Tsop_Latched_Val = 0 andGated_Range_Front_Snsr = 0?I used no casts here on either variables and the compiler still recognizes that...
View ArticleVisual Studio Cannot find path specified builds properly
Hey,So, like many people, I dled Visual Studio express 2010 many months ago, and when I opened it up to work it again I started getting an erro: "Unable to start program C:Pathname the system cannot...
View ArticleRFX METHODS for integer variables
my actual main consumer has a DB which tables may run in the order of trillions of recordswherefore i need to use for each kind of varible the shortest possible field subject to this query is either...
View ArticleHow to change CListCtrl groups header font ??
Hi, I have created a CListCtrl that display an image list (using SetImageList). The list contains groups that I created using method InsertGroup Theses groups will show up with a header on my list and...
View Article