date handling
[Dalai Thread]I receive datetime data either as local UTC or a string e.g. "January 25, 1996 8:30:00"and need to compare this date e.g. dtNew > dtOld before using it as a a parameter in an exported...
View Articleenable selecting for MFC edit control
Hi, I wonder how to enable `select all` for edit control in MFC. like right clicking mouse button, and brings up a menu and select all the content displayed in the edit control currently or `ctrl + A`...
View ArticleC++ managed assembly dll documentation for C# client
Using VS2013, I have created a managed dll (.net 4) and want to use it from within C#. The dll works great, but I want to have the intellisense within C# show the summary and other documentation. I...
View ArticleModal MessageBox isn't preventing access to parent window when ALT key pressed.
Hello,does anyone know how to prevent access to parent window when ALT key press while modal message box is already open ?We are working on a MFC application. In our application, we have a main window...
View ArticleGenerate MSDN-Like Documentation For C++.
Hello everyone, thank you for your time. I would like to generate MSDN-like documentation for my C++ project. Unfortunately "Sandcastle" only works for .Net languages. Could anyone provide me with...
View ArticleRQ_NOTIFICATION_FINISH_REQUEST doesn't work in native module method...
Hi, I'm writting a native module and implementing CHttpModule::OnEndRequest() (among others). I want to prevent the modules after mine from handling the END_REQUEST event, so I return with...
View ArticleDebug information for 'xxx.exe' cannot be found or does not match
I am using Visual Studio 2010 Pro. and compiling under x64 platform building 64 bit binary. My specific Visual Studio version is "10.0.40219.1 SP1Rel"My program (C++) is very simple:#include...
View ArticleWindow API to draw window title
Hello,Anyone know which API that Windows uses to draw the window title text in Win 7 Aero theme and Win 8?Please advise,Thanks.
View ArticleQuick Access Toolbar (QAT) doesn't shown in Ribbon MFC
Hi,I'm converting an existing application to use ribbon. I'm using visual studio 2012. I tried to add buttons through QAT properties editor in the ribbon designer. The QAT shown in the Test Ribbon...
View ArticleReusing custom styles to controls in C++
Hi,I am trying to have customized look for few of the default controls like button, progress bar, etc. I created them in one resource file. But this is limiting me to have this customization to only...
View ArticleVS2012: Missing class members in watch/quickwatch when class derived from std...
Quickwatch does not display class members if the class is derived from std::map. I first noticed this issue after upgrading from VS2010 to VS2012.Sample class snippet:class SmblsWthLval : public...
View Articleerror C1189: #error : ERROR: You must use a GNU Compiler.
Hi everyone!I have just ran into an error in which I don't know how to resolve. I'm trying to compile some code I have but it gives me the following : error C1189: #error : ERROR: You must use a GNU...
View ArticleVC++ 2012 - Unable to open File with fopen and Compiler-Option...
Hi there,it took me quite a while to reduce my problem to the following fact:int main(int argC, char* argV[]) { const char* filename = "C:/tmp/testfopen.txt"; FILE * file = (FILE *) 0; file = fopen(...
View Article100% CPU core usage from devenv.exe in VS2012 RC
Has anyone experienced VS2012 RC's devenv.exe process jumping to full (evidently single-threaded) utilisation of its CPU core? This happened to me with no apparent reason. Tiny C++ test project open. I...
View ArticleI need help for Building MFC application
Hello everyone I have codes whenever I debug or run it, gives me this error as shown below, can someone give me a solution for this error, how can I solve this error. [error description]IntelliSense:...
View Articlehow to fix error LNK2011?
I have a large solution (32 projects) with a mix of unmanaged C++, CLI/C++ and C# projects. Many of the C++ projects are static libs that are linked together to a single dll of the native code that is...
View Articlethe program crashes??
Hi All,this is my program code:#include <stdio.h>#include <stdlib.h>#include <stdbool.h>void getvals(char** *vals, int valscount, const char* input){ *vals =...
View Articlexkeycheck.h and macro defined keywords
xkeycheck.h gives errors if you have defined a macro which is the same as a keyword as discussed here...
View Articlecode for tommorow laboratory
hi guysas u wish here are some codes that can we use ale tommorows lab. take this and learn // po9-przeciazanie_operatorow-Kanal_sciekowy.cpp #include "stdafx.h" #include <conio.h> #include...
View Articleproblem running programs with windows 8.1 and VE2013
Hello,I just started using VS2013 express and so it might be a silly question:I wrote the following code and when I build and run the code, I get two command windows: one with my code (which closes...
View Article