MFC - Bug in CMFCPopupMenuBar::ImportFromMenu with Non-Permitted Commands and...
Sorry for the long title but it summarises very well the bug I just discovered in MFC after a long debugging session...The issue is as follows and is easily reproducible:1/ Create a default MFC...
View ArticleHow to get coordinates of a pictureBox in Windows Form application (c++)
Hi everyone!! I am working with a C++ project which is related to a gun game. I am confused the coordinates stuffs and I would like to know how to find the coordinates of a picture to do the collision....
View Articlehow should i combine all my vc++ file in one single project
hi i did manyuniversity assignment in vc++..all are place in different folders likeC:\Users\Gbs\Documents\Visual Studio 2010\Projects\Assignment1C:\Users\Gbs\Documents\Visual Studio...
View ArticleProblem With Create Theard
HI All,I'm Creating Trainer For GameAnd This Game is Hiddin in process to i can't Inject my DLL into itSo i change my DLL Type to .asi and run Game And it's Auto Inject it SelfBut i have problem when i...
View ArticleVS 2013 regsvr32 buffer too small error when registering a COM dll
I have a atl/COM base solution I'm trying to convert to compile under VS 2013. Whenever VS tries to register a dll I get this error (in part):Microsoft Visual C++ Runtime LibraryProgram:...
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 ArticleScaling MFC dialogs in an application to render correctly on high DPI devices
Hi, I need to make my MFC dialogs to render correctly on the new high-DPI devices. I know how to get the scaling factors for X and Y directions. As of now, the only way I can see to scale all my...
View ArticleThe code compiles in VS2013 but doesn't in clang and gcc
#include <iostream> #include <thread> class A { public: void operator()() const { std::cout << 'A' << '\n'; } }; int main() { std::thread t(A{}); t.detach(); }As can be seen...
View ArticleCreateThread() - memory leaks
Hi,I've heard that using CreateThread() (unlike _beginthread()) alongside C++/C standard library functions will cause memory leaks. So this means, if I use rand(), write(), etc.... I have to use...
View ArticleExceptionExecuteHandler in excpt.h?
I've been trying to get the Julia programming language (http://www.julialang.org/) to compile using the Visual C++ compiler. In 32 bit I've gotten most things to compile, there are still some run-time...
View ArticleFirst time user...Help!
Literally trying C++ for the first time ever today. Tried creating a "Hello World' console program and went to Build Solution. It failed and gave me this message: Link : fatal error LNK1123:...
View ArticleDebug assertion failed for CDialog::CreateEx
I am doing an MFC application in which I am trying to create a dialog box.Here is my code snippet:// GLobals:CWnd* parent; CRect rect3;virtual BOOL OnInitDialog()...
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 ArticleCannot inherit Post-Build Event using vsprops property sheets.
1. I'm trying to create vsprops property sheets to manage build configuration settings but am having trouble with the inheriting the Post-Build Event. Let's say I have:MyExe.vcproj ->...
View ArticleCompiling C code instead of C++ in Visual Studios
Im trying to make a C console app in Visual Studio Express 2012 on Windows 8. I created a new c++ project I called "ConsoleApllication4". In the project I then renamed "ConsoleApllication4.cpp" to...
View ArticleIEnumWbemClassObject::Next method not working
i am trying to vendor specifc attribute from this WMI class MSStorageDriver_FailurePredictData(HDD SMART information). Here is the used code :IEnumWbemClassObject* pEnumerator = NULL; hres =...
View ArticleMFC ATL DLL register problem in debug mode (Debug Assertion Failed)
I have MFC dll project , I have added ATL Support to MFC dll. after that I am able to build and register dll in release mode properly.But when I am trying to build in debug mode I am able to build it...
View ArticleHow can I type std::complex without ending up with...
Editing some source code and every time this is happening to me. I already switched off everything I can find under Tools-Options-tEXTEDITOR-c++-formatting.And another problem trying to enter this...
View ArticleError C1083: Cannot open include file (from network location)
I am switching to Visual Studio 2013, and trying to compile a library that uses Boost.Boost is installed on a network server with a path similar to \\ netserver\libsSure, I have listed this path in...
View Articlehow to get DMA information with vc++
hi i want to get DMA information like this with vc++? which function/property should i use?
View Article