How to create a global object of a ref class type?
Hi,In Visual C++ 2013, I am trying to create a global object of a ref class because I need to share the values between various .cpp files.But I am having an error: "a variable with static storage...
View ArticleC++ Resource
Hello, I want Add File To my project 'Resource 'And when My DLL Load,Copy The File From Resource To DLL Folder, or to PC.
View ArticleWhere can I download the header files "Everything.h" and "Environment.h"?
I try googling it but there was no result. Is there a special package I have to download?
View ArticleCopy elision during copy initialization not always occuring when using STL...
Is their any reason why the below code does not perform copy elision during copy initialization when the std::string is passed by value, but performs it if passed by const reference.The below code was...
View ArticleChanging the text in a CONTROL control
Hi,I am using VS 2013, an MFC app.CONTROL "Point ID",IDC_EPTS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,131,292,63,10I want to change the text when the dialog is created. I want to replace "Point ID" with...
View ArticleConvert CPP Code in .exe in MS Visual Studio 2010 by VC++ Project
Hi,I have one source code of .CPP program and i want to generate .exe file of this project, for that i create one new EMPTY PROJECT(VC++) in Microsoft Visual Studio 2010 and add all the .cpp and .h...
View ArticleCfileDialog arguments in VC 10
CfileDialog arguments in VC++ 10.Please explain and give some concrete examples.Thanks.
View ArticleGDI+ Flat API and Windows XP SP3
Hello,I use GDI+ Flat API but I encounter a very strange problem.If I draw image with attributes through: GdipCreateImageAttributes + GdipSetImageAttributesColorMatrix + GdipDrawImageRectRectItoo...
View ArticleMFC text drawing APIs: kerning and ligatures
Programming with VS2010, and drawing text with the UTF-16 versions DrawTextW, TextOutW, ExtTextOutW of the old APIs (and their MFC wrappers in the CDC class):If one selects an Open Type font then...
View ArticleA bug in MSVC 2013
Hi there.I was trying out 2013 because of these new nice C++ features from new standart and that's what I found..I experienced a nasty deadlock and I wasn't able to find a reason for quite some...
View ArticleRestricting movement of modal dialog within its parent boundaries
Hello All,I have created a new MFC application. The AboutDlg is modal dialog. I want to restrict the movement of AboutDlg to its parent region/boundary only. If the user drags/moves the window outside...
View Articleunwanted busy cursor when multi-threading
we would like to do time-consuming computing behind-scene with multi-threading(in my case, 4 threads are kicked off simultaneously, each thread is assigned to read one sheet in a large excel file), as...
View ArticleCan IWbemServices ExecMethodAsync SetStatus return __ExtendedStatus instance...
Hi,I want to return an instance of the __ExtendedStatus call to the client code when they invoke a wmi provider implementing the IWbemServices interface (method ExecMethodAsync). I have tried many...
View Articlehow to write a text or images on icon?
Hi Guys,I am using Visual studio 2008 VC++.how to write a text or image on icon? example tortoise svn is showing some image on folder and files and skype is writing some...
View ArticleCompiling code with VC++ 2013 on Windows Server
To my great dismay, MSFT no longer includes the compiler toolchain with the Windows SDK. My source code is currently held (along with all my other documents) on a SMB share hosted on Windows Server. I...
View ArticleC++ console application running as a service application
Hi,I have a C++ console application that creates an OPC Client which connect to an OPC server, read and write data. I'm using a Toolkits that contains library and ressources that I can call from my...
View ArticleUnable to retrieve system info using WMI in Windows 7
Using the example code provided here:http://msdn.microsoft.com/en-us/library/aa390423.aspxI have been able to retrieve hardware information using WMI on many versions of Windows (including Windows 7)....
View Articlerun time error 7
Hi,I am working on MFC application that uses Datagrid. I can build and launch the application without any problems.while I am trying to edit the dialog box for datagrid, I am getting the out of memory...
View ArticleHow to shutdown selected program in MFC project with ? (Visual C++)
Hi,I have been able to shutdown program which I selected in a textfield but I haven't found anything valuable about it on forums yet,I'm asking if someone knows a much easier way.Any methods are...
View Article