[RESOLVED] Has anybody figured out how to run 2012 apps on XP
Installed 2012 last week and apps won't run on XP or 2003. They give a message "Not a valid Win32 application", or something to that effect. So if I set the platform toolset to Visual Studio 2012...
View ArticleOnLButtonDown not getting called on Slider control in MFC.?
Hi, I am using a slider control on a dialog box. I have handled OnLButtonDown for Slider control. But I wonder its not getting called whenever I click on the slider thumb, instead it gets called when I...
View ArticleCalling default in OnNcPaint defore my painting paints over mine?
Okay, this is been bugging me for the past couple of days. I'm overriding OnNcPaint to do my own caption painting (in a dialog box). If I call "Default" before I do my painting, the default caption and...
View Articleoutput error
the frequent answer by the user input didnt match with the out help please #include<iostream.> using namespace std; int main() { int num[7]; cout<<"answer all question.1,2,or...
View Article.dlls in visual studio c++
When you are using a generic library that comes with .libs, .h headers, and .dll's, you configure a new project and point VC++ to look at the directories configured in the project properties. But where...
View ArticleVisual Studio Debug vs Release "Start Debugging"
Is there something inherently wrong with using the "Start Debugging" feature in Visual Studio C++ when in Release mode? Die to unrelated problems Debug mode has been disabled in my Visual Studio. I can...
View ArticleIBaseFilter in FFDSHOW
Hi, I have an app using DirectShow. There I connect to ffdshow by this code Code: HRESULT hr = S_OK; CComPtr<IBaseFilter> pH264 = NULL; CComPtr<IUnknown> pIUnknown; hr =...
View ArticleWhat is VS default color?
Hi, ALL, In VS 2010 the editor is using tabbed interface. By default the currently selected tab (active editor) shows as mettalic color. Does anybody knows what is the color value used there? I need to...
View Article[RESOLVED] memcpy error in MFC
Hi, I load an image(768*256) using a file path(OpenImageFilePath). After load an image, I start to read the loaded Image data using GetBits method and plot the same image data(768*256). I'm using the...
View ArticleHelp me to make a program!
Hello to all. I am not a programmer, but i really want to make a shutdown timer for pc. I know there are many of those timers, but neither of them doesn't have a option that i really need, so i decided...
View ArticleInsert Common Control into View Dynamically
Hi, This is what I try to achieve: 1. Using a CScrollView as the View class type. 2. Using Document/View Architecture. 3. Insert multiple Common Controls such as CEdit, CButton, CListCtrl into the View...
View ArticleCan someone explain me how does the common_prefix function work?
It's about a cpp implementation of acyclic FSA, the algorithm from Daciuk & Watson. http://acl.ldc.upenn.edu/J/J00/J00-1002.pdf Here a part of the algorithm: Register := empty; do there is another...
View ArticleUDP bind to define which source port to use
Hi. I am trying to define which source port my program will use to send a packet from. I am able to define which port to send to, but not from. I'm sure it is possible but I don't know what exactly to...
View ArticleCall Sub From mdiForm in Form1
I have MdiForm and Form1 as a child Form1 has a menu 'mnuClear' Sub mnuClear_Click MdiForm a button Clear Can you click on the button from MdiForm call sub mnuClear_Click in Form1 Sub mnuClear uses...
View ArticleCreating a Function That Needs To Determine Perfect Scores
:confused:This program is incomplete as I am having difficulty creating the function that needs to find the number of perfect scores entered by the user. I have everything but the function complete...
View ArticleM4
I'm building a GNU library which uses an obscure 1970's macro language called M4. Actually, it's probably not so obscure really. I gather that it's relatively common with code that's intended to be...
View Article[RESOLVED] Calling default in OnNcPaint defore my painting paints over mine?
Okay, this is been bugging me for the past couple of days. I'm overriding OnNcPaint to do my own caption painting (in a dialog box). If I call "Default" before I do my painting, the default caption and...
View ArticleHow x86 processor and VS 2010 handles wide char arrays endianness
Once again I'm confused. Take a look at this code. Code: /// display the wchar_t array void printwbytes(wchar_t * pwc, int nsz) { printf("\n"); for(size_t i = 0; i < nsz; i++)...
View ArticleDoes anyone here understand DUMPBIN outout ?
I'm building a DLL using VC++8 (Visual Studio 2005). Let's call it Dll-A. It gets linked to the symbols library for another DLL (let's call it Dll-B). My Debug version builds fine but when I try to...
View Articlewriting and reading bytes - a Visual Studio issue ?
I have used the following code to write and read wchar_t bytes from a disk file: Code: int WriteBytesW(wchar_t * wcp, int nsz, wchar_t * wcfilepath) { wfstream wf; codecvt_utf16<wchar_t,...
View Article