#error : MFC requires use of Winsock2.h
I m using vs 2008 c++ compiler try to compile my code and it is giving error #error : MFC requires use of Winsock2.h.in that file in which i used socket API.c:\Program Files (x86)\Microsoft Visual...
View ArticleRegex repeated alternation
Using VS2013, in the following code sample, I have the repeated alternation "(?:(a)|(b)|(c)|(d))+"#include <regex>std::smatch match_pieces; std::string text = "acbd"; std::regex...
View Articleplease help with old WINAPI (16bit) / WIN32API knowledge: values for WINVER,...
Hi there, Can some one help me to complete my list about values of symbol WINVER which you can set.OS DATE WINVER= Windows 1.x: Windows 1.01 (11/15/85)...
View Articlegenerating dynamic Resource File in VC++
Hi Experts,I am a fresher in vc++. We want to generate dynamic resource file for VC++ where the data will come from database (Oracle).For an example, When a user log in the system, at that time if User...
View Articlehow to compile and run a program which has a class separated in a .h and a...
HiI have a main.cpp, a GradeBook.cpp and a GradeBook.h.I am using Microsoft visual studio 2010. I have made a win32 console application and I have added my .cpp files in 'source files' and my .h file...
View ArticleApplication Error - Faulting Module name: KERNELBASE.dll, version:...
I am developing windows phone 8 app on windows 8 machine x64bit environment, my VS2012 is crashing or myApp is crashing. I am totally confused i am writing the error logs frmo the Event Viewer Two type...
View ArticleTake error when build vlc with vs2010 in release mode!
I try to build vlc with vs2010 but it only works in debug mode. I'm so tired. It has been taking all week! Can anyone that issue? Help me please!Error 17480 error LNK1120: 124 unresolved externals...
View Articleusing Files inside program problem
//bankAccount.h file #include <string> #include"User.h" using namespace std; class bankAccount {private: string bankName; public: bankAccount(string="AUMBANK"); void AdminMenu (); void...
View ArticleHow can I determine the size of a Dialog Box which is larger than the CFormView?
Hello folks,I have an application issue where I permit the User to resize a Dialog Box based on a Font selection.I am having some difficulty in thinking through what else I need to manage.I want to...
View ArticleUpgrade to VS 2013 problems
I have an MFC program that was compiling and running in a trial version of VS 2012 with no issues. When the trial ran out I purchased but was only offered VS 2013. The same project compiles with no...
View ArticleHelp project removed from MFC
Please add a help system back into MFC. VS2010 is the last platform that supported Context sensitive help as part of the project. We have a huge code base based on MFC and plan to continue using it in...
View ArticleHow to get previous C++ version(s) to enable development, compilation and...
Hello, I have VS C++.net 2003 academic v. success on a (slow) windows XP computer (fine) but tried to use this on a Windows 7 (intel i5) computer but there were incompatibilities. So I paid an...
View ArticleMemory management in native c++ code(unmanaged)
Hi, I am using Visual studio 2010 for my c++ application. I was initially a C# developer and hence would love to get similar and at least some ease in memory management. Right now there are too many...
View Articlehow to handle whit this siutuation
Hi,I have a program that runs well except in one customer's computer.This problem will not cause crash so I can't get a dump file, is there any way to get the call stack information in his computer?I...
View Articleaccess violation during garbage collection
I have a set of managed dll's that work fine as a managed standalone program. But, I'm trying to use them from an un-managed application. When I do, once I've returned from calling my managed...
View ArticleDynamic struct array in C
Hello!I am very new to programming and I am at having problem with a school project where I am trying to make a struct that will hold a winner's name aswell as the year the winner won and I am trying...
View ArticleActive standby events not received by C++ Windows Services
Using the recommended PowerRegisterSuspendResumeNotificationI registered my service for resume and suspend notifications. These events are received correctly when sleep or hibernation is used. The...
View ArticleWaitForMultipleObjects() returns invalid handle
Windows 7, 64 bit, Visual Studio, C++Here is the code: event_triggered = WaitForMultipleObjects( EVENT_ARRAY_SIZE, mp_common_data->event_array, WAIT_FOR_ANY_EVENT, WAIT_TIMEOUT_VALUE ); event_1 =...
View ArticleMy first question (MFC)
Greetings everyone,this is my first post in this forum, so nice to meet you all.Now for my question:I just start to learn MFC, so I am a complete newbie. Before my question, I have to inform you that I...
View Articleenumerating device ids
I was wondering what is the best strategy for enumerating device id's for hardware for a new projectI have seen some code for a device manager like project, but I was more interested in a simple table...
View Article