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

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
31 Jul 2010 by #realJSOP
Why don't you just create a static class and put the variable in there (don't forget to make it public static as well). Then you can get to it from anyplace in the program.
27 Nov 2010 by #realJSOP
Install programs are nothing more than Wizard forms. I believe that MFC already has a Wizard dialog class (it's been 4 years since I did any C++, so the memory is hazy). Google is your friend.
19 Jan 2011 by #realJSOP
That error is "Access denied". http://msdn.microsoft.com/en-us/library/ms681381(v=vs.85).aspx[^]
4 Sep 2011 by #realJSOP
On MSDN - ParseCommandLine[^]A very simple google search...
11 May 2011 by 01.mandar
when i write AT Commands in dat array for sending it to GSM Deviceint TransxPortGSM() Functionunsigned char dat[3]={'A','T'};//tried char,int..DWORD dwNumBytesWritten=sizeof(dat); check=WriteFile( hPort, // Port is getting correct &dat, ...
28 Oct 2010 by 2buck56
I have an existing VS2008 MFC application that I need to add user functionality to. The cleanest way to do this is with a DataGrid form of some sort. Since the DataGridView control is not in the toolbox I tried this Microsoft method:http://msdn.microsoft.com/en-us/library/b1kyh79x.aspxThe...
28 Oct 2010 by 2buck56
28 Oct 2010 by 2buck56
I finally got it working. Since there was nothing under the Projects tab I clicked browse, traversed to where the WindowsFormsControlLibrary1.dll file was, selected that and then clicked OK. Next I clicked Apply and OK on the Properties Page.I then added all the MFC code shown in the article...
25 Feb 2010 by 365days.enjoy
The way to calculate a collection of folders size with VC++
20 Apr 2010 by @Intersect☺™
See this below link, this will assists you surely to serve your purpose Single Server With Multiple Clients : a Simple C++ Implementation[^]
2 Nov 2010 by abdul Rahman Muhiyidheen
I need some help to do the work. I'm assigned to develop a software to control the machine connected to USB port (Some machines is using serial port also). As a new one to this type, I need help to start the work.....Thanx, I appreciate your helpAbdul Rahman
11 May 2010 by AbhiHcl
Hi,I have to create a round rect button with three images, one for left round shape one for middle portion of button and one for right side round shape. I just wanted to know how to add these round images on the button. So that button has a round shape. Here is my code in which I am able to...
19 Jan 2010 by AbhiMFC
Hi I was trying to do sample code to understand multithreading in MFCI have a scenario as mentioned below.Thread A ->Should Write to a bufferThread B ->Should Write to buffer after Thread A completesThread C ->Should Write to buffer after Thread A and B completes .Thread D...
10 Nov 2010 by Abhinav S
Check that you have the right .Net framework (+ updates) installed on the non-developer system.
30 Jan 2011 by Abhinav S
Have a look at the properties section as described here[^].Properties="Configuration=Debug;"
15 Feb 2011 by Abhinav S
I dont think there is a way other than COM interop that can help you achieve this.One is managed code and the other is unmanaged code.
14 Jul 2011 by Abhinav S
This[^] might help you get started.
4 Apr 2017 by Abhineet Ayan Verma
Major calling conventions for Win32 and best suited functions
29 Nov 2009 by Abhishek Sur
I think all those errors are coming because the program cant include dshow.h. Check the installation. :)
6 Feb 2014 by Adamanteus
Intercepting SEH exceptions in C++ program
29 Aug 2008 by Adrian Savage
Simulation in OSG using discrete events, a Ternary Heap and Interpolation
31 Jul 2010 by Aescleal
If you have two dialogues that have to communicate why not do something radical like pass the address of the one data has to be fetched from to the constructor of the one that wants to consume the data?Then you don't have to mess about calling global functions, casting (you might like to use...
17 May 2012 by Ahmed Charfeddine
A Websocket protocol implementation atop the ush Framework real time library plus a demo example featuring four types of communication workflows between the HTML5 web client and the server.
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!
18 Feb 2009 by Alain Rist
OOo::DocWindow and WTL::COOoCtrl classes to work on any Microsoft-Office document, and Open Office SDK integration in Visual Studio/VCExpress 2005/2008
3 Sep 2009 by Alain Rist
A submisson to the CodeProject Lean and Mean challenge.
27 Nov 2010 by Alain Rist
Hi Reza,1: See the MFC CPropertySheet and CPropertyPage[^] classes and the CPropertySheet::SetWizardMode()[^] member.2: From Visual Studio 2008 SP1 a large set of interface elements[^] has been added to MFC. They can be used to compose something like your screenshot. Work ahead :)...
12 Apr 2010 by Alain Rist
Including a Ribbon UI Implementation Guide with examples and a dual UI enabled legacy application
26 Feb 2011 by Albert Holguin
I use "..\..\myproject\debug\A.lib" (of course use your own relative path) defined as "Additional Dependencies" in the Project->Properties->Linker->Input options to do this very same thing in VS2008. Works well for me.
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[^]
17 May 2011 by Albert Holguin
As you can see from the definition:#define USES_CONVERSION int _convert = 0; (_convert); UINT _acp = ATL::_AtlGetConversionACP() /*CP_THREAD_ACP*/; (_acp); LPCWSTR _lpw = NULL; (_lpw); LPCSTR _lpa = NULL; (_lpa)its just initialization for other macros...
30 Nov 2011 by Albert Holguin
Just check the size before you try to access it using GetUpperBound()CStringArray arr;arr.RemoveAll();CString tst;int i=1; //for testingif( i
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...
28 Aug 2009 by Alex Blekhman
A simple Calendar utility that demonstrates basic Shell extensibility techniques: desk band, tray notification icon, locales.
22 May 2008 by Alex C. Punnen
The Command Pattern and Chain of Responsibility for implementing a plug-in Thread Pool library.
3 Jun 2008 by Alex Hazanov
Example on how templates can help you to generalize your code
28 Sep 2008 by AlexAbramov
This article explains how to make a plug-in for Solitaire that displays a high score table. By way of Codecave, Solitaire will automatically execute a DLL for this plug-in -- thus no user intervention required!
24 Sep 2008 by AlexAbramov
Ever wanted to know how to call internal functions of other processes? This is an article on just that -- you'll learn how to read disassembled code in a project where the source code is known, and then apply that knowledge on an application where it isn't.
10 May 2009 by AlexShag
This is a simple text editor based on Edit control
1 Nov 2009 by Ali Tavakol
Fast, real, and easy to connect to your application.
7 Nov 2009 by Ali Tavakol
Fast, beautiful, real and easy to connect to your application
18 Nov 2011 by Amir Mahfoozi
Here is a good resource :Adding Icons to the System Tray[^]Hope it helps.
19 May 2013 by Amit Deshmukh 1010
Accessing class object present in exe from explicitly loaded DLL using Inheritance and virtual function.
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.
21 Jan 2011 by Andrew Brock
This could be quite tricky, as the library will be built with a different version of the CRT (and possibly MFC if it uses that too). The only thing that should really matter is the linking to the CRT in Properties>C/C++>Code Generation>Runtime Library. This should be set to what it was set to...
7 Feb 2011 by Andrew Brock
You will need to open the HDD (or better yet, just the partition) with direct access, then write your own file system library. You were pretty much doing this. Just use "\\\\.\\C:"The good news is that this is not as hard as it sounds.I would STRONGLY reccommend getting a hex editor. I...
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...
22 Feb 2011 by Andrew Brock
Check out WM_WTSSESSION_CHANGE on MSDN[^].wParam == WTS_SESSION_UNLOCKNot sure if this is send on a suspend (sleep), you may need to handle WM_POWERBROADCAST[^] as well.For future reference, I found this by opening up Spy++ from the Visual Studio Tools menu and spying on messages sent...
26 Feb 2011 by Andrew Brock
1. It seems rather trivial, but make sure project A is compiled and archived before project B is archived.You can do this by setting project dependencies by right clicking any of the projects A and selecting Project Dependincies.2. Not sure if environment variables in VS are case...
7 Nov 2011 by Andrew Brock
This is a compile time error. Make sure you spelt the variable name correctly and that it exists in the class definition for Meal.Additionally, return m_KitchenNote; will not throw any exceptions, so there is no need for a try/catch here.
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...
10 Dec 2010 by Andrew Phillips
When you invoke the macro using: mcr_defineVar("int",a);the first parameter to the macros is the 5 characters: "int"This parameter is substituted into the macro text (for t) verbatim. There is no way to avoid that. You can't get rid of the double-quotes.However, the real...
26 Sep 2011 by André Kraak
I was able to find the following:Adding Context-Sensitive Help to an Existing MFC Application[^]Q149343 - HOWTO: Implement Context-Sensitive Help for Dialog Controls[^]Q241218 - HOWTO: Implement HTML Help Text Pop-Ups in an MFC Application[^]TN028: Context-Sensitive Help...
16 Nov 2012 by Andy Bantly
An easy DOS framework for creating and managing a service
5 Dec 2012 by Andy Bantly
A class to aid in creation of AVI files
9 Mar 2012 by Andy Rama
To read binary data from a file, I have written a code as follows,int fd = open(sFilePath, O_RDONLY, 0); //BINARY READ OPERATIONint iBytesToRead = 100;unsigned char* pBuffer = new unsigned char[iBytesToRead];while(true){ int iReadBytes = read(fd, pBuffer, iBytesToRead); if(...
17 Mar 2010 by Anthony Mushrow
You may want to use a multicast socket, which would send the data simultaneously to any clients.I've not done anything with it myself, but here are some links that you may find useful:Wrapper Class for setting up a multicast socket here[^]MSDN Pages on the subject, including example...
8 Aug 2012 by Antonyxt
vtable modification and destruction event handling
20 Feb 2011 by aravindkrgec
Hi,I'm new to VC++ and now I need to write an xml parser using xsd. I have no idea of anything about it. Can you give me a sample code or any information about how to do it. Any help will be greatly appretiated.
22 Feb 2011 by aravindkrgec
Hi everyone, This time I'm asking a crazy question. I think you won't mind it. I want to write a program that reminds me something each time when I unlock the computer. How can I do it? Do I want to add the program into the startup? How would I know that a computer is unlocked? i.e. how...
23 Feb 2011 by aravindkrgec
Hi, Now I've another problem. I have to generate a xml file from an xsd file in vc++ without using .net framework(which otherwise is a much easier task).The method I think is to parse the xsd file and insert the values for the coresponding tag. Now the actual problem is how to...
22 Feb 2011 by aravindkrgec
Hi, Just as Olivier said, check the validity of the strings. Also check the value of resp, the return value. By the way did you debug the code to see where the actual problem is.....
23 Feb 2011 by aravindkrgec
Hi every one, My problem is to create an xml file from a xsd file. The thing i want is to know how can I parse the xsd file to know its attribute and type? Also the hierarchical order should be known. I surfed the net and theresult was not fruitful. Most articles where to validate the xml but...
9 Mar 2011 by aravindkrgec
HI, I want to write data into a cd and want that cd to be multisessional. I got various such articles in C# and VB. But I want to implement it in VC++. I edited the code given in Burning CD/DVD Media with the Image Mastering API Version 2.0 (IMAPI2)[^] but no use. I could only get the...
26 Dec 2009 by Aric Wang
To show you how to create a easy animation with palette
1 Jan 2010 by Aric Wang
Many popular MP3 players have cool desktop lyrics, this demo uses a simple method to realize it. Happy new year!
17 Jan 2010 by Aric Wang
This is a class derived from CWinThread class. It is used to record and play sound in the specific thread.
22 Feb 2010 by Aric Wang
The article will give you an idea on how to design a source filter.The source filter creates samples and outputs it from its output pin.
4 Apr 2010 by Aric Wang
Really a tiny class, used to get the currently webpage's net speed you are opening
6 Apr 2010 by Aric Wang
The aritcle gives you a way to export web browser's favorites.
6 Mar 2014 by Arkadiusz@inquiry
CRichEditCtrl does not take the return
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.
8 Feb 2012 by Ashish Tyagi 40
So you are on windows-Try any of these.ClipboardCOMData CopyDDEFile MappingMailslotsPipesRPCWindows SocketsWell Data Copy^ and Pipe^ would be easy options.
25 May 2012 by Asif Bahrainwala
27 Nov 2009 by AspDotNetDev
Select each menu item and set the padding and margin to 0.
29 Nov 2009 by AspDotNetDev
Have you tried:UPDATE TableName SET Result = 2 ^ 2
29 Nov 2009 by AspDotNetDev
So, what you really want to do is call VBA functions from MS Access queries? This page explains how to do that.
29 Nov 2009 by AspDotNetDev
I don't really follow you. If you want to use a VBA function in an Access query, just create your own UDF that wraps that VBA function, then you can use that UDF in your Access query. And if you want to use some Access query function from VC++, you can make database calls to an Access DB from...
17 May 2011 by barneyman
it would appear to be shorthand for creating a couple of locals on your stack for some bstr/wstr functions ...http://www.codeproject.com/Messages/1870028/Re-USES_CONVERSION.aspx[^]
9 Jun 2011 by barneyman
you can either use the OLEDB driver for Excel, or use the Excel object model to get to the dataThe former is quite difficult to understand from a standing start, the latter may be slower if you're handling lots of dataThere was this[^] article on codeproject that talked about the various...
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
14 May 2012 by barneyman
have you run it under a debugger after it's been installed? I assume you're building release for install - have you tried running the release build to see its behaviourCompile it under release with no code optimisations, program database (/od and /Zi respectively)Link with /DEBUGYou...
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
7 Apr 2010 by BarrySolomon
Support for Reading XML in MySQL
9 May 2012 by Bernhard Hiller
The simplest thing you can do is changing the sampling rate in the header of the file. The effect is like playing a tape/record at lower or higher speed.Do not change bits per sample, that will result in garbage.If you want to change effects independently, you'll have to do terrible maths....
2 Jun 2008 by Bharath NS
Multithreaded GUI solution for starvation in Dining Philosopher problem
8 Dec 2010 by BinhTC
The macro to define a variable is://Define macro ============#define mcr_defineVar(t,v) t v;//Use====================== mcr_defineVar(int,a); //same as int a; a = 10; // =>a = 10;But I want to do some...
19 Jun 2012 by Binu MD
Change the default ICON of MFC applications
19 Feb 2013 by Binu MD
Hi,Am looking for C++ design pattern for Implementing a Video Player.Welcome your valid suggestions.
3 Aug 2010 by bleedingfingers
If the application is not supposed to be multithreaded and fairly simple, using good old global static variables will get you by this.For data exchange, use the relevant event handlers.Since you haven't posted anything but just a line of code, out of context, I assume that what you need...
20 Aug 2010 by bleedingfingers
MSDN is your friend. Install it if you don't already have it. Search it before jumping to post a question on the net.Any UI elements you add from the property board is present, as code, in the .rc file. Open that in the notepad (visual studio doesn't display the textual version) and ...
21 Dec 2008 by Boris Kolesnikov
Generates PNG files called tiles which form a layer on a GIS map
11 Oct 2013 by BrainlessLabs.com
In this article, we will discuss implementing conditional statements, loops and blocks.
20 Nov 2009 by Brett D Johnson
Automate file version updates for large suites of C++, C#, and VB apps.
24 Sep 2011 by Calinyara
This article shows how to change the pitch and tempo of a sound.
19 Jan 2010 by Cedric Moonen
In addition to Carlo's answer: are you sure you want to have that many threads ? If the processing is sequential, I don't really see a reason why you want to split that up into that many threads. Why not having only one thread doing all of that ?
20 Feb 2011 by Cedric Moonen
If you have no idea about anything about it, I suggest you first start to learn about xml and xsd, it will help a lot to communicate with others about the subject. There are some good tutorials here[^]: you have to look in the XML section, there is an entry about xml and an entry about schema...