Attemped to read or write protected memory. This is often an indication that...
Hi All,My Project Architecture is like linking the VC++ component into Donet component(using framework 2.0).When user is clicking button which is designed in Dotnet, it will launch the window which is...
View ArticleSHCreateMemStream or CreateStreamOnHGlobal
Hi,I'm currently using CreateStreamOnHGlobal to create a memory stream, but I've found that SHCreateMemStream is more efficient. The MSDN documentation on CreateStreamOnHGlobal suggests using...
View ArticleC++ CLI which template should I choose ?
Hi. I'm about to learn how to program with C++. And here is the book I'm following. And I want to know which template should I choose to do the exercises in this book.. There are number of templates...
View Articlemfc desktop paning only works with 2 fingers - not 1
Hi,I am adding gesture controls to my MFC app. I am using windows 8.1 on a tablet, VS 2012. The pan only works when I use 2 fingers. It does not want to know when I use 1. Zoom works, 2 finger tap...
View ArticleUse and effect of the #import no_implementation and no_function_mapping...
Can anyone explain what the the no_implementation and no_function_mapping attributes have on the #import directive??Many ThanksChris
View Articleieshims dll error opening file the system cannot find the file specified(2)...
I am using Windows 7 sp1 enterprise version OS.In "Program Files\Internet Explorer, I am having the IEShims.dll file.But while investigating an exe file using the dependency walker, I have found this...
View ArticleDDX_Radio is crashing
Hi,I have written a dialog based MFC application where i have 3 radio button "Inches", "Centimeters" and "Pixels".I grouped the three radio button in a group name "Units". The defined IDs for those...
View ArticleWhich visual studio template should I choose if I want to program using...
Well. title is the question.And I did hunt through the MSDN library and all i could find is this. But there's no even a single word about what those project templates use for.
View Articlestring to BSTR retaining embeded
Hi I want to convert basic string to a BSTR. I tried below function.BSTR Convert(const std::string& s) {return CComBSTR(s.c_str()).Detach(); }But the problem is string is a binary data and has...
View Articleieshims dll error opening file the system cannot find the file specified(2)...
I am using Windows 7 sp1 enterprise version OS.In "Program Files\Internet Explorer I am having the IEShims.dll file.But while investigating an .exe file through the dependency walker I have found this...
View ArticleCalling native C++ from c#
Hi,I use the following code to export a native C++ function.#include <iostream> using namespace std; __declspec(dllexport) void __stdcall NatFun ( char ); class NatFunClass { public:...
View ArticleIXMLHttpRequestPtr->Send() throws exception
Hi, When I try to send Http request through IXMLHttpRequestPtr, send() fails with error code 0x800c005 but when I try with IServerXMLHttpRequestPtr, send() works fine.Can anyone tell that what could...
View ArticlerichTextBox C++
I am trying to send a Hex message to a serial port device and display the response that is a word longer (example: 0x52, 0x0A, 0x01, 0x00, 0x01) in a richTextBox in Hex format, how to do that? I have...
View ArticleHello World Tutorial
Hello,I am using XP 32-bit, and I've downloaded VC++ 10.0. I am following a very simple hello world tutorial to familiarize myself with VC++, and it won't compile.I created a new Windows 32 Console...
View ArticleAnimation Tutorial Code: Problem with Mainframe.cpp
Hi,I am trying to execute a tutorial code which I got from:However, i cant perform step 8 which says:[QUOTE]In Solution Explorer, double-click MainFrm.cpp to open it for modification. In the...
View ArticleCRT initialization during explicit linking of dll using LoadLibrary
I have an intermittent issue, when our dll is loaded (explicit) by the customer Application , it sometime throws the “Failed to initialize the CRT error R060” As a fix, I am have put the following...
View Articleaccess vc++ progressbar from called external function
I have a VC++ 2010 program that is basically a dialog box. It contains a progressbar and textboxes. Inside the Form they are all marked as private.The form calls an Xmodem package to do a transfer to...
View ArticleGPIB Programming with Visual C++
Hello,I recently just built a simple hello world to make sure I was building everything properly.The reason I am using VC++ is to program a GPIB. I found this code online:...
View ArticleWhy using afxDump now in VS2013 generates extra TRACE output
Hi,since using VS2013 instead of VS2010 old code using the afxDump object creates "extra" output.Something like:d:\...\bcgcbpro\bcgcbpro.cpp(39) : atlTraceGeneral - BCGCBPRO.DLL Initializing!The reason...
View ArticleHow disable auto class generating in C++ ?
Hi.. I want to know if there is a anyway to disable the auto class generating in visual c++.Every time I create a class, VS automatically create some sub classes as the picture below. I want to stop...
View Article