how to add new dialog resource in visual studio to existing mfc project
Hi I wanted to add new dialog resource to existing .rc ( the project already has many resources added)but the problem when i add the new resource ( IDD_MYDLG) I cannot find it listed in the...
View Articleproblem with a c++ atl com class not being registered
I have an ATL com object that Iam calling from vb.net but it compiles fine in visual studio but I notice MMEmulator has no uuid from the idl file. The error I get when calling from vb.net is "class not...
View ArticleEasy Iterator question
can anyone tell me what's wrong with this?struct Vals { long Val1; long Val2; }; for (std::deque<Vals*>::iterator it = m_pMyDeque.end()-len; it != m_pMyDeque.end(); ++it) { dSum += *it.Val1; }
View ArticleLearning Win32 API: Managing Application State: Why template i needed?
Hello, everyone,I'm learning Win programming and there is a page, which discuss management of state of windows.Managing Application State (from Learn to Program for Windows in C++)At the end of this...
View ArticleVS 2012 Express for Desktop crashes on startup
Hello,I installed Visual Studio 2012 Express for Desktop 06/13/2013 (last week). It worked fine until today. Once the main page opens, after a few seconds, VS crashes, with the message: "Microsoft...
View Articleconvert char[] to unsigned short *
Hi all. I am front with a buggy error, while I tried to compile a VC2008 project in a VC6 environment, and I had this error:error C2664: 'swprintf' : cannot convert parameter 1 from 'char [512]' to...
View Article3 beginner's problems
Hi- I have these problems while debugging:1. it says the project is out of date2. it says it cannot find the file specified3. it says cannot support default -int.Thanks!
View ArticleCMFCShellListCtrl::OnContextMenu 'Delete' context menu handler does not work...
Hello,I have an MFC (VS 2010) application that uses both CMFCShellTreeCtrl and CMFCShellListCtrl objects in an Explorer-like implementation. After testing on Windows XP and Windows 7, I've discovered...
View ArticleVisual Studio 2013 Preview
Visual Studio 2013 Preview releasedhttp://www.microsoft.com/visualstudio/eng/2013-preview Visual Studio 2013 Preview Downloadshttp://www.microsoft.com/visualstudio/eng/2013-downloads - Wayne
View ArticleGet original exception within global handler set using...
Hi all,I have set a global exception handler in my application using SetUnhandledExceptionFilter. In that handler I would like to access to original thrown object. I have made some research to try to...
View Articleaccess violation runtime error
HiMy program was working fine for months until yesterday i just wanted to check a dialog resource ; this resource had a listbox and tabcontrol on it and i clicked on the tabcontrol in the design...
View ArticleWTL window created with WS_EX_CLIENTEDGE has border repaint problem
HelloWe have an old VC++ 6 application based on WTL 7.1. The client window is created with the WS_EX_CLIENTEDGE attribute. When we converted the project to VS2003, the "sunk' border is very thin and...
View ArticleHow To Use Resources In Windows Forms ( Visual C++ ) ?
I am having a problem using Windows Forms Resources in Visual C++ .I have created a Header File that contains my Form Class .Could you please tell me what should I do from the beginning ? How should I...
View Articleclass pointer to CString?
Can class pointers be converted to CStrings and then converted back again to class pointers?I have written a DLL that creates a class and returns a pointer to that class so multiple intances can use...
View ArticleDLL CString Return
I have written a DLL that creates a class and returns a pointer to that class so multiple intances can use the DLL at the same time with their own class.Several apps may be using the DLL at the same...
View ArticleHBITMAP to CBitmap
I adapted a class, CResampleBitmap, that could resample a HBITMAP. It has a follow prototype:HBITMAP CreateResampledBitmap(HDC hdc, HBITMAP hBmpSource, DWORD dwWidth, DWORD dwHeight, DWORD...
View ArticleConversion between native and cli
Hi,I need simple ways to do the followings:1) Convert managed string into native one.2) Convert native array into managed one.3) Convert managed array into native one.Thanks in advance.
View Articleusing wpf dll in c++
Hi,I created a C# WPF GUI and compiled it as a library. I have a c++/cli project I want to use it in - inorder to open the WPF window.How do I do it?ThanksSpaarvap
View ArticleC++ if-else stmt query?
I wan't to know how we can use the C++ function "if-else" to check if the value input to a variable is integer or not.I'm a beginner at C++ and if I declare the variables month and day (see code-block)...
View ArticleSHCreateItemFromParsingName analog on XP
I need to rewrite code which is using SHCreateItemFromParsingName function call, to work with windows XP.SHCreateItemFromParsingName is available only on windows vista and newer.I need to create...
View Article