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

Visual C++ 9.0 

7 May 2012 by chaiein
I am gettingerror C2664: 'midiInGetErrorTextW' : cannot convert parameter 2 from 'char [128]' to 'LPWSTR' How to solve this error?
7 May 2012 by enhzflep
I had similar error message when using GDI+ in a non-unicode app. My filenames were simple char*, yet the load function needed WCHAR*You just need to use MultiByteToWideChar. WCHAR wFilename[MAX_PATH]; string fileName; char *filename; filename =...
7 May 2012 by chaiein
Change the Project properties in character set to Use Multi-Byte Character Set solved my problem
27 Sep 2010 by ZhaoRuFei
This article provides a macro + template solution to support .NET-like Reflection for enums such as ToString, IsDefined, Parse, GetValues, GetNames.
18 Apr 2012 by Ivan Shcherbakov
The article describes 10 time-saving debugging techniques available in Visual Studio.
29 May 2012 by Nitin K. Kawale
3D Vector Graphics class.
25 Jul 2010 by ThatsAlok
Collection of Q&A from VC++ forum
15 Jul 2011 by ThatsAlok
Collection of Q&A from VC++ forum
25 Jan 2011 by Kozlov_Sergey
I had build project BaseClasses. And after i add it to other project i get error.What i build library, i get following error:1>Embedding manifest...1>Project : error PRJ0002 : Error result -1073741819 returned from 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\mt.exe'.My operating...
23 Jan 2011 by Indivara
Does this help?http://support.microsoft.com/kb/948477[^] Replying to comments has become tediousKozlov_Sergey (KS): No, it doesn't (implicit reply)Indivara (I): Try removing the setting that embeds the manifestKS: That fixes error, but absence of manifest causes program...
24 Jan 2011 by Hans Dietrich
-1073741819 is FFFFFFFFC0000005 so that might indicate some kind of "access denied" problem. Also, I seem to remember having a problem with an old copy of mt.exe being invoked. Check all your hard drives for all copies of mt.exe, and make sure you're using the latest one.
24 Jan 2011 by Kozlov_Sergey
It seems to me, that i have found solution: NET Framework 4.0 is required.I tryed to create using mt.exe from command line. NET Framework 4.0 request message appered.
25 Jan 2011 by Kozlov_Sergey
Removing Windows 7 SDK and NET Framework solved problem.
29 Oct 2010 by waertf.chen
all compiled fine but after run, the error occurred 100%in visual studio 2008 but vc6.How can to modify it to pass runtime?What I want is that to run fine only with *.exe and *.dllThank you//test_dll.cpp#include #include typedef int (*PFUN)(int);void...
29 Oct 2010 by Nish Nishant
You are not checking for errors. You need to check and see that LoadLibrary succeeded, GetProcAddress succeeded etc.
29 Oct 2010 by waertf.chen
//test_dll.c...
1 Nov 2009 by Ali Tavakol
Fast, real, and easy to connect to your application.
18 Feb 2010 by see1see
A practice of using Windows GDI and Winsock.
27 Jun 2010 by Wayne Wood
Verify the execution efficiency of a short CUDA program when using the library thrust
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.
22 May 2008 by Alex C. Punnen
The Command Pattern and Chain of Responsibility for implementing a plug-in Thread Pool library.
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.
25 Apr 2010 by Scot Brennecke
A string array class using MFC or STL that performs very fast multiple string searches
7 Nov 2009 by Ali Tavakol
Fast, beautiful, real and easy to connect to your application
11 Dec 2010 by logicchild
An article that desribes some essentials to help learn the DirectX technology.
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.
13 Oct 2008 by Jason Hamilton
This article introduces and explains the use of the serial_interface class. An easy way to add serial port interfaces to your C++ code.
30 Nov 2008 by WajihUllahBaig
How to read audio input devices in DirectX.
19 Jan 2010 by duong2179
Hi every body!I have a trouble, help me please!I am a beginner in MFC programming. I have coded a progam using font system. Through a book, I knew the way to lists font system by using two functions:int CALLBACK EnumFontFamExProc(ENUMLOGFONTEX *lpelfe, NEWTEXTMETRICEX *lpntme, DWORD...
19 Jan 2010 by Graham Breach
There's a ready-made MFC class called CFontDialog you can use to get a font selection from the user, but to answer your question...It sounds like the signature of your function definition doesn't match a function prototype, which is why the error says 'overloaded-function'.A simple way...
19 Jan 2010 by Richard MacCutchan
Is this the only place that EnumFontFamExProc is defined? It looks as though the compiler has another definition from somewhere; perhaps you could post some more of the code, including the CFontDlg class definition.ps I also put your code in tags to make it more readable.
21 Aug 2008 by noxia
A sample application with source code in three .NET languages (Basic, C#, C++) on using the new (.NET 3.0+) System.Speech Class.
22 Feb 2011 by lfs09.cn
I get a mof file that define like as follow:class SetValuePackage{ [WmiDataId(1), read, write, Description("ID") ] uint32 ID; [WmiDataId(2), read, write, Description("value") ] uint32 Value;};//andclass testacpi{[WmiMethodId(4),...
19 May 2013 by Amit Deshmukh 1010
Accessing class object present in exe from explicitly loaded DLL using Inheritance and virtual function.
7 Nov 2011 by Coder Block
Hi All,I want implement MFC Docking Framework[^]in my existing mfc applicationi have take same trial but it gives me assertion like before execution of my project. in output window a text appears Like, "Performing registration" and after that came below assertion ...
7 Nov 2011 by Richard MacCutchan
You already posted this question here[^]. Please use one forum only.
2 Jul 2014 by Mohammed El-Afifi
Given an existing win32 application, how to provide COM automation capability to it?
26 Sep 2011 by Coder Block
Hi, I have created dialog based application in mfc without checking the context sensitive help radio button. Now I'am trying to implement context sensitive help for my dialog based application._______________________________________________________________________ALL RELATED HELP, LINK,...
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...
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...
25 Aug 2011 by crazybit
An asynchronous HTTP download class for C++
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!
20 Mar 2009 by SBJ
Introduction to an MVC Framework that integrates with the MFC Doc/View architecture
8 Oct 2009 by Chris Losinger
A simple class to animate the movement of child windows
29 Jul 2012 by simonchen.net
A useful skill to get rid of ATL, but do similar flexible architectures by yourself.
6 May 2010 by imagiro
A simple thread pool with minimal dependencies
10 Nov 2010 by Kozlov_Sergey
If you are using COM components, then you should register them.If you are using dynamic link to MFC, then you should intall libraries.
10 Nov 2010 by pal_hurkadli
Yeah We have copied all dependent libraries in the Non developer machine, still it is not working, and other plug-in applications without C# library reference were working fine on the same(Non developer) machines.
10 Nov 2010 by pal_hurkadli
Hi,We are implementing an acrobat plug-in using VC++.Net (VS 2008) MFC Dll application.We are referring a C# dll for hosting Infragistics WPF grid on the VC++ dialog(User interface). We created C# dll and plug-in application and added C# dll in acrobat.exe folder.Now the...
10 Nov 2010 by Abhinav S
Check that you have the right .Net framework (+ updates) installed on the non-developer system.
11 Nov 2010 by Nemanja Trifunovic
Check the linker settings for your MFC dll. If MFC and CRT are not linked statically, than you need to distribute them as well. One way to do it is by installing this: Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) [^]
15 Nov 2010 by pal_hurkadli
Yes, We tried by installing that "Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) [^] package", but still it is not working on Non developer systems. Please anybody solve this issue - and any other software we need to install for clr to make it work on Non developer systems
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...
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...
17 Feb 2011 by Stephen Hewitt
Thanks for the stack trace. Also, the exception type generated is often of use. In addition, since you're using the application verifier look at the debugger output window as the verifier will tell you what the problem is (via debug strings). To me it looks like you're freeing an invalid image...
3 Mar 2011 by Debojyoti Majumder
I am verifying my application installer with AppVerifier( selecting only the Least user privileged i.e LuaPriv ).I am having error "Access restricted to granted users only. Stop code 331B".Our application uses COM.We are storing our ProgID in the HKLM and corresponding CLSID in HKCR...
30 May 2011 by Jayant Narayan Dash
Hi All,i want to create a tool for password protecting any application before execution in windows platform.when an application is going to execute, before that i want to display a dialog box for entering password. if the password is correct then application will start execution, if...
30 May 2011 by Ciumac Sergiu
>>EDIT, the solution is obsolete as I though you are asking for .NET app, sorry.Kind regards
30 May 2011 by Jaadooo
--> right click on your edit control and set property 'Password" as true--> you can use database or .txt file to validate the password ie user entry in the edit controlis matching with the password/passwords given in .txt or databse--> if you dont want user to close window ( using...
4 Dec 2010 by h_seldon
A Win32 API non-blocking sockets implementation, client side.
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.
5 Mar 2009 by Ernest Laurentin
Full-fledged ATL Windowless ActiveX Container. Ideal for hosting Windows Media Player, Transparent Flash and Silverlight Animations.
11 Feb 2009 by WajihUllahBaig
A console program that captures audio but does not save it.
10 Feb 2009 by WajihUllahBaig
A console program that captures audio and saves it with simultaneous preview.
10 Aug 2011 by sks83
Hello Experts, Created a DLL using VC9.0 and trying to make use of that DLL in VC6.0/VC8.0. But it doesn't work as expected. Programmed in such a way that the compiler doesn't do any name decoration for the method names. I verified the DLL function names using "Dependency Walker"...
11 Aug 2011 by KarstenK
you need to link staticly and use undecorated names.And use GetProcAddress to get a pointer to the function after LoadLibary.Have a lot of fun... ;-)
15 Aug 2011 by sks83
Hi KarstenK,I am aware of linking a DLL statically and dynamically. But the problem here is it doesn't work in the following scenario,1) Created a DLL using VC9.0 in such a way that it doesn't do any name decoration to function names.2) Tried to make use of that DLL in VC8.0 or VC6.0....
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.
31 Dec 2009 by S p k 521
Hi Experts,Please tell me that how to change the caption of ballon tooltips that arrive from windows like when we are connecting a device a tooltip will popped up.Regards,Spk
7 Feb 2010 by Iain Clarke, Warrior Programmer
If you want to know how to make your own balloon tooltips / status area notifications, then read:http://msdn.microsoft.com/en-us/library/bb760252%28VS.85%29.aspx#tooltips_sample_statusbar[^]andhttp://msdn.microsoft.com/en-us/library/ee330740(VS.85).aspx[^]If you want to change other...
9 Apr 2009 by WajihUllahBaig
Capturing video from webcam and VMR9 windowless rendering with DirectShow.
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
29 Aug 2008 by Adrian Savage
Simulation in OSG using discrete events, a Ternary Heap and Interpolation
11 Oct 2013 by BrainlessLabs.com
In this article, we will discuss implementing conditional statements, loops and blocks.
21 Jan 2011 by Kozlov_Sergey
What building options should i use in Visual Studio 9.0 to use builded library in Visual Studio 6.0?
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...
21 Jan 2011 by Kozlov_Sergey
What building options should i use in Visual Studio 6.0 to use builded library in Visual Studio 9.0?
22 Jan 2011 by T2102
If you are not using MFC, it usually is not hard to upgrade from VS 6.0 to VS 2010. Just backup first and do incremental version upgrades if you can. That way it is easier to find documentation on the differences between versions. Going from VS2008 to VS2010, note that VS removes your...
22 Jan 2011 by Nish Nishant
Adding to T2102VC++ 2010 is far more standards compliant than VC++ 6 was, so you will probably need to do quite a bit of tweaking of your code. It all depends on how you wrote your code in VC++ 6.
21 Dec 2008 by Gopi Krishna Nuti
Code snippets detailing Interop programming in C# and ATLCOM
19 Feb 2013 by Debdatta Basu
Introduction to C#/C++ interoperability, and a performance evaluation.
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
8 Aug 2012 by Antonyxt
vtable modification and destruction event handling
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...
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) ) { ...
26 Oct 2016 by Shao Voon Wong
C++: Prefer Curiously Recurring Template Pattern (CRTP) to Template Pattern
16 Jan 2011 by Satheesh1546
Hi, How to call an https url using Wininet. I dont need it by using shellExecute.Please help me.Thanks,Sachu.
21 Jan 2011 by Steve Maier
Here is an article from Microsoft on how to do it.http://support.microsoft.com/kb/168151[^]
28 Jun 2012 by Sandeep Mewara
It looks like you want to ask this question to an author related to his/her article.I would suggest you to please use the forum present at the end of the article in order to reach author and get quick response. Rarely you will find authors reading this forum.Please post the same at the...
29 Nov 2009 by Krishnaaa
Hi friends, I'm new to VC++.I read a article named Capture Live Video from various Video Devices.I downloaded the sorce code of the article and after compiling it show three errors like fatal error C1083: Cannot open include file: 'dshow.h': No such file or directory.So I installed Microsoft...
29 Nov 2009 by Abhishek Sur
I think all those errors are coming because the program cant include dshow.h. Check the installation. :)
30 Aug 2010 by Zheng PF
I am writting a SDI media player in VS2008.In the project,I use a CDialogBar.It works very well in debug mode,but crashs in release mode. Problem happens when creat() function is called: int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) { if...
30 Aug 2010 by Uwe Keim
I would recommend to compile in release mode with debug infos so you can debug the release mode, too.Probably you know that variables in debug mode are initialized with zero/null automatically, whereas they have random values in release mode.CheersUwe
2 Oct 2011 by Ștefan-Mihai MOGA
How to center window in WIN32
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);}
4 Oct 2011 by Nick Kulikovsky
There is ATL CWindow method CenterWindow:void CenterWnd(HWND hWnd){ CWindow wnd; wnd.Attach(hWnd); wnd.CenterWindow(NULL); wnd.Detach();}
19 Jun 2012 by Binu MD
Change the default ICON of MFC applications
28 Feb 2012 by Gokulnath007
I would like to know whether the internet is available in the particular machine or not. how to find that using vc++ codes. Please help me..