i have written the following application using MFC in visual c++ that includes two resources (a menu and a dialogbox) (created using the resource editor)...the program works absolutely fine except that it displays only one resource ie. it displays only the menu but it does not display the dialogbox...
what to do??
this is the code...
#i...
How to enable horizontal scrollbar smooth scrolling for CGridCtrl. Now it jumps by fields when I scroll it from left to right.
...
I want to make sure that if any error occurs during the database processing phase, program will know it need to roll back the whole process.
any good ORM in MFC/C++ for doing this ?
...
MFC Dialog Application:
From Parent Dialog, launched the Child Dialog. In the child dialog property "Minimize" button is checked. If click the "Minimize" button the child dialog minimize to the left corner of the screen instead of "Task Bar" how to solve this???
...
I want to create a property grid (the one which is similar to the one used in the resource editor in VS) using MFC. Does anybody whether there is any built in support in MFC for this?
...
How can I view crystal report (use CrystalReportViewer control) in Visual
C++ .NET MFC-application? I know I can use it in managed C++ application,
but I already have a MFC project.
...
Hi..
does any one please tell me how to use double-buffer in windows-mobile listview
Thanks
Grabi8
...
In my MFC program,I want to display different size images in a list!
I use CListCtrl and CImageList!
But the CImageList only can load fixed images!
...
In my free time, I'm working on a risk analysis application. I have already finished the mathematical and simulation engines, but I'm stuck with the design of the user interface. I want my application to be as easy-to-use as possible for Excel users, but I don't want to make it an Excel add-in, because Excel takes ages to load add-ins. S...
Hi all,
I have a structure and a member of it is char* * (2d pointer). I allocate space from EXE1 and call EXE2 with the data. I use memcpy to get all data on EXE2. The memory address on both EXE is the same (lets say 0x013740b0), though the data of char** on EXE2 are not present. How can I retrieve the data on EXE2?
Thanks in advance...
I need a excel-like grid control in MFC, do anyone have good suggestion to implement that ?]
with the control i can filter the data by clicking on the header, then it will display distinct data of current column for selection.
Thanks!
...
if this possible to write a com control or activex in C# and use it in MFC ?
...
I need to print records in a grid view, and need to preview it before
printing.
I want to know whether or not there is a strong library for printing
preview?
And with the library I can change the position, layout of the data to
print.
More important: I need to change the data's layout, how can I do that?
...
I am using MFC CFile Seek function.
I have a problem about Seek out of file length.
CFile cfile;
BOOL bResult = cfile.Open(
L"C:\\2.TXT",
CFile::modeReadWrite |
CFile::modeCreate |
CFile::modeNoTruncate |
CFile::typeBinary |
CFile::shareDenyNone);
cfile.Seek(10000, CFile::End);
cfile.Close();
MSDN:
Remarks
The Seek function ...
I had a working MFC application (a dialog application), I deleted some of its button and added a new button, but now when it closes the application crashes. It fails in one of ASSERT() macro. The debug assertions fails on these lines
File: afxtempl.h
Line: 558
When I view that code it was something like this
template<class TYPE, class...
GDI+ drawing in 200% DPI (192 pixel), will come to incorrect background.
In this case, the dialog is bigger than my screen. The right part of the dialog can not display when the app starts up. when I drag the dialog to the center of the screen, and see that the right part of the background image is the center part of the dialog's parent...
Hello Stack Overflow. I am having a bit of a problem when handling a HDN_ENDTRACKW message for a custom class which derives from CListCtrl .
Essentially, it seem that when this message is sent, the actual value which stores the width of the column is not updated until after my handling code has been executed.
The code inside the handl...
I am writing a desktop application under Windows in C++ MFC.
The application creates a index file, and writes information to it again and again.
If the application crashes, the next time the application starts it will delete the crashed index file and create a new one. I think in certain cases, the index file will be locked. It will be...
Hi All,
Which book you suggest by which any bit experienced MFC programmer can learn much dipper, about internal design or architecture and structures and how the whole things works.
If anyone knows any book or online reference...
Thanks,
Bhavesh Bagadiya
...
I'm automating Excel in Visual Studio 2008 in my 64-bit MFC application. I've added the MFC wrappers and have followed the articles on MSDN on how to implement. Bascically I'm just reading the values of a range. The problem is the Excel process stays loaded in the task manager. Does it have something to do with a 64-bit app running on 64...