Click here to Skip to main content
15,887,985 members
Everything / Programming Languages / Visual C++ 10.0

Visual C++ 10.0

VC10.0

Great Reads

by Petrov Vladimir
Weiler-Atherton algorithm in MFC codes demo implementation
by Lars [Large] Werner
Windows has built inn support for a lot of keyboard languages, this class makes it possible to extract that info in an easy manner and present it to screen.
by Eugene Sadovoi
Integrating third party tools and libraries into Visual Studio (MSBuild) configuration environment.
by Petrov Vladimir
Weiler-Atherton algorithm in 3D codes demo implementation

Latest Articles

by libbyliugang
A splitter control for dialog can auto change the linked window's position
by gintack
C++ header file to plot data in the form of x, y, z arrays and list as potential lines and graphs
by tonywilk
Not 'Just Another Parser', this reads elements from JSON simply and without memory overhead in C
by Petrov Vladimir
Weiler-Atherton algorithm in 3D codes demo implementation

All Articles

Sort by Updated

Visual C++ 10.0 

22 Mar 2021 by Member 1205290
I am not a full time programmer, but I've been using MFC in multiple Visual Studio versions for some years while I've been writing the code to make my own tools that I needed to use mostly for my work. Every time it took little effort, but it...
22 Mar 2021 by Richard MacCutchan
It is easy enough to get a list of file names from the system using FindFirstFileA function (fileapi.h) - Win32 apps | Microsoft Docs[^] and its associated function. You can then build your tree nodes however you like. When the user clicks a file...
18 Oct 2020 by Nick Katditsik
I tried with both languages and failed. I get a security error. I'm sure I have to add sometinh because of the WSS but i'm not sure whati is that... What I have tried: ConsoleApplication1.SrvRef.ServiceClient clientProxy = new...
29 Sep 2018 by libbyliugang
A splitter control for dialog can auto change the linked window's position
9 Apr 2018 by gintack
C++ header file to plot data in the form of x, y, z arrays and list as potential lines and graphs
11 Mar 2018 by tonywilk
Not 'Just Another Parser', this reads elements from JSON simply and without memory overhead in C
11 Mar 2018 by Petrov Vladimir
Weiler-Atherton algorithm in 3D codes demo implementation
25 Feb 2018 by Petrov Vladimir
Weiler-Atherton algorithm in MFC codes demo implementation
23 Jan 2018 by Cem KARACA
An article on how to combine Slider Controls and Progress bar into one class using custom draw
16 Jun 2017 by Kyudos
I'm having a problem with my dongle heartbeat. We have been using a timer to send a heartbeat to our dongle to keep the license alive. However, if one of our processor-intensive subprocesses takes longer than the dongle license timeout, the application needs to be restarted.The subprocess in...
4 May 2017 by Hưng Nguyễn
Code error, Please help me!!! using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Emgu.CV; using Emgu.CV.CvEnum; using Emgu.CV.Structure; using Emgu.CV.UI; ...
4 May 2017 by KarstenK
it is a runtime issue, depending when it happens. A possible reason maybe that the "Emgu"-runtime isnt present or working in the app. Like not registered or dlls not in the app-directory or some wrong version like in that question The type initializer for '' threw an exception. Try to inspect...
3 Feb 2017 by Satish Jagtap
This article is written in VC++ as utility to manage startup applications of Windows.
1 Nov 2016 by Philippe Mori
The first problem with your code is that identifier that begin are reserved for the system. In your case, you use the well known macro _T as a parameter for your template.Unicode Programming Summary[^]The next problem with your code is inconsistent use of int and size_t for the size....
30 Oct 2016 by Shao Voon Wong
Prototype SIMD vectorized code effortlessly.
26 Oct 2016 by Shao Voon Wong
C++: Prefer Curiously Recurring Template Pattern (CRTP) to Template Pattern
14 Aug 2016 by pal4yth
i use vs2010 create a win32 application , add a dialog resource idd_dialog1 . run the exe ,click the ok button ,then show a message box ,but i can not close messagebox ,it has no reponse to my clicks.here is my code: #include "stdafx.h"#include "testdlg.h" #define MAX_LOADSTRING...
14 Aug 2016 by Richard MacCutchan
Your sample is creating a modeless dialog which requires different handling from a modal type. See Modeless Dialog Boxes[^] for details.
14 Aug 2016 by Tacitonitus
Well, on the surface, there doesn't seem to be a whole lot wrong with your code. However:1) Read (or re-read) GetMessage function (Windows) - specifically where it says, "avoid code like this" (hint: you have code "like this").2) Kill off the WM_PAINT case - it doesn't do anything.3) Add...
12 Apr 2016 by Shao Voon Wong
Draw text outline using DirectWrite
12 Apr 2016 by Shao Voon Wong
Benchmark of hash and non-hash container
12 Apr 2016 by Shao Voon Wong
Linq-To-XML Node Creation for Native C++
12 Apr 2016 by Shao Voon Wong
Finding lexicographical permutations on GPU
16 Jan 2016 by Mathew_wwx
This tip will introduce a library written in C++ that wraps up a 2d polygon triangulation algorithm with time complexity of O(N*logN), the algorithm works on both self-intersected and non self-intersected polygons.
2 Dec 2015 by CPallini
It really depends on the input file format.The file could have CSV format, XML or whatever.CSV parsing is usually simple, you can build yourself a parser. For XML format, you may find many libraries available. For 'whatever', well, it could be even impossible, if the file format doesn't...
1 Dec 2015 by Member 8011256
Hi All,please help how to read a text data from textfile in vc++ console application.ThanksKruthika
30 Sep 2015 by Timo Kunze
Use undocumented parts of the Windows Vista list view API to enhance your application.
16 Jul 2015 by Chris La
How to create a server-client network quickly using template server-client framework, EpServerEngine (C++ and Windows Winsock).
1 Jul 2015 by Chris La
This article explains 10 rules (steps) for replacing the recursive functions using stack and while-loop to avoid the stack-overflow.
1 Jul 2015 by Chris La
How to create a server-client network quickly using IOCP TCP template server-client framework, EpServerEngine.cs (C#).
30 Mar 2015 by Eugene Sadovoi
Integrating third party tools and libraries into Visual Studio (MSBuild) configuration environment.
25 Mar 2015 by Eugene Sadovoi
Integrating third party tools and libraries into Visual Studio (MSBuild) configuration environment.
17 Mar 2015 by Tsuda Kageyu
Provides the basic part of Microsoft Detours functionality for both x64/x86 environments.
16 Mar 2015 by sunhui
In this paper, we will discuss some advanced skills for ATL COM development.
3 Mar 2015 by omjee
use function pointer to call Wow64DisableWow64FsRedirection.
2 Mar 2015 by Member 8605996
I have CListCtrl in my program that I running on my computer with windows 7. When I load the program on windows 8.1 the column width are not set the same. I ran it in various compatibility modes in window 8 but that did not help. Everything else is working in the program.
13 Jan 2015 by Padmanabh Kulkarni
You have to select SDI or MDI application for database handling.Database handling is not supported by Dialog box application.Why?=> Includes database header files, link libraries, a record view, and a recordset. (Available only for applications with the Document/view architecture support...
6 Jan 2015 by Albert Holguin
If the child dialog only needs the values once while being constructed, then you can pass arguments like Richard mentioned above, or add some of public interface for passing variables (add some public get/set methods, if you need to pass a lot of variables, enclose them in a structure). If you...
6 Jan 2015 by Member 8605996
I have a modeless dialog that I am calling in my program. Would like to initialize the controls on the child dialog from the parent. The child form opens and closes properly. What I am would like to do is to initialize the Edit controls with strings from the parent. How do I make the parent...
19 Sep 2014 by Konstantin Tchoumak
Reading hardware information in Stored Procedure
13 Aug 2014 by Stefan_Lang
How to avoid overflow and still retain precision on large integer calculations
5 Aug 2014 by Babu_Abdulsalam
A Simple Profiler for C++ apps on x64 platform
18 Jun 2014 by Tsuda Kageyu
Implement a simple-look substitution of BOOST_SCOPE_EXIT using some of the new features of C++0x
2 Jun 2014 by Chris La
This is an alternative project of "OraLib - a lightweight C++ wrapper over Oracle's OCI library"
16 May 2014 by Andrew Truckle
HiI don't have an answer but did you resolve this ?I am using vs2013 and now use cmfcstatusbar too. I overrode the onmdiclienterasebackground to draw my own background and that has caused the same behaviour as you. If I revert to normal program behaviours the status bar shows immediately..
11 Apr 2014 by QuestMore
I know its too late for a reply but am working on something similar and when saw the same issue ; realised why not update this post for someone like me :)Please update the import statement to include the mso.dll's path for the version you are interested in as below for 2010 and 2013...
7 Apr 2014 by SOHAM_GANDHI
It is simple video capture application using Windows form with VC++. This project demonstrate, Configuration VC++ for Opencv as well as create windows form application.
23 Mar 2014 by DigitalInBlue
Guidance on C++/C++!1 Parameter Passing
6 Mar 2014 by Arkadiusz@inquiry
CRichEditCtrl does not take the return
6 Feb 2014 by Adamanteus
Intercepting SEH exceptions in C++ program
31 Jan 2014 by David O'Neil
A quick comparison of the C++11 lambda/delegate approach vs. Sergey Ryazanov's 'Impossibly Fast Delegates.'
24 Jan 2014 by Member 20
HiI am using RPC Client and Server interface. I am able to build in 32 bit but when I change it to 64 bit, I am getting error "Invalid build platform for this stub" and it is pointing to below lines:#if !defined(__RPC_WIN32__)#error Invalid build platform for this stub.#endifHow to...
24 Jan 2014 by OriginalGriff
See here: MSDN: Targeting Stubs for Specific 32-bit or 64-bit Platforms[^]
14 Jan 2014 by Asif Bahrainwala
Atomic set and test in critical sections
7 Jan 2014 by Petr Ivankov
Application of abstract approach to real-time.
28 Dec 2013 by nv3
You are not assigning a value to the location where lpvBuffer points, but to the pointer itself.And why did you use a pointer to void if you want to pass a DWORD as in/out parameter? Use a pointer to DWORD instead. So you code should look like this:void Test (DWORD* pArg){ DWORD code...
28 Dec 2013 by Satheesh1546
Hi Experts,#include "stdafx.h"#include void Test(LPVOID lpvBuffer);int _tmain(int argc, _TCHAR* argv[]){ DWORD dwCode1 = 0; Test(&dwCode1); return 0;}void Test(LPVOID lpvBuffer){ DWORD code = 200; lpvBuffer = &code;}In the method Test(), i am...
26 Dec 2013 by Domus1919
Hi,I'm getting close now to OpenGL.I wish I could draw a series of cubes in a single window, starting from an array of vertices.Currently I have a list of objects that each contain an array of 8 vertices. So, I would draw them all as passing the 8 vertices to the drawing...
15 Nov 2013 by Orjan Westin
Reading an input of any type, or simply enter, from the command line
1 Nov 2013 by Gabi Barcan
Call methods of an existing class in MFC asynchronously, while still preserving the thread affinity required by MFC and COM.
28 Sep 2013 by Subrat 4708266
Is it a good idea to covert project written in C++ using builder XE(Embarcadero) to VC++?Please let me know the advantage and disadvantage of it and also if it'd be a good idea in scene of time taking for conversion.FYI: Proj is converted from BC6 to Embarcadero XE. My poj size is...
14 Sep 2013 by The Ultimate Toolbox, metalogicsw.com
The Ultimate Grid is now Open Source
4 Sep 2013 by KillBot Project
A make-over of one of the most popular family games, Monopoly.
22 Aug 2013 by Chris La
This article explains Objective-C like C++ memory management class, SmartObject.
22 Aug 2013 by Chris La
This article explains how to create your own simple Lock Framework for C++ synchronization.
6 Aug 2013 by pramithas dhakal
this might be useful for you:www-compsci.swan.ac.uk/~csmark/PDFS/dist.pdf[^]
21 Jun 2013 by ThatsAlok
Showcase for lambda function in C++
21 Jun 2013 by ThatsAlok
How and Where to use it!
17 Jun 2013 by geoyar
An MFC linear chart control with enhanced appearance.
18 May 2013 by Santhosh G_
I can’t suggest a method to identify the drawn object from DC and modify the same. But you can implement the above requirements (change shape of drawn objects) by following design.Prepare separate classes for each graphic item, like Rectangle, Line, Triangle etc. These classes should be...
16 May 2013 by sas_in_codeproject
HiI am developing an application, a drawing tool, in which I have struck half the way.This tool is one drawing tool basically. I have used GDI for drawing to Device context. I have various shapes drawing requirements like lines, circles, polygons etc.The drawing part I have done on...
25 Apr 2013 by In the Face of God
Unmanaged code application accessing data in a database via Web Services without a database provider.
21 Apr 2013 by bshokati
How to create a client-server network for multiplayer game programming using C++ and Windows Winsock
19 Apr 2013 by Chandra Shekhar Joshi
If you are migrating your COM application to Visual Studio 2012 then this could be helpful for you.
13 Apr 2013 by Ian A Davidson
I doubt we'd be able to help you with this online, as you'd probably need to debug it. At the very least some more information would be needed.However, having said that:1) Are you making sure that you close (dispose) any object (e.g. StreamWriter) that you use to access the file?2)...
13 Apr 2013 by Satheesh1546
Hi Experts,I have a problem while using MSXML2::IXMLDOMDocumentPtr save() function. I have an application which listens to a port. The application is creating different xmls while recieving requests and saves those created xml's in a folder in the "AppData". There are about 30 request and in...
6 Apr 2013 by jsolutions_uk
How to have a single declaration of a static member for derived classes, using a simple template
29 Mar 2013 by Kenneth Haugland
Solves 1st, 2nd, 3rd and 4th degree polynominal by explicid fomulas for real coefficients and any degree by the numerical Jenkins-Traub algorithm with real and complex coefficients.
23 Mar 2013 by 8MX
Quick and easy way to use the Intel C++ compiler with C++/CLI.
17 Mar 2013 by blue236146
I declare a CPropertySheet object then use AddPage(*CPropertyPage) ,this pointer is attatch a Dialog,This dialog have a CPropertyGridCtrl. Finally, Use CPropertySheet::DoModal(L"123") show the sheet, but ,AddPage is failed.Delete the CPropertyGridCtrl and retry, It be successfully.
12 Mar 2013 by Mithun Nair
Thanks Richard for the suggestion, I have done it. Here I am posting mine worked code.I took my printers DC and drawn image on that DC.void CPrint_JpegDlg::PrintJpegImage() { TCHAR szPrinter[_MAX_PATH]; DWORD cntChars = _MAX_PATH; GetDefaultPrinter(szPrinter,...
8 Mar 2013 by joejames111
This is a VB.NET and C# version of "Minimal Key Logger Using RAWINPUT".
8 Mar 2013 by Richard MacCutchan
This is just the same as displaying it in a Window, except you use a different device context. There are plenty of articles to be found, via Google, on printing from C++ and C++/CLI.
8 Mar 2013 by Mithun Nair
Hi,I want to print a jpeg image from my VC++ program( through code). Any API's available fordirect image printing. Is it possible? Please help me to find a way.Thanks,Mithun
1 Mar 2013 by Orcun Iyigun
Please visit the links below:Clickonce Deployment[^]How to create an installer[^]How to create setup file for VS[^]Good luck,OI
1 Mar 2013 by Gokulnath007
I have this project, which uses MYSQL as database and using ODBC 3.51 driver. I would like to setup and deploy this application in the manner that only one exe should be there, which installs all the three, MYSQL database, ODBC 3.51 driver and the application with necessary files.
1 Mar 2013 by CPallini
You need a __int64 variable to store such a large value. Then you may use the _tcstoi64[^] function.
1 Mar 2013 by samadhan_kshirsagar
visit this linkhttp://stackoverflow.com/questions/12602526/how-can-i-convert-an-int-to-a-cstring[^]
1 Mar 2013 by Gokulnath007
How to convert 12 digit number in CString to integer?
28 Feb 2013 by phil.o
I don't recommend to do that (trying to put several informations in your primary field).Why don't you use a simple integer primary key, and store your pincode/rank in another column ?The goal of a primary key is to identify a unique record without ambiguity ; trying to put more...
28 Feb 2013 by Gokulnath007
How to add a 16 digit auto incremental field in sql? I would like to create an application in vc 2010 which has 3 fields, name, date of birth and pincode. If user gives all the information including the pin code, it should be inserted in the database. But the unique id field will be updated...
19 Feb 2013 by Debdatta Basu
Introduction to C#/C++ interoperability, and a performance evaluation.
15 Feb 2013 by Christoph Husse
The clean way for getting C++ enumerations with Reflection support.
12 Feb 2013 by The Ultimate Toolbox
Updates and User Contributions for the Ultimate Toolbox Libraries
27 Jan 2013 by Jaskiran Singh
The topic discusses how to safely access the pointers, which are considered as bomb shells if used unsafely.
16 Jan 2013 by Ajay Vijayvargiya
Covering the nitty-gritties of C++ templates.
1 Jan 2013 by Richard MacCutchan
Start with this article[^].
1 Jan 2013 by Gokulnath007
How to get all the outlook appointments using VC++/ATL?