Advertisement

635 organizations, including eBay, Ericsson and Lockheed Martin, now work smarter with Corporate Accounts. Save up to 42%

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested Windows MFC Solutions: 176 - 200 of 3999
 
I am going to use CListCtrl in a MFC Modal Dialog to list the invoice items to the user. I initiate the column of CListCtrl in the OnInitDialog stage and successful. And I try to update the co...
Hi All, What is difference between Sleep(C++/C) and DoEvents(VB) Thanks Sudhakar
CreateProcessEx is a function that extends CreateProcessEx a little - it minimizes the main app window while the external process is run, and then maxamises it again when it finishes. This ...
I am doing a poject in Win32 App that uses CListCtrl class.I want to know how to handle the double click event on items and know which item the user clicked on. Also when the user double click...
HowTo use enum the right way? eunm MyEnum {   a=0;   b,   c,   d }; ... enum MyEnum LastValue; ... void CMyClass::MyFunction(enum MyEnum NewValue) { ... } if I write " LastV...
how can I get the current mouse position(x,y) (relative to screen) without tracking WM_MOUSEMOVE message ?
HIya I have an application, using MFC, which is generating memory leaks. There is a lot of dynamic memory allocation but I belive I have dealt with deleting these at the end of the applicat...
I know that I can't use a CString in a switch statement, but I only need to do a comparison against the first letter of the string.  I can not figure out how to take the letter from the CStrin...
Hi, I have a simple task. I want to display a modal dialog invisibly. User will not be able to see/click on the OK/Cancel button. And some events will call EndDialog so the app will not hang. ...
I'm trying to write using CFile. CFile cf(L"C:\\Text.txt", CFile::modeWrite); cf.Write(m_values, m_values.GetLength()); cf.Close(); When I write out the file it comes out like this: ...
Hello everyone, I need to do a simple task but I'm stuck with one problem. I need to open Microsoft Excel and read it's custom document properties from C++ (MFC). I was able to connect...
I download some sample project from www.codeproject.com, when I compile, there's an error said that: "Linking error, can' t not find mfc42ud.lib", where can I find this file, how to make these...
How TO save the Clipboard's BMP  data as  Gif  or Jpg file? first ,I copy a image to Clipboard,and then I want to save these data to a Gif or Jpg file. I need some source codes or good idea....
How do use MFC to check if the current user has write access to a directory?
I have a dialog with 2 buttons (plus many other controls), each with a CButton bound to it (m_btnOK and m_btnAND). Depending on what the user has done so far, I want to change the default but...
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 ...
Hi All, Can anybody explain me why any of SendMessage or PostMessage functions are not working on Button?? Do I made any mistake?? if( YesWnd != 0)           {                                           h = YesWnd;                //S...
I have a CButton that I want a bitmap on. CBitmap m_bmpMyBitmap; CButton m_btnMyButton; m_bmpMyBitmap.LoadBitmap(IDB_BITMAP1); m_btnMyButton.SetBitmap(m_bmpMyBitmap); This works fine until ...
Hi, I'm having a MFC Dialog application that has an edit control (CEdit). This control can accept a maximum of 250 characters. This control is multiline and can accept a maximum of 40 chara...
Here is what I do in the OnSize function of my dialog: void CNewwindDlg::OnSize(UINT nType, int cx, int cy) {      CRect rect;      int nx, ny;      GetWindowRect(&rect);      nx = (cx>=220)?cx:220;      ny = ...
Hi Experts, I am writing small VC++/MFC application, Application has edit box controls for Username, Password, and Path of Folder. Now i wants to check whether USER  i have given , has the ...
I have a program built for ANSI character set, not Unicode (since it needs to run under Win9x).  However under NT family I want to allow the user to enter a Unicode string.  If I create an edi...
I have downloaded the TWAIN SDK from the twain org website, but am having a heck of a time understanding it all.  I want scan a small image from my scanner and use the newly acquired bitmap in...
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...
Hi, I develop in VC++ 6 in MFC. My question is: How do i hide the Title bar and the menu bar in MFC MDI application? Thanks Guy