Compilation error to add a "winapifamily.h" in a project VS C++
Hello!I have a project in VS C++ and when I add a library called "winapifamily.h", in the project appears a lot of compilation errors, sintaxis errors, i dont know, its like if I add a library and...
View ArticleATL project merging proxy-stub code
HiI have an ATL COM project which originally started life in VC6 and has been upgraded through various versions of Visual Studio to VS2010. I'm now trying to upgrade from VS2010 to VS2012 but am having...
View ArticleII7: ISAPI Wildcard Extension generates 500 error (0x8007007f)
I've written an ISAPI extension using Visual Studio 2012 on windows 7 that is a very simple passthrough wildcard extension. When compiled as 32 bit, and with the app pool set to allow 32 bit...
View ArticleDouble-Click in MFCShellList
Hello.I have a MFC ShellList Control and a FileOpen().When I double-clicked an item in MFC ShellList, Windows OS is executed that. I Wish, When I double-clicked an item in MFC ShellList, get a whole...
View ArticleHow do I fix this error?
I wrote a program to add two matrices. The program I wrote takes in the number of rows and columns (max columns is 50) and then adds them. The 2D arrays required are initialized dynamically. However,...
View ArticleScreen shot
I am trying to capture an image using screengrabber{ // Capture the window to a bitmap. COXScreenGrabber ScreenGrabber; CWnd m_wndMDIClient;...
View Articlesyntax error : unexpected type 'HFONT'
Hi,I am trying add a Dialog into the MFC ActiveX Project on a 64-bit OS. After adding it from the "Add Resource", I add the class for the dialog. Once the Dialog class is created, if I compile the...
View ArticleRoadmap for ISO C99 support
I haven't seen the roadmap for C99. It would be of great interest since portability in embedded software is important and many compilers support C99 whereas Microsoft does not.It is good practice to...
View ArticleHow to read from a text file in a windows form application (C++)
Hi, i'm new to the whole windows form application in C++. I want to make a simple app that prompts the user to enter his name. The app should open a text.txt file and output the corresponding mobile...
View ArticleLambda taking std::unique_ptr by value does not compile unless it captures...
#include <memory> int main(){ int makeitcompile; [makeitcompile](std::unique_ptr<int> ICompile){}; //<--- This compiles. [](std::unique_ptr<int> IDoNotCompile){}; //<--- This...
View ArticleService not executing task
I got the sample from here: clickAnd just changed this:void CSampleService::ServiceWorkerThread(void) { // Periodically check if the service is stopping. while (!m_fStopping) { // Perform main service...
View ArticleI need code for a basic window
I'm starting to build up my reference library and I was wondering if anybody could show me the code for making an empty window in C++ to put the program in.
View Article/clr:oldSyntax to /clr conversion
Hi I was converting VC++ project from Common Language Runtime Support, Old Syntax (/clr:oldSyntax) to Common Language Runtime Support (/clr). 1) I got an error saying "error C3699: '*' : cannot use...
View ArticleCHttpFile::QueryInfo - possible bug with HTTP_QUERY_EXPIRES
After sending a successful request with a CHttpFile object and having read the data, I then want to use QueryInfo to read the response headers and find out expiry info. If I callCString sText;...
View ArticleAbout FormView nested in a dialog of a project based on SDI Project
Hi EveryoneBasic topic: I want to construct a nested formview in a child dialog of the SDI ProjectI build a SDI project on the base class of CFormView, and construct two dialog class :one class is...
View Articlehow can I receive messages (line by line) through serial port from...
Dear friends,I have programmed a small form for receiving messages from a microcontroller through a serial port.when I use readline() method in the event of clicking a button (open port), it can...
View ArticleMenu
Hi, I'm making math programs, and i have no idea how to make a menu. I know how to do the math, display, etc. I have previously worked with ti basic, so I'm looking for a menu similar to that kind.
View ArticlePopup menu not showing
Hi,I have a modal dialog with a list control. Right clicking one of the items in the list control, shows a popup menu. Clicking this popup menu, opens another modal dialog with another list control.My...
View ArticleCDateTimeCtrl DTS_UPDOWN display issue
Hii am displaying a CDateTimeCtrl. i create it with the following styleDTS_RIGHTALIGN|WS_TABSTOP|DTS_UPDOWN|DTS_APPCANPARSEsometimes when the control displays, its up/down buttons are not shown and...
View ArticleManaged C++: Build a Custom NumericUpDown Cell and Column for the...
Hello everyone,I'm trying to follow the instructions from this MSDN article to create my own DataGridViewNumericUpDown cells and columns. The only problem is this: I'm using Managed C++!!! Not C#!!!So...
View Article