Click here to Skip to main content
15,887,962 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 

19 Oct 2010 by "Fish" (David B. Trout)
Simple parsing of VS_VERSIONINFO version information strings displayed in an XP-style file-properties "Version" tab
7 Oct 2010 by #realJSOP
Why do you have this in your code NINE TIMES?#include Also, does myheaderfiles.h also have this line:#include "stdafx.h"
19 Nov 2010 by #realJSOP
It depends on how you want to decorate the #include. Go here for details:http://msdn.microsoft.com/en-us/library/36k2cdd4(VS.71).aspx[^]
7 Dec 2010 by #realJSOP
Macros are compile-time features, not runtime features.One way to accomplish this would be to include one or more DLLs in your project that turn one various features, and then base those features' availablity on the presence or absence of the DLLs. Of course, there are many other ways,...
17 Dec 2010 by #realJSOP
That error usually indicates a screwed up pointer somewhere in your code. Sorry I can't be more specific, but it's been a while since I did any unmanaged C++ stuff.
21 Dec 2010 by #realJSOP
I found this with google (you know - that free search engine at www.google.com):http://support.microsoft.com/kb/241849[^]
10 Jan 2011 by #realJSOP
An abstract class cannot be instantiated. You MUST derive a new class from it, and implement all of the pure virtual functions in it, and then use the new class instead.This is basic C++ stuff...
6 Feb 2011 by #realJSOP
You can't draw a graph in a console application.
7 Apr 2011 by #realJSOP
Your operating system support should be restricted to XP, Vista, Windows 7, Server 2003-2008. Everything older than those is irrelevant and so obsolete that they make Warren Buffet look like a spring chicken.Further, unless you have a tangible requirement to create 64-bit software, don't...
23 Mar 2013 by 8MX
Quick and easy way to use the Intel C++ compiler with C++/CLI.
12 Apr 2012 by Abhi Ajmera
Hi All,I am creating an SDI application with multiple toolbars derived from CMFCtoolbar.When I am floating them which I am forcefully doing by a checkbox condition, the toolbar is not displaying full text of buttons also the image of last button is getting cut. I am using PNG for toolbar...
6 May 2012 by Abhi Ajmera
I am using PNG on toolbar in a MDI app. I am using CMFCToolbar in VC 2010. With toolbar in cutomisation menu option if I click on menu (which gets opened by clicking down button next to toolbar) all PNG images are visible good, however if I open another SDI application through same MDI appl...
25 Mar 2011 by Abhi Lahare
Hope this helps, but not sure how much.http://msdn.microsoft.com/en-us/library/aa366773%28v=vs.85%29.aspx[^]
6 Feb 2014 by Adamanteus
Intercepting SEH exceptions in C++ program
26 Feb 2011 by Adnan Boz
How to use CPU instructions in C# to gain performace
22 Sep 2011 by Adnan Boz
Massively Parallel Random Nunber Generation using CUDA C, Thrust and C#
7 Oct 2010 by Aescleal
It looks like you're including the MFC CString definition and then typedefing it as something else. I'm sort of surprised the typedef doesn't give you a redefinition error but that what it looks like from what you've said.Cheers,Ash
16 Jan 2013 by Ajay Vijayvargiya
Covering the nitty-gritties of C++ templates.
1 Jul 2012 by Ajay Vijayvargiya
Let's dwell deeper into C++ templates!
29 Nov 2010 by Alain Rist
With a helper CharMap class using VC2010 C++0x implementation
7 Dec 2010 by Alain Rist
Hi Rajesh,Use the Visual Studio Configuration Manager (in Build menu) to create different project configurations, see How to: Create and Edit Configurations[^].Use compile time definitions to adjust specific configuration features.cheers,AR
7 Dec 2010 by Alain Rist
Hi Rajesh,The simplest is certainly to use the VS2010 GDAL and MapServer SDK packages[^].Otherwise the Visual Studio facility for this kind of issue is the powerful but poorly documented Property Manager[^].cheers,AR
8 Apr 2011 by Albert Holguin
First Question:In this loop, you're removing every other character by checking for EOF and following that up with an if statement that calls getchar() as well, you should only call getchar() once per loop iteration:while ((c=getchar())!=EOF){ if ((c=getchar())!=' ') { ...
11 May 2011 by Albert Holguin
Again, here's a decent article on why the "No target architecture defined" error comes up, there's environment variables missing that are usually set up by other files:http://mcdermottcybersecurity.com/articles/64-bit-device-driver-development[^]
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...
2 Sep 2011 by Alexander Bessonov
A simple high-level IPC library with ability to use native C++ interfaces.
4 Mar 2011 by amitpatel_ld
how to create button with different shapes in VC++ in MFC Windows based application?
22 Dec 2012 by Anders Dalvander
An introduction to RPC programming. A simple RPC client/server application is explained.
3 Feb 2011 by Andrew Brock
Did you try searching[^]?
4 Feb 2011 by Andrew Brock
To clarify on Niklas's answer, Depends.exe can be found here[^].Also check to make sure you are using a static link to MFC and the CRT in Project Properties>General>Use of MFC and Project Properties>C++>Code Generation>Runtime Library. If you don't want to or can't use a static link (which...
17 Feb 2011 by Andrew Brock
The C++ compiler will add its own statements to the destructor to destruct any member variables that are a class type.Consider this:class A { public: A() { m_szMessage = new char[10]; } ~A() { delete []m_szMessage; } private: char *m_szMessage;};class B...
21 Nov 2011 by Andrew Brock
1. Perhaps try http://cboard.cprogramming.com/windows-programming/114294-getting-list-usb-devices-listed-system.html[^]2. No idea, there is probably an API somewhere, or a registry key. At least the Windows Firewall has an API documented on MSDN[^]3. These live in 2 basic locations. The...
7 Dec 2010 by Andrew Phillips
This is a large topic and there are many considerations. For example, at one extreme you can have one executable and use run-time flags to control which features are seen. At the other extreme you can create different release configurations (see below) that define macros (for conditional...
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..
13 Apr 2011 by Anurag Pradeep Gupta
My project contains wowvision.ocx, wowvision.inf, wow.CAB and B.html pages and some other html page where I tested the activex control.This step for client machine1-You do copy wow.CAB, wowvision.ocx and b.htm page in the local server.2-Open the IE and put the address and html page...
31 Jan 2012 by anushagodavarthi
How to change a CSocket to use nonblocking mode?
6 Mar 2014 by Arkadiusz@inquiry
CRichEditCtrl does not take the return
8 Sep 2012 by Asame Imoni Obiomah
This article is the first toddler step in the development of a framework for the delivery of motion, touch and 3D forms as interactive services locally and over networks.
25 May 2012 by Asif Bahrainwala
14 Jan 2014 by Asif Bahrainwala
Atomic set and test in critical sections
5 Aug 2014 by Babu_Abdulsalam
A Simple Profiler for C++ apps on x64 platform
4 Aug 2011 by barneyman
if all you want to do is draw lines and curves, and you have no complex viewing requirements, DirectX is overkill - simply use GDI, or GDI+Create a CPaintDC in your OnPaint method, then use the methods in the base CDC class
30 Jan 2012 by basementman
You need to make the CFont object persist for the life of the control. Do not destroy it until the window that contains the control goes out of scope.
21 Apr 2011 by BillW33
Something else to consider is to make sure that the target machine has the version of .NET installed that you are targeting with your VS2010 project.
19 Jun 2012 by Binu MD
Change the default ICON of MFC applications
15 Sep 2011 by Blake Miller
If you have a window you can register for Terminal Services notifications using WTSRegisterSessionNotification. Then watch for WM_WTSSESSION_CHANGE and specifically for WTS_SESSION_LOGOFF.
20 Dec 2012 by Blake Miller
Then you must override the drawing of the non-client area yourself, and perhaps even handle the mous clicking and window dragging as well. That area above the client area where the title bar is drawn is called the non-client area, and some legacy articles here or on CodeGuru might explain how...
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.
21 Apr 2013 by bshokati
How to create a client-server network for multiplayer game programming using C++ and Windows Winsock
23 Jan 2018 by Cem KARACA
An article on how to combine Slider Controls and Progress bar into one class using custom draw
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.
23 Sep 2011 by Charles Kludge
void CenterWnd(HWND wnd){ RECT r,r1; GetWindowRect(wnd,&r); GetWindowRect(GetDesktopWindow(),&r1); MoveWindow(wnd,((r1.right-r1.left)-(r.right-r.left))/2, ((r1.bottom-r1.top)-(r.bottom-r.top))/2, (r.right-r.left), (r.bottom-r.top),0);}
2 Aug 2011 by Charles Oppermann
How to check Windows 7 version in Visual C++
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.
2 Jun 2014 by Chris La
This is an alternative project of "OraLib - a lightweight C++ wrapper over Oracle's OCI library"
22 Aug 2013 by Chris La
This article explains how to create your own simple Lock Framework for C++ synchronization.
22 Aug 2013 by Chris La
This article explains Objective-C like C++ memory management class, SmartObject.
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
How to create a server-client network quickly using IOCP TCP template server-client framework, EpServerEngine.cs (C#).
15 Feb 2013 by Christoph Husse
The clean way for getting C++ enumerations with Reflection support.
10 Apr 2011 by Ciumac Sergiu
Hi,You access the array out of bounds, so it's kind of strange the introducing strictly less condition didn't change anything. Also ignore my previous solution as it wasn't correct.Regards
30 May 2011 by Ciumac Sergiu
>>EDIT, the solution is obsolete as I though you are asking for .NET app, sorry.Kind regards
1 Jul 2012 by Code-o-mat
Try with CxImage[^] or GDI+[^].
15 May 2012 by Coder Block
Hi All,Im using MFC DLL for saparation of my big project into small small DLL. But problem found when i given set up to a person who has visual studio on his machine.Things goes all right accept one thing ,DLL RESOURCES CAN MODIFIED IN SETUP.A User that used a set up can open DLL and...
25 Jul 2012 by Coder Block
I have place a rich edit control in a class derived from cview.. I want to print the contents of the contrl.Please help me in doing the same.....
21 Aug 2012 by Coder Block
Hi All,Every mfc application created with two default icons,1)MFC icon :- for main window.2)Doc icon :- for child window.I replaced main window icon with help of givn article,Replacing the Default MFC Icon[^]But problem arised when i deal with child frame icon.I can replace...
28 Aug 2012 by Coder Block
Hi all,After spending one whole day on google search about "mfc exe memory consumes lots of space of RAM".Nothing useful found.So as usual need expert like all of you guys,Problem Start when i run my window based application on my PC.It make my PC incredibly slow.Because out of my 2 GB...
8 Oct 2012 by Coder Block
// usbhidiocDlg.cpp : implementation file/*Project: usbhidioc.cppVersion: 3.0Date: 7/18/05by Jan Axelson (jan@Lvr.com)Purpose: demonstrates USB communications with a HID-class device.Description: Finds an attached HID-class device that matches a specified Vendor ID and...
4 Oct 2012 by Coder Block
Hi Guys,Really USB communication is far hardar and Interesting than Serial communication but still, i need support of USB communication in my software.As per some guidance from masters and documents from Codeproject i finally decide to used WDK ..WDK take my whole day to install!!!!i am...
8 Sep 2010 by Coder-123456
HiThese days I'm working on writing driver. I've downloaded WDK version 7.1.0from Microsoft download center and in my source code I include ndis.h but when I compile it these messages have been shown:------ Build started: Project: sys_test, Configuration: Debug Win32...
19 Oct 2010 by CPallini
you should replace old headers with new ones, namely:Faraz the fighter wrote:#include #include #include with #include #include #include also, add using namespace std;just below the #include lines.
11 Feb 2011 by CPallini
You may store the interfaces as pointers. :)
7 Mar 2011 by CPallini
Documentation[...
3 Jul 2011 by CPallini
There are a lot of articles here at Codeproject, have a look at them[^]. You may also find my own article"Plain C Resampling DLL"[^] useful.
7 Aug 2012 by CPallini
The function that gives more control on process execution is CreateProcess, check out the documentation at MSDN[^] for the details.
1 Mar 2013 by CPallini
You need a __int64 variable to store such a large value. Then you may use the _tcstoi64[^] function.
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...
16 Oct 2012 by Daniel Rozsar
The rich edit control do the printing if you ask it in the OnPrint method:void CMyView::OnPrint(CDC* pDC, CPrintInfo* pInfo){ ASSERT_VALID(this); ASSERT_VALID(pDC); FORMATRANGE fr; CRect rect; // offset by printing...
31 Jan 2014 by David O'Neil
A quick comparison of the C++11 lambda/delegate approach vs. Sergey Ryazanov's 'Impossibly Fast Delegates.'
19 Nov 2012 by Debdatta Basu
Emulating iterative structures with the C++ pre-processor.
19 Feb 2013 by Debdatta Basu
Introduction to C#/C++ interoperability, and a performance evaluation.
17 Feb 2011 by Debojyoti Majumder
I created my application in VC++ and I have to verify my it using AppVerifier.When I am testing my application with AppVerifier the application crashes when I am closing the application window. I have debugged my application and from the stack trace I came to know it's crashing in the last...
11 Jan 2011 by Dennis Dykstra
Enabling font and formatting changes in the MFC hyperlink control
15 Mar 2012 by Dharmateja Challa
Using parallel_for_each which is part of Parallel Pattern Library ( PPL )
30 Jan 2012 by didierjeanphi
Introduction to Volume Shadow Copy API in C++
23 Mar 2014 by DigitalInBlue
Guidance on C++/C++!1 Parameter Passing
2 Sep 2010 by dmihailescu
What is the start-up and system performance overhead for .Net, Mono, Java versus C++ and Forms, WPF, Swing versus MFC
19 Jun 2012 by Dominik Reichl
CSHA1 - A C++ class implementation of the SHA-1 hash algorithm
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...
25 Jun 2011 by edisonckn
I'm writing code about a system that consist of a server handling multiple client connection. https://docs.google.com/drawings/d/1IeZBO9jqxbXcZPvX6bsAjcM8O3L9KJW7C8UVELa-jUM/edit?hl=en_USThe link above is the image about the brief idea of how it works.In the server I use a...
11 Jul 2010 by Emilio Garavaglia
You can find the required math and a simple implementation right here:http://www.geometrictools.com/Documentation/DistancePoint3Triangle3.pdf[^]
3 Mar 2011 by Emilio Garavaglia
In the way you asked, no. Simply because an Icon is actually two bitmaps: an image (defines the color of the pixels) and a mask (defines which pixels have to be painted and which not, and hence be transparent).An HBITMAP is just one image, so you cannot "extract" the other.But you can...
2 Sep 2011 by enhzflep
How about the option /PDBSTRIPPED ? Any good for your purposes?MSDN - "/PDBSTRIPPED (Strip Private Symbols)"[^]
15 May 2012 by enhzflep
I would probably approach this in a similar way to the one employed by MS Windows. That is, I would calculate a hash (lets say MD5 or SHA1) of each file. I would then check the (pre-calculated) valid against one calculated on-the-fly for each file. If the hash doesn't match, don't...
2 Dec 2011 by ErnestoNet
Program to find all the solutions to a Pentomino puzzle.
10 Jan 2011 by Espen Harlinn
check calling convention, parameters and so on. everything must match the expected method signatures.RegardsEspen Harlinn
6 Feb 2011 by Espen Harlinn
Since Nishant Sivakumar mentioned the "good old days" of DOS, Turbo Vision[^] is an option if you want to develop an "intuitive" console/text mode application.It now works on DOS, FreeBSD, Linux, QNX, Solaris and Win32 :)Have fun :)RegardsEspen Harlinn