Sorting functions, Linear & Binary Search
#include <iostream> #include <string> #include <fstream> #include <cstdlib> #include <ctime> #include <iomanip> using namespace std; int searchList(int asciiA[],...
View Articlewhen using while loop in the program, the application is not existing
I have created an application in visual studio 2012 c++. The idea is to read the data from the serial port and to change the color for the label accordingly.I have used while loop to change the color...
View ArticleRibbon is not displayed using feature pack in VS2008(VC++)
Dear folks,If I run the application via Visual Studio 2008 IDE environment then ribbon is displaying good. In case of , If I built the EXE in debug mode and invoke the EXE then ribbon is not...
View ArticleContinuous mouse click event generation
Hello All,MFC: Is there any event generated by continuous mouse click i.e.,not releasing the mouse button?If no, please let me know.BN_CLICKED is only received when the button is pressed. Now after...
View ArticleEnumFontFamiliesEx() not working correctly
I just need the exact set of fonts and font styles that show up in Notepad. I am pretty sure that this is also the exact same set that shows up in CFontDialog. Apparently it is not quite possible to...
View ArticleHigh quality image printing from native Internet Explorer print dialog
Hi,I'm trying to print image using native IE (9 and higher) print dialog.I would like to render it according to current selected printer resolution.I use class that inherits COleControl, and trying to...
View Articleerror C2664
Hi ,I'm migrating a project from vs 6.0 to vs 2008, Microsoft forums is my goto place whenever I'm left without luck on fixing issues. Here's one error which I've been facing for long, I really don't...
View ArticleDirectX 10: D3DX10CreateEffectPoolFromFile and D3DX10CreateEffectFromFile....
Hello,First off, I'm new to msdn and I'm not sure if this is being posted in the right place, but I've checked through the categories and nothing came up that suited this better.I'd like to know how to...
View Articleerror C2664: '_com_ptr_t::_com_ptr_t(int)' : cannot convert parameter 1 from...
Hi, I'm migrating a project from vs 6.0 to vs 2008, I get the following error, I am not able to fix this issue and I could not understand why this is throwing a bug in vs 2008 while the same is working...
View ArticleLocalize a MFC-based DLL?
Hi,I use Visual C++ 2008 to create a DLL which is statically linked with MFC. Now I need to localize the DLL so that it supports both English and German. I read the article...
View Articlehow to get the recommend resolution (native resolution)?
current day I run into the resolution problem. I need make sure the current resolution is the recommend resolution when the user using the window8 . if it is not. I need tell him please use the...
View ArticleVS 2013 error LNK1104: cannot open file atlsd.lib
I'm trying to get a VS 2010 C++ ATL based dll to compile in VS 2013. I'm getting the following link error: <o:p></o:p>error LNK1104: cannot open file atlsd.lib I've not been able to find...
View ArticleWhere is the Module Definition Template in Visual c++??
I'm brand spanking new to Visual C++ 2010 Express - and I'm aiming to use to create an Excel Spreadsheet that has C++ working in the background (would like the advantages of C++ code combined with the...
View ArticleSpeak SAPI error 8004503a when using SDK 11 in Win32 Project on Windows 7 64 bit
I am running Windows 7 64 bit Enterprise SP 1 and Visual Studio 2013 Express. I have the Windows SDK, Kinect 1.8 SDK and the Microsoft Speech SDK installed.I only have a problem with Speak when trying...
View Articlequestion about visual c++ MFC message handlers and queues
the question is simple and complex at the same time suppose i have two applications connected thru REGISTERED messages i can [and usually do] add a message handler and a a entry of the...
View Articlesetting up GLEW in visual studio 2010?
1 down vote favorite I have visual studio 2010 and i want to set up glew.h on it. i do this step but still i have linker error: 1.download glew pack 2.copy .h files to C:\Program Files...
View ArticleHelp for DrawString() API
Hello,I am using DrawString() API to put the string on my UI text display control.When I am using SBCS string with Black brush, I am getting correct display. But for DBCS(MBCS) string, even with Black...
View Articlecout problem
hi,all, I am using GAlib and encountered a cout problem. The example program uses 'cout' to display msg in a console:#define cout STD_COUT #define endl STD_ENDL cout << "the ga generated:\n"...
View Article[GDI+] Drawstring how to overwrite or remove ?
Hello.I use drawstring from gdi+ to draw strong on progress bar.But i want to change value on progress bar.So when i drawstring again, then i have two strings drawed on progress bar.I make graphics...
View Articleerror C4772: #import referenced a type from a missing type library;...
HiiiI am migrating my application from vc++6.0 to vc++2008I am getting this error C4772 in one of the header file , Below is the code line:// define same types to be used in ICusomImportImpl.h out of...
View Article