CFileDialog crashes after calling DoModal on Windows Server 2012 and Windows 8
CFileDialog crashes after calling DoModal on Windows Server 2012 and Windows 8Below code snippet crashes in windows server 2012. It works fine on Windows 7.TCHAR ptFiles[2048]; ptFiles[0] =NULL;...
View ArticleHow to set CFileDialog default file path at dlg.DoModal (in Windows 7)?
I found this answer in an old forum post:CFileDialog findcpr(true, ".vtl", NULL, NULL, "cpr files (*.cpr)||All Files (*.*)||"); findcpr.m_ofn.lpstrInitialDir = m_jobdir; findcpr.DoModal();It works as...
View ArticleError in Visual C++ when trying to move all methods to the .cpp file
Hello, I am making a form application in C++. Going off to a good start, however, I don't like the way Microsoft's generated code has methods in the .h file. So I am moving them to the .cpp file (see...
View Articleerror LNK2019: unresolved external symbol kinect sdk
Hi!I am running Windows 7 64bit with the Kinect SDK 1.5 and developing in Visual Studio 2013. I'm receiving the message "error: LNK2019" error when I attempt to run a basic C++ Kinect program. Here is...
View ArticleDirect2D Example. Debug Source Code.
I'm going through the example here:http://msdn.microsoft.com/en-us/library/windows/desktop/dd370994(v=vs.85).aspxThere is code:#ifndef Assert #if defined( DEBUG ) || defined( _DEBUG ) #define Assert(b)...
View ArticleGWLP_USERDATA. Window User Data. Direct2D Example.
// Handles window messages. LRESULT CALLBACK DemoApp::WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { LRESULT result = 0; if (message == WM_CREATE) { LPCREATESTRUCT pcs =...
View ArticleLooking for documentation on linker switch /SUBSYSTEM and the minor/major...
it's here: http://msdn.microsoft.com/en-us/library/fcc1zstk.aspxall it has to say about the Version number is:>> The choice of subsystem affects the entry point symbol (or entry point function)...
View Articleexecution time 53 VBA calling a VS c++ dll
Hi, I'm building a dll that call's some other c++ library and returns the value to VBA. I already added the directories and included the other project.Lib file. However when I call it from Vba I get...
View Articlepsc161 VS 2012: Snapshot Recordset no longer updatable
psc161(VS 2012: Snapshot Recordset no longer updatable) is solved ?If solved means then it contains in which update ? I am using Visual Studio Ultimate 2012 11.0.50929.0
View ArticleAccess Denined calling LsaGetLogonSessionData
HiI've developed a native IIS module which performs user impersonation using the LsaLogonUser. When the application pool identity is LocalSystem, calls to LsaGetLogonSessionData succeed and I can...
View Article[MFC]How to change the title color of the Ribbon
I am working on a MFC dialog environment.How to change the title color of the CMFCRibbonBar?Pleasehelpme.
View ArticleCppUnitTestFramework: Exception in TEST_METHOD_CLEANUP hides exception in...
In my tests, I use TEST_METHOD_CLEANUP to verify mocked calls. If an expectation is not met, an exception is thrown and I get information about that in the Test Explorer.However, if a TEST_METHOD...
View ArticleCppUnitTestFramework: Show message from Standard C++ exception in Test Explorer
If a std::exception is thrown from my code, Test Explorer will just show "Message: Unhandled C++ Exception". It does show the proper stack trace though.Is it possible to have Test Explorer show the...
View Articleerror MSB6006 : "cmd.exe" exited with code 3
HiiIam migrating my application from vc++ 0.6 to vc++ 2013 , one of the error iam facing is :error MSB6006 : "cmd.exe" exited with code 3Can anyone guide me through thisThanks Ankush
View ArticleProgram with multiple copies of same CRT version crashes
I am using Visual studio 2008 on Windows 7. The project contains one file (Program.cpp). I need to enforce the usage of "Microsoft.VC90.CRT version:9.0.30729.4148" in the program execution by all the...
View ArticleDiff between Object Code and Binaries
Newbie here: I read and hear the terms object code (.o) and binaries. Are they referring to the same files? Thanks.
View ArticleHow do I write 'DoEvents' in C++?
My program is written in C++/CLR (but not /pure). The program is fairly involved. At the end, I call a function calledReleaseMemory() which deletes the various arrays that were initialized withnew. It...
View Articlelibmysql.lib missing and Visual C++ 2008 Express
Hi Mate,I spent a lot of time to search for solution for the following problem.I just install VC++ 2008, then try to connect to MySQL Server 5.6. I can build the application successfully. But when I...
View ArticleUpgrading projects using VBA SDK from VS2012 to VS2013
I am upgrading my VS2012 VC++ projects to VS2013. I have linker issues when I am building my project. I get this output from VS2013 :error LNK2020: unresolved token (0A003F67) IID_IApcDualSite error...
View ArticleWrite on Cells with Excel 2010 on Windows 7 (64bits)
Hello,I am trying to write on excel 2010 cells.Here is my code:// excel automation console app.cpp : main project file. #include "stdafx.h" #include "stdafx.h" #import "C:\Program Files (x86)\Common...
View Article