Advertisement

Experts have come up with some helpful tips for getting a solution to your problem fast.

 

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

 
Time Tested Windows MFC Solutions: 26 - 50 of 3999
 
I am trying to tokenize a CString and was using VC++6 at home while at work I am using VC++5. I spent a lot of time at home coming up with this algorithm to tokenize a CString that looks like ...
Explain me what exactly is the difference between LPCSTR. LPCTSTR and LPTSTR. Why do we need to use the syntax shown below to convert a string into a LV_ITEM structure variable pszText. The...
Hello, Can anybody help me providing ten (10) - fifteen (15)  good interview questins in MFC (excluding COM)? It's urgent! Thanks pbsmbc
Hi all,   I have created a sample win32 console with mfc support by  using Visual Studio 6.0. I could not load jpg file onto a dialog box as a background. I am able to load "bmp" as backgro...
hi i'm looking for MFC tutorial like Scribble but in Visual Studio 2005. I found the scrible tutorial only in Visual Studio 6.0. Is there a Scribble tutorial in Visual studio 2005? Do you...
Dear All, I am working on image processing alogorithm. I wanted to fill the sequence of numbers in cvArr or cvMat data structure. Please let me know what is the possible solution for th...
Hi I want to find the path of Recycle Bin Folder and original path of files and folders that are in recycle bin. or complete path of files and folders with recycle bin. Please reply ...
anyone? i need some sample codes.... i need to get the IP address of my PC using C++
Hi, I have problem with creating windows service...I write a program which is trying to run another exe file as a windows service...However, I keep getting 1053, error code, when I attemp t...
Hi all.  I haven't really ever done any Windows programming before a week ago (done plenty of console/dos programming, but never anything with Windows API).  Decided to give it a whirl.  Proba...
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 am trying to load an image in OpenCV using the MFC open file dialog: CString filename; CFileDialog dlg(TRUE, _T("*.bmp"), NULL, OFN_FILEMUSTEXIST|OFN_PATHMUSTEXIST|OFN_HIDEREADONLY, _T...
I have a double-buffered GDI-based graphics application that works like this: void MyDlg::OnPaint() {      BITMAP bm;      HBITMAP backbuffer, oldBitmap;      HDC backbufferDC;      CPaintDC dc(this); ...
How do I add a bitmap to an MFC Dialog?
I'm seeing this value in an access violation that occurs when my program is trying to clean up after itself.  All of my "delete <some pointer>" statements are wrapped in an "if(<some pointer>)...
Hi,  I wonder what xlFileFormat value to use when saving a file using SaveAs with .XLSX, .XLSM, or .XLSB extension in Excel Automation. Any help would be greatly appreciated. Thanks. _Work...
Is there a way to get an integer into a CString? Is there a way to that in MFC? I'd use _itoa, but it expects a char * and I get this error: error C2664: '_itoa' : cannot convert parameter 2 ...
HI,      How to convert a CString data to int. Suppose I have char* bytearray; CString data; CString CSbytearray(bytearray); data = CSbytearray.Mid(1,4); Now,I need data in integer f...
Hi, I have a bitmap data, how should I construct the info header, so that I can make it a 8bit grayscale bitmap? My current BITMAPINFOHEADER is as followed:      for (int j=0; j<256; j++) ...
I have this call to CoCreateInstance ::CoCreateInstance(clsID, NULL, CLSCTX_ALL, guID, reinterpret_cast<void **>(&pI)); that fails, in fact it crashes and i get 0x000036b7 from GetLastErro...
Hi all, I'm working on an MFC project where one of the requirements is storing an image in an SQL database through an ODBC connection. After some reading, I decided I would store the ima...
I've created a dervied CStatic class that has methods to set the text color and text background color for any text written into the Static Text box.  This works fine, but how can I change the ...
Hi I keep on getting this error for no reason at all. It goes and comes on its own. I cannot run my application as of now. fatal error C1853: 'Debug/Software.pch' is not a precompiled hea...
I'm working on an MFC project. I've been copying the path of external files to a dialog edit control in this manner: void Cbackup::OnBnClickedButton4() {      CFileDialog l_SampleDlg(TRUE,NUL...
Can I use SendDlgItemMessage()? I see there is a CButton::SetCheck() method - but I don't see how to reference the button object created by the Resource editor. How can I ue SetCheck?