Click here to Skip to main content
15,892,537 members
Everything / Programming Languages / Visual C++ 9.0

Visual C++ 9.0

VC9.0

Great Reads

by logicchild
An article that explains how to use this library
by SBJ
A Model-View-Controller Framework that integrates with the MFC Doc/View architecture
by Ernest Laurentin
Full-fledged ATL Windowless ActiveX Container. Ideal for hosting Windows Media Player, Transparent Flash and Silverlight Animations.
by Michael Dunn
Create custom tasks in your app's jump list on Windows 7

Latest Articles

by QxOrm
QxOrm C++ library: Persistence (based on QtSql Qt library) - Serialization (based on boost::serialization library) - Reflection (introspection)
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 Ravimal Bandara
An implementation of Bag-Of-Feature descriptor based on SIFT features using OpenCV and C++ for content based image retrieval applications.

All Articles

Sort by Updated

Visual C++ 9.0 

27 Jul 2023 by chaiein
How to change the position and size of static element in dialog based Mfc?I have a CStatic box by drag and drop now I want to change the position and size of that element in the code. How can I do this?CStatic *pWnd= (CStatic *)GetDlgItem(IDC_STATIC_PICTURE); //Id of CStatic...
27 Jul 2023 by Member 16060076
CRect rc; CWnd *wnd = GetDlgItem(IDYES); wnd->GetWindowRect(&rc); ScreenToClient(rc); wnd->SetWindowPos(NULL, rc.left, rc.top+10, rc.Width(), rc.Height(), SWP_SHOWWINDOW);
24 Apr 2019 by QxOrm
QxOrm C++ library: Persistence (based on QtSql Qt library) - Serialization (based on boost::serialization library) - Reflection (introspection)
29 Sep 2018 by libbyliugang
A splitter control for dialog can auto change the linked window's position
28 Jun 2018 by KarstenK
You should use the debugger and step into the code. I guess from reading that the the file wasnt found in the directory and so the aLineArray is empty. Good coding means also checking functions like the file.Open and some error handling: if( !file.Open(strExePath+filename, CFile::modeRead) ) { ...
28 Jun 2018 by Shahzad Naseer
I am getting all 10 lines (line by line ) in mfc project as CStringArray but recieve error on to getting 4th line string. my text file is: C:\Program Files (x86)\GRETECH\GOMPlayer\GOM.EXE C:\Program Files\VideoLAN\VLC\vlc.exe C:\Program Files (x86)\Google\Chrome\Application\chrome.exe...
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
30 Aug 2017 by Ravimal Bandara
An implementation of Bag-Of-Feature descriptor based on SIFT features using OpenCV and C++ for content based image retrieval applications.
11 Jul 2017 by small_programmer
You can use this open source library: NtfsReader .NET Library / Wiki / Home[^][^] It is in C# language but is a good and simple library to work with NTFS file system.
11 Jul 2017 by hjaiuyg
Hello,For a project I'm assisting with I need to open the $MFT (the actual file) and calculate its MD5.Windows does acknowledge its existence (i.e. Create file to \\.\c:\$mft works) but any attempt to read from it returns Access denied error.tried a different approach with...
4 Apr 2017 by Abhineet Ayan Verma
Major calling conventions for Win32 and best suited functions
26 Oct 2016 by Shao Voon Wong
C++: Prefer Curiously Recurring Template Pattern (CRTP) to Template Pattern
12 Apr 2016 by Shao Voon Wong
Linq-To-XML Node Creation for Native C++
2 Feb 2016 by MaxMax14
Keep the items highlighted when focus is on another control
22 Oct 2015 by David Johns, John_Tang
C++ SMTP client, support SSL and TLS encrypted connection to SMTP server
16 Jul 2015 by Chris La
How to create a server-client network quickly using template server-client framework, EpServerEngine (C++ and Windows Winsock).
10 Jul 2015 by Member 5688443
If your objective is to reuse variables, here goes the way to go:CString WriteString;.... WriteString.Format("%s.%d d", CString(WriteString),NI);Notice the CString() constructor call. You will have not problems because your format receives a copy of WriteString, instead of...
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#).
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.
4 Mar 2015 by Member 10582597
How to add VC redistributable 2010 to Windows PE 3.0. In WinPE 3.0 it is not allowing to install vc redistributable 2010. Is there any way to add files related to vc 2010 redist and run the application developed on vc 2010.
2 Jul 2014 by Mohammed El-Afifi
Given an existing win32 application, how to provide COM automation capability to it?
2 Jun 2014 by Chris La
This is an alternative project of "OraLib - a lightweight C++ wrapper over Oracle's OCI library"
23 Mar 2014 by DigitalInBlue
Guidance on C++/C++!1 Parameter Passing
6 Mar 2014 by Arkadiusz@inquiry
CRichEditCtrl does not take the return
4 Mar 2014 by Junaij
If you want to load from resource use below function.bool Utils::LoadBitmapFromPNG(UINT uResourceID, CBitmap& BitmapOut){ bool bRet = false; HINSTANCE hModuleInstance = AfxGetInstanceHandle(); HRSRC hResourceHandle = ::FindResource(hModuleInstance,...
6 Feb 2014 by Adamanteus
Intercepting SEH exceptions in C++ program
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...
10 Dec 2013 by CPallini
You are not assigning 'an object to a reference'. You are calling the copy assignment operator[^], that, for a some reason (unknown to me) is unavailable (that is the compiler cannot generate for you).If you need to 'assign a reference' then you should use a pointer (and, accordingly, change a...
10 Dec 2013 by nv3
The error message says it all: The CMatroxAudioExtractor class has no public assignement operator ("operator="), i.e. the designers of this class did not want that anybody assign another object directory to an object of this class. This can have several reasons, for example because the object is...
10 Dec 2013 by Vaibhav_J_Jaiswal
Hi friends,I stuck at one point. Please help me to resolve this.I am passing a reference object to a function and after some calculation I am assigning the simple object value to reference object. Here I am getting error as error C2582: 'operator =' function is unavailable in...
15 Nov 2013 by Orjan Westin
Reading an input of any type, or simply enter, from the command line
6 Nov 2013 by Ganesh Jeevaa
Hi,Try this code.void CTestMFCDlg::OnBnClickedButtonLoadPng(){ CString pngPath=L"c:\\test.png"; CImage pngImage; CBitmap pngBmp; CDC bmDC; CBitmap *pOldbmp; BITMAP bi; UINT xPos=450,yPos=300; CClientDC dc(this); pngImage.Load(pngPath); // new...
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.
29 Oct 2013 by Dezhi Zhao
This article shows a fast solution to Einstein's Riddle by using brutal search.
11 Oct 2013 by BrainlessLabs.com
In this article, we will discuss implementing conditional statements, loops and blocks.
22 Sep 2013 by Simbey
The CNativeInvoke class generates x86 function calling code at runtime and executes it.
14 Sep 2013 by The Ultimate Toolbox, metalogicsw.com
The Ultimate Grid is now Open Source
3 Sep 2013 by Nikolay Ananenko
Avoid horizontal scroll and effectivelly use whole horizontal control width: resize all columns except one to their content and this one to all remaining space.
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.
27 Jul 2013 by saqib.akhter
Hello Friends,I have a problem to integrate new feature in my product, framework team providing us some new APIs and we have to integrate in our application without impacting our old code.Following is my question:there is some 3rdParty classesThese classes are provided by...
27 Jul 2013 by pasztorpisti
Regardless of the actual implementation/class you instantiate put the result pointer into a base class pointer and all the general implementation independent code should work with base class pointers/references.BaseClassPointer* GetInstance(){ if (globalsettings == "whatever") ...
21 Jun 2013 by ThatsAlok
How and Where to use it!
19 May 2013 by Amit Deshmukh 1010
Accessing class object present in exe from explicitly loaded DLL using Inheritance and virtual function.
6 May 2013 by trident99
An STL based simple XML serialization and de-serialization engine
25 Apr 2013 by In the Face of God
Unmanaged code application accessing data in a database via Web Services without a database provider.
24 Apr 2013 by OSHO580
Hello friends,I want to use Windows MultiPoint Mouse SDK 1.5 in vc++. So how it is possible. if any one have idea please share it.I am sending links of Windows MultiPoint Mouse SDK 1.5 below:-http://www.microsoft.com/multipoint/mouse-sdk/[^]^]Please reply me its very urgent for me.Thanks...
8 Mar 2013 by joejames111
This is a VB.NET and C# version of "Minimal Key Logger Using RAWINPUT".
19 Feb 2013 by Binu MD
Hi,Am looking for C++ design pattern for Implementing a Video Player.Welcome your valid suggestions.
19 Feb 2013 by Debdatta Basu
Introduction to C#/C++ interoperability, and a performance evaluation.
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.
25 Dec 2012 by Gokulnath007
Is it possible to create a plug-in,that has to be compatible with Outlook 2010 (32-bit) and Outlook 2013 (32-bit and 64-bit) version in both PST and Exchange configuration?
22 Dec 2012 by Anders Dalvander
An introduction to RPC programming. A simple RPC client/server application is explained.
18 Dec 2012 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.
5 Dec 2012 by Andy Bantly
A class to aid in creation of AVI files
29 Nov 2012 by Shanan Winters
Creating Menus (with Drop-Down Sub-Menus) using Images in WPF.
19 Nov 2012 by Debdatta Basu
Emulating iterative structures with the C++ pre-processor.
16 Nov 2012 by Andy Bantly
An easy DOS framework for creating and managing a service
14 Nov 2012 by myfirm
afxControlbar42S what exactly is it? ive been studying docked windows for a while now, and i use the WinID program to find out the styles of dockwindows and the frames they use to dock, but i have yet to find this afxControlbar in the SDK. now 2/3 of the applications on my computer have this...
7 Nov 2012 by lazydie
Finally,I find that the functions used while using VC++ to operate Access DataBase with ADO are the same in ASP.And all the elementary mathmatics functions can be used.(For example:power()->"^";ln()->"log()")Thanks!!!
31 Oct 2012 by Gokulnath007
I would like to create a navigation app that should contain 5 pagesFirst page should contain list of item names, if i click on any of the item, it should navigate to another page where the items properties should be listed, then if i click any of the property, then it should navigate to...
31 Oct 2012 by Francesco Aruta
A toolbar editor for Visual Studio. It can modify, add and create buttons, images and all that is needed for a toolbar.
27 Oct 2012 by H.Brydon
Using the Actor Programming Model
19 Oct 2012 by Orjan Westin
Simple function to get the text message corresponding to a system error.
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...
8 Oct 2012 by Maxim Kartavenkov
Sorry, I just proper review your code - some bugs in there.See how it should be:1. Call SetupDiGetClassDevs to create enumeration list with the class guid and device flags - you doing that properly. Example:HDEVINFO hDeviceList = SetupDiGetClassDevs (&KSCATEGORY_TOPOLOGY,NULL, NULL,...
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...
17 Sep 2012 by Gokulnath007
I have an application running, and it has certain menus, I dont have code for this application. Just the exe. How to trigger the button click event if the corresponding menu item is pressed. Could we use another app to do this?
13 Sep 2012 by OriginalGriff
" Binary was not built with debug information."At a guess, your problem is right there.Solution? Pretty obvious: build your application for debug, not release. :doh:
29 Aug 2012 by JackDingler
Visual Studio has a built in memory profiler....Place the following in each of your .cpp files after the include statements.#ifdef _DEBUG#define new DEBUG_NEW#endifThen run your application in the debugger in debug mode.Close your application.You'll see any memory leaks...
28 Aug 2012 by Mehdi Gholam
Try using a memory profiler, follow the links below :http://stackoverflow.com/questions/818673/memory-profiler-for-c[^]http://en.wikipedia.org/wiki/List_of_performance_analysis_tools[^]
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...
18 Aug 2012 by Dan Randolph
C# interop using platform invoke and C++ vectors to implement fast searching and selection on index keys
14 Aug 2012 by nv3
The links in Solution 1 are all geared towards the .NET environment. From the tags of your question it might well be that you are not using .NET, but plain C++ code.A good article with a smooth introduction of delegates can be found here on CodeProject:Member Function Pointers and the...
14 Aug 2012 by Malli_S
Generic Delegates (Visual C++)[^].NET style delegates for VC++ 6[^]Delegates and Events[^]
14 Aug 2012 by Gokulnath007
How to use delegates in vc++ win32 console application? after declaring and initializing the delegate. How to create and signal the event using that delegate.
13 Aug 2012 by Lars [Large] Werner
When loading a keyboard dll as a 32-bit application on a 64-bit system, the keyboard-dll-files does not work as expected, this class fixes that problem
13 Aug 2012 by Philip Stuyck
You need use an event for that see http://msdn.microsoft.com/en-us/library/bhf9sxch(v=vs.80).aspx[^]You have to give it a name so that the applications get to use the same event.
12 Aug 2012 by Gokulnath007
How to use mutex to post signal? How to create common mutex and post signal in one application. so that, the other application can receive the mutex signal from the previous app? And process it.
10 Aug 2012 by Jonathan [Darka]
You need to add a Windows Message handler function to your code to receive the message so that you can process it.If all you want to is to check for the message being sent (to debug the code) then you could use Spy++.
10 Aug 2012 by Gokulnath007
How to receive the event posted by postmessage() function? In other console application to check whether the event is posted from the other app successfully in VC++?
8 Aug 2012 by Antonyxt
vtable modification and destruction event handling
29 Jul 2012 by simonchen.net
A useful skill to get rid of ATL, but do similar flexible architectures by yourself.
25 Jul 2012 by Long Nguyen (xyz)
This is about how to make a simple sofware like photoshop using Visual Studio C++ and OpenCV
19 Jul 2012 by Albert Holguin
Quote:var = (LPVAR)GetProcAddress(hDLL, "Ver_C");The "Ver_C" should match the name of your exported function exactly. Make sure you have a function named that, if you don't, that's your problem. If you do have a function named that, make sure it was a C-style export or else the name...
19 Jul 2012 by barneyman
The docs for GetProcAddress[^] say it returns NULL if if failsYou're getting a NULL back (i worked that out from the exception) and you've got zero error handling in there
19 Jul 2012 by vikky08
I want to call my vc++ dll in my vc++ code.but the error occur that Unhandled exception at 0x00000000 in .exe: 0xC0000005: Access violation reading location 0x00000000.after last line.I have call vc++ dll by ordinal no.In .h file typedef int (*LPVAR)(char * ptr_f, char *CC); ...
17 Jul 2012 by armagedescu
First of all, see in the chromium project, there are many unit tests. Look inside and do the same.But if you like to test the HTML page, then you would better use plain JavaScript. You will have full access to all HTML functionality.
17 Jul 2012 by Jake Franta
16 Jul 2012 by kartikdasani
Hi,I am trying to develop a custom automation solution for my software client which involves testcases where there is interaction with html pages in embedded browser windows. The chromium embedded framework is being used in this client and I want to know if there is a way to Click a button...
11 Jul 2012 by ZurdoDev
You need to create a client side app that will run on whatever computer you are trying to get the image of. You cannot just "spy" on a computer so you'll need an app already running on it. Search for screenshot. There are a lot of samples out there.
9 Jul 2012 by Gokulnath007
How to take screenshots from remote IP? I would like to take screenshot of the machine whose ip address is known and connected via LAN. How to take the screen shot and save it in my local harddisk.?
9 Jul 2012 by shankha2010
Hi All, I want to extract some data from a flash website by OCR[Optical Character Recognition] programmatically.By taking Internet explorer handle and navigating to apage and taking screenshot of it.Everything went fine until I scheduled it in a server that have no monitor.Any Idea...
8 Jul 2012 by Jochen Arndt
You may connect a 'DVI Dummy' (Google for it) that simulates a monitor to be attached to the graphics card.For a VGA port see this VGA Dummy[^] solution.You may also try ZoneScreen which is designed to extend desktops over network connections. It contains a virtual graphics card with...