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: 151 - 175 of 3999
 
Hi Experts,  I want to write a filter driver to intercept all the file IO requests.  I also need to identify the invoking application, type of request, the target file requested.  Using th...
Hi experts, I'm in testing phase for my application(using MFC), the application still builds in Debug mode(not Release mode), and when I run it from .exe (not in VS IDE debugger), sometimes I...
Hi, I am having an MFC - SDI application. I added a slider control to the main window (not in a dialog). Actually I wanted to add it to a toolbar. I did add it to a toolbar, but when I a...
how can I get the HDC from a CDC object. I know it is storing in m_hDC, but how to get the HDC. help please. Thanks
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...
Ok.. this is one of those things that *should* be totally trivial.. i've spent two days now trying to do it.  I'm relatively new to MFC, and so I'm sure its just that I'm not doing something c...
Hi,  I am working on a ClistCtrl object that has a header. How can I change the height of the header as well as the row height of the items in the list? I tried Thanx.
    HBITMAP     hBitmap;      hBitmap = (HBITMAP)LoadImage(NULL, "c:\\1.bmp", IMAGE_BITMAP, 0, 0,   LR_LOADFROMFILE | LR_CREATEDIBSECTION | LR_DEFAULTSIZE); m_Picture.SetBitmap(hBitmap); i use above...
Hello, I was wondering if someone can provide me with an example on how to write/read from the registry using the CRegKey class.  I have never worked with the registry so please provide as ...
I'm having the hardest time deciphering MSDN's explanation for using CCriticalSection. Suppose I have a class with an internal thread method, called by a static "thread starter" method: ...
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...
I have a MFC MDI application.  I wish to change the way it behaves under certain conditions.  For instance, I want it to change its behaviour to simulate a Dialog based application while stayi...
Hello, I am making an application that disable USB storage device on one PC. i have edited the registry to do this. SYSTEM\\CurrentControlSet\\Services\\USBSTOR\\ set the value of start to...
Hello ! I am playing with CTime, and am having a lot of fun !  However, I cannot see why this works. Excuse the lack of experience please :) CReminderDlg dlg; if (dlg.DoModal() ==...
Hi, Here's code i use to get file size from specific url : //--- begin calculating remote file size ----- char     szSizeBuffer[32]; DWORD          dwLengthSizeBuffer = 32; HINTERNET     hFileInfo; ...
Is there anyway to aply a mask over the cursor bitmap to change its color??
Hi, actual I build a dynamic popup menu with AppendMenu.But now I need to add a item with a submenu.How I can do this (This new item with submenualso need to build dynamic). Ingo
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...
Hello all, I am getting quite frustrated for the linking issues in MFC. I am actually new to MFC. Any advice will be highly appreciated. I use a third-party library which only support ...
Dear all, I am developing an application using MFC VC++ Version 6.0 on Windows 2000 platform. The purpose of this application is to delete all the created files/folders (created/copied-past...
Hi, in my application, at lot of places i need to convert a cstring or wchar_t* to char*, hence i wrote a function in a cpp file, not belonging to any class such as: char* ConvertWCHARtoCHAR...
I'm using OnToolHitTest to fill tooltip. The text inside TOOLINFO->lpszText contain \r\n to begin new line but it doesn't start new line. Isn't it the way to start new line in tooltip?
Hi, On a win32 operating system, what's the max amount of RAM you can have, 4GB? What's the max amount of RAM a single process can take advantage of, 2GB? Thanks
hello again, 1. how can I remove an item into a list box and combo box, assigning an index and getting the value of the selected item? m_list1a.AddString("item1"); m_list1a.AddString("ite...
I downloaded the "chatsrvr" mfc aplication from the MSDN disks. When I tried to build the executeable I got the error: LINK : fatal error LNK1104: cannot open file "mfc42ud.lib" I have...