[RESOLVED] What's wrong with this STL code
Compiled in 2008, gives error C2275, illegal use of this type as an expression in 2012 Code: template <     class tSTLContainer            // The type of STL container to copy. >...
View Article[RESOLVED] Disable controls and change window size
I have created an exam environment for our schools, it comprises of 3 files; a .kix file that says if they are in the examination group run a .vbs file. The .vbs file kills the explorer.exe task so...
View ArticleGetting Notification Message from an ASPX page
Is there a way an ASPX page can send a notification message to my IE Plugin which is developed in VC++?
View Articlereturn string length
Today we have run into a little problem, too tiny for me to have paid my attention to PHP Code: int processString(xxx) {    //do something    return non-null terminated string length } to make the...
View ArticleClip Child Window ?
Hi guys, is it possible to clip a child window. Let's say my child window is 400x400 pixels but I only want to show (say) the top left 100x100 pixels. I know I can just resize it but it's a Direct3D...
View ArticleURLDownloadToFile() not working?
Hi, In a program I've written I'm using the code URLDownloadToFile(NULL,source_location,target_location,0,NULL) to download a small file from source_location on the internet to target_location on disk....
View ArticleTemplate list
Write your question here. Hello, I'm doing a homework aasignment on templates, and i have to build a list. The problem starts when i am trying to add elements to the list. For instance if i chose to...
View ArticleMFC execute DOS program & resume code when DOS program ended
Hi. I have a Third Party MS-DOS program, RUN.EXE RUN.EXE do the following: 1. Read FILE.INP as input file and run its code execution. 2. When finish, RUN.EXE will produce FILE.OUT as the output of its...
View ArticleNow what's wrong with this STL code
Same code as last thread but different error message. I went from VC2008 to VC2012 and I'm getting this error. Not sure why. Previous error was fixed by #include <iterator> on a different...
View ArticleMarrying MSVC with waf
I work on a project that I currently build with the traditional MSVC IDE. But the company I work for wants me to look into building future versions with waf. This is mostly for consistency. It's a...
View ArticleNovice: converting C++ code to CLI Form application
Starting out with Visual C++, so questions may seem rather trivial. As a starter project I want convert a Neural net app from "AI Techniques for Game Programming (2002 Buckland)" to a Visual C++ CLI...
View ArticleVisual studio C++ 2008 MFC quiz app
I've been trying to make a little quiz application that takes questions from a file and them presents question by question on a static pannel, a few buttons that have the possible answers on them...
View ArticleHow to bring the slider to the position user clicked the mouse.?
Hi, I have a dialog control where I am using a slider control. I have handled the notification messages sent by the slider control. When user clicks on the slider, the slider moves in steps. I want to...
View ArticleHow to move the video forward/backward when user drags the slider bar.?
Hi, I am working on a project in which I use DirectShow to Play / Pause / Stop the video. I am using slider bar to show the progress of the video. As the video starts playing, the slider bar moves in...
View Article[RESOLVED] unresolved externals??
ok, I've gotten this problem before, but usually when I erase everything, and completely re-write it it works. but I don't feel like doing that again, I want to know why it's not working (and I have...
View ArticleCanvas like MS Paint
Hi, Whenever we open MS Paint we see selected white background on which do the paint. So, I would like to know what we call it and how we can create the same canvas using Visual C++. Please provide...
View ArticleObtaining actual effective execution time per thread with hyperthreading
Hi! I'm looking for a function like GetThreadTimes, but one that gives correct results in a hyperthreading CPU. For instance, if you start 2 threads on a CPU with 1 physical core and 2 logical cores,...
View ArticleHow to convert time into CTime format in mfc.?
Hi, I have total time in seconds (say 2500 seconds). I want to store this time in CTime or CTimeSpan format.? Anyone have any idea, how to do this.? Regards, Mbatra
View ArticleGetDIBits question.
sorry, I hate posting 2 questions about the same (or, at least, similar) topic, i thought i had my getpixel issue solved... but... I didn't so I'm trying to use GetDIBits, since I am capable of taking...
View ArticleProblem with LoadBitmap using MAKEINTRESOURCE
Im using Visual Studios 2012 using c++ I have been trying to load a bitmap from my resources Like this Code: HRESULT DemoApp::CreateDIBFromResource(HWND hWnd, HINSTANCE Instance, LPCWSTR ImageID) {...
View Article