Is it the END of MFC/COM/ATL
Hi, From past quite sometime i have been working on MFC/Win32 API. Also i have started working on COM/ATL. I have been seeing the changes, the invention of .NET and now as been .NET 3.0 it looks...
View Articlehow to eliminate extra focus rectangles using CDRF_SKIPPOSTPAINT in...
I want to eliminate these: My customdraw code is this: void MyCTreeCtrl::OnNMCustomdraw(NMHDR *pNMHDR, LRESULT *pResult) { LPNMCUSTOMDRAW pNMCD = reinterpret_cast<LPNMCUSTOMDRAW>(pNMHDR);...
View ArticleHow to Add my own Event in a C++ MFC dialog based app?
Hello, I made a class that is used for client/server in TCP/UDP mode, it works well but sockets blocks my app when it wait for some connection, i use the poll( Vista/7 ) and select( XP ) functions to...
View ArticleWhich VS 2013 has Profile Guided Optimization (PGO) ?
Hi,Please let me know which version of Visual Studio 2013 has support for PGO.Thank you in advance!Best Regards,Zsolt Bakcsi
View Articleaccess violation during garbage collection
I have a set of managed dll's that work fine as a managed standalone program. But, I'm trying to use them from an un-managed application. When I do, once I've returned from calling my managed...
View ArticleSome compiler issue...
Hi there!I'm facing a really strange bug and I hope that somebody can help me with this.I'm trying to compile a complexe project made by my company but when I try to, I've got a strange issue :There...
View Articleerror MIDL2337:unsatisfied forward declaration : ICustomImport[CoClass...
HiI am migrating my application from vc++ 0.6 to vc++ 2013,one of the error iam facing is:error MIDL2337:unsatisfied forward declaration : ICustomImport[CoClass 'CustomImportAXA']The part of the code...
View ArticleTRACKMOUSEEVENT not generating WM_MouseLeave for a native control hosted in WPF
So we have a somewhat convoluted architecture which requires us to host a custom native C++ 64-bit control on a WPF form.We place the control in it's own DLL - compile it as Native 64-bit and export...
View Articleerror C1083: Cannot open type library file: '..\..\system32\msxml.dll': No...
HiiIam migrating my application from vc++0.6 to vc++2013, this is one of the error iam facing..I am sending part of my code and is highlighting the error...
View Articleerror LNK2019:Unresolved external symbol when using a shared dll in other cpp...
Hi,I have build a shared dll and the purpose of it to load a resource dll & get the resource names depending upon resource id given.& this shared dll is called in other cpp project(dll).My...
View ArticleWhat is the point of User Intrerface threads if they block each other?
I have an MFC program with MDI type interface. At one point I need to do some lengthy processing in response to clicking a button. While this processing is going on I do not mind the window to be...
View ArticleReverse Debugging
Hello Everybody,I have Visual Studio 2012 and I would like to ask whether I can do reverse debugging. I mean that while running the program in debug mode, can I step backwards (like undo)? How can I...
View ArticleHow to use Visual C++ DLL in C#
Hello,I have tried converting a Visual C++ project( Consisting of around 50 files) to DLL byusing the following step.Properties->General ->Configuration type(Dynamic Library (.dll)).C/C++ ->...
View ArticleHow to get all the files in the Temporary Internet Files Folder?
HI All Thank you for reading.I am trying to do the sample code from this link: http://msdn.microsoft.com/en-us/library/t49t9ds1.aspx// enum_files.cpp // compile with: /clr using namespace System; using...
View ArticleMFCCtabCntrl - Swapping Tabs
I Need help urgently.I have an mfc MDI application. My view have tabs at the bottom and i have enabled swapping of tabs.What i am trying to do is to catch the event (if any) at the point when the tab...
View ArticleVisual Studio 2012: Slow deallocation when new called within openmp loop
#include <iostream> #include <vector> #include <time.h> typedef std::vector<double> DoubleVector; int main() { int nhist(70000); int nbins(2000);...
View ArticleDoVerb brings up "Create Package" dialogue instead of open a file
I have a MFC application that Users can open a file when they double click the file.(Works perfect on XP),but not working on Windows 7. It bring up "Create Package" dialogue instead of open a file on...
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 Articledecorated name length exceeded for xmemory
Hi,all, I encountered multiple ' decorated name length exceeded, name was truncated' warnings for usingstd::list<std::list<ATL::CAdapt<MSXML2::IXMLDOMNodePtr>>>1>C:\Program Files...
View Article