afxwin2.inl line 265
I have an MDI, where I have an dialog bar. There, I have an extended ComboBox. On OnCloseUpCombo event, I want to display something on CDialog ... but soon as CDialog is close up, I have ASSERT error:...
View ArticleNeed of Assistance #2
Hello again, I am currently writing a program that grabs information from a .dat file. When I go to debut I get this error. Code: #include <iostream> #include <string> #include...
View ArticleC++ , MFC and create folders in Outlook
Hi Everyone, I am wokring on a project that has used an MFC DLL in conjunction with Outlook to send and archive mail. I need to be able to create folders for integration from an older mail system. I...
View Article[RESOLVED] C++ , MFC and create folders in Outlook
Hi Everyone, I am wokring on a project that has used an MFC DLL in conjunction with Outlook to send and archive mail. I need to be able to create folders for integration from an older mail system. I...
View ArticleAre these static variables local or global ?
I came across the following code today and I was a bit surprised that it worked:- Code: std::string func_A () { static std::string x; if (!x.empty()) return x; else...
View ArticleNeed of Assistance #3
I am writing a program that grabs information from a .dat file. I have the code all structured up, but I get these 2 errors that does not make any sense to me on how to fix the program. Am I missing...
View ArticleSize from CImageList
The documentation states that "An image list is a collection of same-sized images" (http://msdn.microsoft.com/en-us/library/9xc4z2c7.aspx). But how do I retrieve that size? I have a pointer to an empty...
View Article[RESOLVED] error C2143 & error C2433
Hi all, I am running a cpp file that uses the file DATECL.H below but I receive the following error messages : Quote: \Test\datecl.h(221): error C2143: syntax error : missing ';' before '&'...
View ArticleDebug Assertion Failed! due to the use of ifstream
Hi all, I am trying to run the code below but I receive the following error message : Quote: Debug Assertion Failed! Program: C:\Test\Debug\Test.exe File: c:\program files\microsoft visual studio...
View ArticleUsing 2D Array - Displaying Bitmap Image with Scrolling
Hi, My requirement is, Read *.bmp image and displaying bitmap image with scrollbar in a MFC dialog application. I was done using this I was read the *.bmp image as a pixel data and stored by 2D Array,...
View ArticlePrompt "New file" procedure
Hi, I currently have a program where, by either pressing Ctrl+N or by going to "File->New" in the menu a new file is prompted. However, there are cases in my program where I would also like the "new...
View ArticleBuilding a savings account program?
#include "stdafx.h" #include <iostream> #include <iomanip> #include <cmath> using namespace std; int _tmain() { // declare variables int principal = 1000; double rate = .03; int years...
View Articlelink/build app
when I linked my mfc single document app to a 3rd static library, in debug mode it gave LNK 2005 errors. In debug when I switched the run time flag to /MD it gave me couple of NODEFAULTLIB:library...
View ArticleProgram runs ONLY if debugger is attached
I have an interesting (and incredibly frustrating) problem where my application runs fine, but ONLY when a debugger is attached to it. I can build in both Debug or Release and double clicking the...
View ArticleFile Dialog Issues
Hi I have a problem that I don't understand yet. Someone here might be able tell me what to look for. The problem is related in to the open and save file dialog. I am learning the windows API for the...
View ArticleLow-Level Keyboard Input Detection
Hey there, I am writing an software that should be able to detect all keyboard inputs by the user. i.e., both hardware and software/on-screen keyboard. This software is going to be written in a...
View ArticleC++ Program that reads numbers from a file and calculates the average of them
https://gist.github.com/anonymous/9536644 Here is my code and basically these are the steps. I feel like we have something good to work on but we keep getting errors. Literally any amount of help would...
View ArticleNeed help for converting some code to x64 platform
Hello, Could anyone please convert the following code snippet to the x64 platform? Code: #define DBG_HALT __asm{ int 0x10 } #define DBG_ASSERT(exp) {if ( !(exp) ) {DBG_HALT;}} //#define THROW(exp) {...
View ArticleCButton SetCheck problem with Unchecking
One small problem is heating me up so finally posted here to get the solution. As the thread name, Im trying to Uncheck a Checkbox control with following code. Code: else if((point.x >=...
View ArticleNew to C++ need help with assignment.
This is my assignment and I got this far with it so far. I was curious if anyone could give me a hint as to how I could solve the problem of adding 1 extra bagel per every dozen bagels and also giving...
View Article