mfc

wrapping an MFC Gui app into a DLL(or something else) for .NET interop

sound like a terrible idea? Yeah I thought so too. Needless to say im told I have to do it. Situation: Old MFC-based C++ gui application that reads and processes a whole lot of data sources into an internal datastructure, before displaying it to the user. Problem: I need that datastructure in .NET, in XML will do. Solution: Make a f...

Loading caption of controls from resource DLL

Hi, I am new to MFC and I need to build a multi-language application that should be able to change the language at runtime. AFAIK the common way for internationalization with MFC is to create resource-only DLLs. But there seems to be no simple way (that means, load DLL, call some function, and MFC updates all stuff automatically or som...

Creating a GUI with MFC

I recently started learning MFC (Prosise book), and I feel like it's difficult. But the most difficult part seems to be about creating user interfaces. It seems like you have to know the positions your controls should be positioned at (not the case with dialog based apps). How do you get around that? Do you first draw the application in...

Splitting up a utility DLL into smaller components in C++

We have a core library in the form of a DLL that is used by more than one client application. It has gotten somewhat bloated and some applications need only a tiny fraction of the functionality that this DLL provides. So now we're looking at dividing this behemoth into smaller components. My question is this: Can anyone recommend a ...

where to get SAPI ?

Hello, Folks ! i want to create an application that is speech-enabled but whenever i get to MS website to download SAPI, i get an error. I want to know where I can get SAPI. and I also would like to know if a SAPI 5.3 application can work on Windows 2000, Windows XP and Windows Vista (if coded with C++/MFC). also, what is the best wa...

Equivalent of OnFinalMessage for MFC windows?

ATL CWindow class has a useful virtual method OnFinalMessage which is called after the last window message for the window is processed - at this point it is safe to destroy or deleted any objects associated with the window. Is there any equivalent for windows derived from the MFC CWnd class? ...

MFC like easy to use tool for Linux

When I used to write test tools in Windows, I use MFC for creating the front-end GUI. This made development of GUI development very fast, and I always used to concentrate on the back-end. Recently I moved to the console based Linux-world. Where most of the things are just console based. My question: Is there any easy to use equivalent o...

Cannot edit labels in a CListCtrl

I'm building a project with MFC Feature Pack. Is this project I have a window which includes a CView, which includes a CListCtrl-derived object. The object includes the LVS_EDITLABELS flag. Somehow I cannot edit the CListCtrl icon labels by two-time clicking (not double-clicking) on the icon label. After I select the item with a single ...

How can I add a ribbon menu to an existing MFC application?

Microsoft Visual C++ 2008 Feature Pack has ribbon menu support. Is it possible to make use of that in an existing MFC application that was not created with a ribbon menu? ...

How to Create splitters on a dialog box application ?

Hello All, I am writing a dialog box based MFC application. I don't intend to use the Document/View architecture. my dialog box contains a tree control(on the left), and 2 List controls. the problem is that I want all the controls to be able to be resized neatly. for example, the user might want to make the tree control larger , he s...

How to move controls to the middle of an MFC form?

How to move controls to the middle of the form in a VC++ 6.0 MFC project? Say I added an EditBox(m_editcontrol), how to move this control to the middle of the form? ...

Profiling disk access

Currently I am working on a MFC application which reads and writes in to the disk. Sometimes this application runs amazingly fast and sometimes it is damn slow. I am guessing that it is because of the disk access involved, hence I want to profile it. These are some questions in this regard: (1).Currently I am using AQTime profiler to pr...

How to hide MFC splash screen in auto start?

Hi, I have a MFC app without main window. When users start it, it displays the splash screen for 1~2 seconds, then splash screen fades out to system tray. Users start to access the menu by clicking the icon in the tray. The app can also auto start when users login to Windows (adding entry in Start Up folder). The same process describe...

Is there a standard directory browser dialogue that I can call in MFC that doesn't involve the user having to create directories to specify ones that don't yet exist?

I am working on the bootstrap application of an installer, and I have a dialogue that the user can open to select a different target directory from the given default. Currently, I'm using the CFolderDialog for that, but for the user to select a folder that doesn't yet exist, he has to create the folder first. Once the user has specified ...

Implementing zoom controls in MFC

I am working on a 'print preview' facility to show an overview of a slide with rectangular arrays of sample spots on it. The slides typically measure 25 x 75 mm and the spot samples are typically 0.1 mm in diameter. There is usually a 2mm gap around the perimeter of the slide where no spots are printed. The distance between spots (pit...

COM MFC application don't show window

Hello, I have a MFC application with ATL support, the idea is when someone creates an instance of my interface declared in the mfc application, this instantiation creates and displays a window. This all works fine if the com client is the cmd.exe, i made a quick com client that instance the interface and when this instances occur the ...

Using Model-View-Presenter pattern in a MFC application

I work in the ui of a "quite" big MFC application. We tried to split the application in modules to isolate the business logic but anyway there are still many places where the ui has some business logic that shouldn't be there. This business logic is difficult to test and changing a control is sometimes a real pain. But...you all know wh...

MFC Container based application

Hi, I have a Doc-View architecture based project completely ready. But now i want to convert it in container based application to provide OLE support to existing project. if anyone know how to convert, please reply as soon as possible. i just need a way without copy paste of existing code to new container based application- i tried - n...

How to move controls from the bottom to the top of an MFC form?

In VC++ 6.0 (MFC), how the the controls eg : Button, EditBox, and Static Text can be move from bottom of the form to top of the form. ...

Tracing MFC message handling

Trying to upgrade an MFC app to use the new MFC feature pack, we are loosing the messages from a context menu. The menu appears and can be clicked, but the message seems not to be handled anywhere. We overrode OnCmdMsg() in lots of places but to no avail, the context menu's command message are not caught. Is there a way, tool, or approa...