Time for your 3rd Quarter Update! Are you in the running for the 6th Annual Expert Awards? Click the link to find out.

Third Quarter Hot Shots
 

Having problems asking a question? Have a general question about Experts Exchange? Let us know!

 
Time Tested Windows MFC Solutions: 201 - 225 of 3409
 
Hello Expert //If  I have: CString my_string = "day=monday"; // and then I would like to drop "day=" // to leave the string just like // "monday" // // How cai I do that? // Ma...
I think I need the "big picture" explanation of this stuff.  Here's what I want to do:  I have a VC++ 6.0 / MFC application which uses OpenGL to spin a 3-D object around in a window.  Now I w...
I want to create an IsNumeric(CString) function. I have some code that seems to work, but since I am new to c++ I want to make sure it is the best way to do this. BOOL myClass::isNumeric(CS...
Hello, It has become necessary to send a user defined message. I intend to do this using SendMessage(). I can obtain a handle to the CWnd I want to send the message to. In essence, I...
I am getting the following errors below when i select the character set as "Unicode".  It however works fine on a seperate project. I made sure that all the project properties were same but I ...
I have a 2D array of grayscale values (0-255).  I would like to use them to create a CBitmap to display in a dialog. How do I use the CBitmap initialization functions to create a grayscale ...
The whole issue of brushes in MFC seems opaque.  I understand the concept of catching WM_CTLCOLOR, or the reflected =WM_CTLCOLOR in a subclass,  and then passing back a custom brush you'd like...
Hi... I'm a VB programmer learning C++. I have an application I am writing which I want to read the values in an ini file on init...the code I am using is as follows: // CWtpautoApp initiali...
I have a dialog based MFC application (Visual Studio 2005) which serves as a user interface for a piece of equipment.  Before any of the controls in the user interface are useful, the applicat...
As soon as I modify my stdafx.h to define _WIN32_WINNT as 0x0501 (WinXP) instead of 0x0400 (Win2000) I get the following errors when I build. c:\...\afxwin.h(3292) : error C2061: syntax err...
I'm writing an ActiveX control. I must know when the mouse leaves the area of my control. I wrote the following function to track this event: void CNMButtonCtrl::SetMouseTrackEvent() {      T...
I am creating some Java program and I want to create small installer for Windows. Inside that installer I need to have some part that create's an shortcut and assign it with some JAR file, get...
I need to convert the currently selected item from a combo box into a cstring, int, and float. What's the best way? For example,       int selectedIndex = myComboBox.GetCurSel();     ...
I have to do a simple assignment for a class that requires the user to be able to give the parameters of a rectangle or circle and have them draw on the screen.  I am done with it except for o...
Hi How to enable ,Disable         Minimize/Maximize/Close Button in a Single Document application after the  application has started.(Not through PreCreateWindow)
I'm having trouble implementing a CListCtrl with drag&drop support.  The problem is I can't seem to get the CListCtrl registered as a drop target.  I'm NOT using Doc/View Architecture so I hav...
Hi, I want to save a file name in a text file this file name is stored in a variable of type CString i.e. ofstream outFile; CString dll; outFile << dll << '\n'; please please I ne...
In BITMAP structure... there is one long pointer called bmBits. I would like to have more explaination on what is the content of the memory pointed by bmBits. Is it the color of the pixel ? ...
Hi. What I need to accomplish: If user is typing something in any other running application, like for example in Notepad, I need to get tranfered whatever is typed in the CEdit control of my...
Since I'm new to this, I'm sure I'm not giving enough information about my problem.  I just don't know what information I should be giving!  Please let me know what I'm missing in this code, o...
    In Win32 API, I get the path and filename the user select by sending the message CDM_GETFILEPATH:           SendMessage(hListbox, CDM_GETFILEPATH, iSize, (LPARAM) szFileName)  in ...
I am developing VC++ by using Visual Studio 6.0... someone has been changed my computer setup (I don't know who and I don't know what they changed...) I cannot execute any mfc projects (my p...
Hi.  I'm writing a group-box class that inherits from the MFC CButton class, using the BS_GROUPBOX button style.  I've been trying to figure out how to change the group-box border color but ha...
How do I convert a char array to a CString in Win CE? The following code only copies the first 126 character of buf into tmpStr. char buf[512]; loadBuffer(&buf); // fill entire buf with d...
I have a tree control with a matching CTreeCtrl object contained in a CPropertyPage-derived class.  The tree control has check boxes using the appropriate tree control style flag.  The idea is...