UCHAR instead of BSTR in COM Interface Methods
I have a COM Interface method in idl file like [id(4), helpstring("method SomeMethod")] HRESULT SomeMethod([in] int iIndex, [in, out] UCHAR* szCd, [in, out] UCHAR* szACd, [in, out] UCHAR* szKCode,...
View ArticleIn a MFC Dll project only one source file gets compiled in release mode
I created a new Visual C++ project of type MFC dll and added several source files to it. In Debug mode they all get compiled but in release mode only one particular source file gets compiled even...
View ArticleHow to move from control to control using arrow keys
Hi, I have made an application in C Windows Api where I have a kind of grid of radio buttons and small edit controls. I want to be able to move between these controls using arrow keys.I have made the...
View ArticleProgrammatically notify OS when a drive is mounted
HiWhen is notify from C++ the OS when mounting a new device, this is seen in Windows Explorer with its associated drive letter. However, while this approach works in Win7 and 8, older OSs like Windows...
View ArticlePut members of a CString together into an URL and open it?
Hello!I am reading codes from transponder-cards via an RFID-Reader with my CLR-program in Visual C++ Professional. Everything works great and I am able to read the code.But I have to connect that code...
View ArticleHow to Rename 12 identifier in a tlb file, using one "rename" #import attribute
Hi All,On migrating a VC++ 6.0 developed code to Visual studio 2008, I got the below warnings pointing one line of code.Warning Message:1>c:\c++\gcrcomp\ZipFile1.h(8) : warning C4278:...
View ArticleUnhandled exception at 0x01053B66 (mfc110d.dll) in Machine.exe: 0xC0000005:...
I've been beating my head on this for a day now and still can't figure out what's causing the error. Mind you I'm still a beginer and don't have a whole lot of knowledge. I tried to put breakpoints in...
View ArticleIPicture to CBitmap
I get this article to load few image types (bmp, jpg, gif, etc.). But these files are loaded into IPicture. Can I convert this kind of object to CBitmap ? Is posible ? How ? Any hint will be very...
View Articleconversion from 'long' to 'VARTYPE', possible loss of data
Hi All,On migrating a VC++ 6.0 developed code to Visual studio 2008, I got the below warnings>>warning C4244: '=' : conversion from 'long' to 'VARTYPE', possible loss of dataSTDMETHODIMP...
View Article0x7560c41f most possible exceptions: Microsoft c + + exceptions: memory...
***. exe of 0x7560c41f place the most possible exceptions: 0xe0434352:0 xe0434352or the token is invalid(令牌无效).
View ArticleWhy does 64-bit MASM not accept an entry point address on the END directive?
In 32-bit MASM, the END directive optionally allows us to set the entry point by specifying an address ( http://msdn.microsoft.com/en-us/library/vstudio/wxy1fb5k(v=vs.120).aspx ). But in 64-bit MASM,...
View Articlewarning C4114: same type qualifier used more than once
Hi All,On migrating a VC++ 6.0 developed code to Visual studio 2008, I got this warning in the line below in my code.constintconstCImportContext::PACKETSIZE =4096;I know how to fix for...
View ArticleMFC Wizard Doc/View Architecture and Navigation Pane
I have two questions:Why does the inclusion of the Navigation Pane in the advanced features of the MFC Application Wizard require that Doc/View architecture be specified? The Navigation Pane (and other...
View ArticleSeparate C++ Compiler Download
Hello,we are developing a driver in Visual Studio 2013, that has to be compiled with the newest C++ Compiler (CL.exe). Now we want to have the buildprocess on our separate buildserver, which is...
View ArticleVisual Studio improvements from VS2005 to VS2008
Hi, I have a C project in VS2005 and I want to upgrade it to VS2008.Can someone help me to figure out what all new things/compiler linker options added from VS2005 to VS2008?Is there any documentation...
View Articlepassing unsigned int* to managed C++ app
Hi, I am looking for passing unsigned int* to managed C++ app Ex: Native C++: void func(unsigned int * data){ //Here I have access to managed C++ class and I would like to know how to pass data...
View ArticleMFC read files
Hi, I have a simple .txt file which contains parameters need to be read in MFC. e.g.0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.99every parameter is separated by space, and the file may contain multiple...
View ArticleWhat is the fastest way to find a defect in the C++ Standard Core Language...
It took me a while to find this defect on paragraph §8.5/7 of the C++11 Standard. I finally found it by just googling some of the words contained in the draft N3797 for the alluded paragraph. Before...
View Article0xC0000008: An invalid handle was specified
Hello,I have a question:0xC0000008: ****.exe 中的 0x77daf9d2 处最可能的异常: 0xC0000008: An invalid handle was specified... // This is a ATL Project!!! if(m_hWnd == null) { RECT rcPos = { 0, 0, 0, 0 };...
View Articlecopy to clipboard for message box
Hi, I wonder can I do like copy the content displayed in AfxMessageBox to clipboard, so that I can paste the content to somewhere else. It seems I can not select the message displayed in the message...
View Article