Handling CTreeCtrl Notification in MFC Application
I used Visual Studio 12 and the application wizard to create the default single-document MFC Application. In that wizard generated MFC Application, there is two classes derived from CDockablePane....
View ArticleOutput issue in vc++ for date when i use it with variant
hi i ma wittting program for Win32_NTLogEvent..when i use time generated property in it. it runs but gives me wrong output.. My code is as below hres = pclsObj->Get(L"TimeWritten", 0,...
View ArticleRibbon QAT shortcut keys for splitbutton
Using Visual Studio 2008For a splitbutton on the ribbon (i.e. the main button can execute a command, but also has a dropdown, for example, the Print button, where clicking does a Print, but it also has...
View ArticleTimer in a windowless component (MFC-VS2010)
Hi, I try to insert a timer event in a windiwless component (derived from CCmdTarget) and I don't know how.I tried to change the baseclass from CCmdTarget to CWnd and then I got the opportunity to add...
View Articlezero out vector
Hi, I am working on somebody else's code and came accross this, for (int i = 0; i < shadow_fund_art_input.size(); i++) shadow_fund_art_input[i] = 0.0; }It looks like they are resetting the...
View ArticleHow windows handle copy and paste of file or files
I am curious to know how computers execute "copy" and "paste" of small & large folders. I've read that copy and paste of text between different processes or same process is achieved by saving the...
View ArticleWhat's wrong with this snippet?
#include <iostream> #include <thread> #include <vector> #include <cassert> #include <algorithm> void f(int& i) { std::cout << "Thread " << i << '\n';...
View ArticleImporting a DLL into a static library
So, i have a DLL that i have tested and i am able to use it. (i do not have the source code, only the .lib and the .dll ).I would like to create a wrapper around the functions and make a static library...
View Articlestopping a MFC application
Hi,I'm not an expert in programing so my questions may be strange or stupid, so I need your kindness to bear my questions and my bad english too :-)I have a visual C++ MFC application which countains...
View Articlec++/cli and attempting to reduce memory footprint
Hello, I currently use following (simplified code) for my c++/Cli dll// from other project struct DRILLTHROUGH_INFO { std::vector<std::string> line; }; // this project public value struct...
View ArticleC++11 enum class, C++/CLI and forward enum declarations
So one of the new features in C++11 is "enum class" which is great and there is the ability to forward declare enums, also great.So I ran into a problem after trying to build a C++/CLI wrapper of an...
View ArticleRun out of memory in OpenGL
Hi,I am using windows 8.1 and I have run out of memory using OpenGL. There are about a million 3d vertices. Anyone any ideas?Any help gratefully appreciated.Thanks
View ArticleCompiler Bug?
Can it be that Visual Studio Ultimate 2013 compiles this erroneously?template <typename T> struct B final { }; using b = B <int>; struct D : public b { // b is final! }; D d; Regardspwk
View ArticleCan MSXML2.DOMDocument::load() be used to load an XML document asynchronously...
According to MSXML library documentation MSXML2.DOMDocument::load() allows to load a document without blocking the calling thread. The code below sets the DOM document async property to TRUE and calls...
View ArticleSuppress the generation of object file
Hi,I compiled a cpp file from the command-line using cl.exe. Inoticed that it produced two files: dll and obj. Since everything I need is in the dll, I need tosuppress the generation of the obj file....
View Articleunhandled exception 0xC00000FD: stack overflow
I encountered this after I doubled a constant value, which will control many of array size in my codes.Now several ways have been tried.1. Before I changed this constant's value, it can be compiled and...
View ArticleExpanded CMFCRibbonPanel and HitTest()
How i can determine whether cursor is on panel button when the panel in expanded state? (after pPanel->ShowPopup()) HitTest() does not work in this case.CMFCRibbonCategory *pCategory =...
View ArticleGetModuleHandleA
Hi,I Was Use DWORD _moduleBase = (DWORD)GetModuleHandleA("Tutorial-i386.dll");To Get BaseAddress, i have problem if i want To Search For Module,Like i want get baseaddress of Tutorial-i386.dll So i...
View ArticlePass a struct from c++ to c# CLI
I have a C++ SDK where I'm passing information as a struct to a C# CLI wrapper.The C++ struct is as follows:typedef struct SDK_API tag_PDP_SystemInfo { char siteName[MAX_TITLE_LENGTH + 1]; UINT32...
View ArticleLabel = ....
Hello,i Know I'm Asking much today i hope No one understand that like spamI have problem in This codelabel13->Text = ReadToMemory( 0x2EBEDE, "\x41\x23" ,4);i got error, Why ?
View Article