How enable and disable window keys in VC++?
Hi,I need a sample code to disable and enable the following special keys in VC++ application Win Keyalt key,ctrl keyEsc keysThanksNaveen
View ArticleHow to integrate c# and c++
I have my main program in c++ and log program in c#I want to integrate c# in my c++. Is it possible to do...?? if yes can any anyone help me out with it.
View ArticleVC++ 2012 bug in dbgheap.c heap validation
Hi! I've recently come upon a design bug in VC++2012 runtime library.The situation: Overrunning a CRT debug heap block by more than 4 bytes.The problem: When more than 4 bytes are overrun, an ambiguous...
View ArticleCan't Open Resource File
In VS2010 I added a new project to my solution but when I try to open the resource file I get the errorc:\program files\Microsoft\sdks\windows\v6.0\bin\rcdll.dll;c:\program files (x86)\Microsoft visual...
View ArticleCross process GDI Drawing using MFC
I have a huge MFC MDI application that draws on its scrollable view area using device context. This application uses a 3rd party library to do some additional drawing in the same view area. It works...
View ArticleGetFileAttributes on locked files
GetFileAttributes does not work on files opened exclusively, e.g. C:\pagefile.sys ; neither does GetFileAttributesEx. The only way I could get attributes of such files is by using FindFirstFile, in...
View ArticleUSB Handle
Hi,I am developing a C++ application to control an usb device (audio).I have the .sys and .dll files, what do i have to do with these to be able to see and use their functions in my C++ program? I know...
View Articlecannot acces a new DialogBox
Hi there,I'm a beginner and am woking on an MFC application, starting from one Dialog I want to create another dialog in whitch I want to display a data in an edit box. But I can never do it because...
View Articleproblems with vs2010
i have developed a complex project since september last year last week suddenly and without altering any setting [ that i can tell of ] it has become impossible to add new methods to the exsting...
View ArticleWSASend remote stack full
Hi,I would like to know if the function WSASend will return me an error when the remote TCP buffer is full and can no loger cumulate data till the remote server read data from it. Ex : The remote...
View ArticleBuilding solutions originally developed using C++Builder
My team is inheriting a project from another company that was developed using C++Builder and its VCL graphics framework. We aren't fans of C++Builder and would like to migrate to using vc++ and Qt as...
View ArticleVisual Studio 2005 MFC C++ how do to Transparency Color on existing images?
We have a large Visual Studio 2005 MFC C++ Application Program with images on the Main Form Dialog. We are using 12 by 12 pixel images and 32 by 32 pixel images to indicate certain conditions at the...
View ArticleVS 2012 Ultimate Update 1 VC++ code vizualization
I have a desktop native VC++ 11 project under VS 2012 Ultimate Update 1. OS is Windows 5 Pro.I tryed to get a code map and a dependency graph to visualize the code. I got very trivial results, basicaly...
View ArticleUnhandled exception at 0x00B67361
I am trying to read .dat files into 2D array, I tried successfully read same files into 1D arrays such that each line for each array. However, with the code below for 2D array a message box pop up...
View ArticleMemory Leak Detector - _CrtDumpMemoryLeaks() not showing the line number in file
Hi,I am trying to detect memory leaks in my application and came across the MSDN link for CrtDumpMemoryLeaks(). I followed all the steps mentioned in the link...
View Articlesymbol AfxGetMainWnd not in used
AfxGetMainWnd() it gives symbol AfxGetMainWnd not in used
View ArticleMaking a dialog based application only have 3 instances
i have a MFC dialog based application and it should have only three instances MAX, for this i created a semaphore object with initial count and maxcount set to 3, in the InitDialog functionh=...
View ArticleRetrieve stack arguments without stackwalk
Suppose main() --> f1(int,int,char) --> f2(int,int,char)-->f3(int,int,char) When in f3()...i get Rsp and Rbp using GetThreadContext...based on this how to get input arguments of all stack...
View ArticleAccessing AD user information via C++
Hi,I am a newbie and I would like to access certain attributes of a user "test" in active directory using C++. I found that this is possible using Visual C++, but I would like to do it with C++. And...
View Articlego to definition fails in c++
This is quite frustrating as it happens quite frequently. I have a variable defined and I hesitate over the type definition and I get a nifty tooltip that shows me the type. But I want to go to the...
View Article