The MFC's root object CObject's copy constructor and assignment are disabled by default.
In MSDN, there is a description
The standard C++ default class copy
constructor does a member-by-member
copy. The presence of the private
CObject copy constructor guarantees a
compiler error message if the copy
constructor of your cl...
Hi,
Can you recommend good embedded databases with Visual C++/MFC?
I've looked at:
- SQLite
- HamsterDB
Any others?
...
Can you recommend good diagramming libraries?
I wish to draw vector graphics and make custom shapes.
...
I would like to determine the next date that has a day of the week value equal to something I specify.
For example, today is 6/21/2010 and the day of week value is 1 b/c today is a Monday. How do I find the next date with let's say a day of week value of 3.
I would like to consider all cases that come close to the end of something incl...
I would like to implement a thread safe queue in VS 6.0
Is there a good class to use for this? This is an MFC application using the CWinApp.
My former post lead me to here but I don't have the luxury to code in VS 2010, stuck in 6.0 land.
o well.....
Thank You.
...
I am using Visual Studio 2005. I created an MFC based console application named "StdAfx dependancy". The IDE created the following files for me.
Resource.h
StdAfx Dependancy.h
stdafx.h
StdAfx Dependancy.cpp
stdafx.cpp
I added another class CHelper with Helper.h and Helper.cpp as below.
Helper.h:
#pragma once
class CHelper
{
public...
Is there a way to make the MFC app work both ways console as well as Window.
...
Hi
I have a MFC dialog derived from CMyDialog (is a CDialog) and try to add a control with the "add member variable wizard". But the checkbox "control variable" is grayed out. Any ideas what the problem is?
For example:
I have a edit control and want to add a int variable with lower and upper border (min and max value). I need to chec...
I've been given an ISAPI extension dll compiled in VC6 which calls "ServerSupportFunction" through MFC's CHttpServerContext class.
The code looks something like (assume Ctx is object of the class CHttpServerContext)
CString str;
str = "Content-Type: text/plain\r\n";
str += "Content-Length: 200\r\n";
str += "\r\n";
DWORD len = str.GetL...
When I launch a dialog the alt accelerators are not visible on the controls. Accelerators are visible only after I press alt.
eg. if my button text is &Save
on launch the button doesn't have underline effect under 'S'. it is visible only after alt is pressed.
...
I am doing calculator program by using dialog based vc++/MFC application. In a dialog box, I added a edit text control and a push button. So I need to change/append the text of the edit control box in that dialog when I click the button on the dialog. To display the text am using Setsel() and ReplaceSel() methods in ButtonClicked method,...
I have used QGraphicsTextItem in my MFC applications for text editing, then converted the results to a bitmap to show in the view (screen). But it has issues when printing. For example, if I print to a PDF file, the text is not scalable since it is a bitmap and the file size is also big.
How can I print the QGraphicsTextItem in the MFC ...
Hello all,
Is it possible to find a window by class using FindWindowsEx if it's currently hidden in the system tray? Looking for children of ToolbarWindow32 works if the icon is not hidden, but what to do when it is?
Thanks.
...
I have an Observer class and a Subscriber class.
For testing purposes, the observer creates a thread that generates fake messages and calls CServerCommandObserver::NotifySubscribers(), which looks like this:
void CServerCommandObserver::NotifySubscribers(const Command cmd, void const * const pData)
{
// Executed in worker thread //
...
what is the difference between c++ and MFC(except front end designing concept)
...
I've got Visual Studio 2008 express, and I need to use afx.h and some other things from MFC. Is there an SDK I can download that includes those? I downloaded the latest Windows SDK, but that didn't include it.
Thanks.
...
I have a VC++ project in VS2010 that is linking to some dll's built with VS2008. Works fine until I try to pass MFC objects to the VS2008 dll. The artifact of the VS2010 VC++ project (a .dll) is linking against the latest version of MFC that shipped with VS2010, whereas the VS2008 .dll is linking against the previous version of MFC tha...
Hi,
I had a project under MFC 7.0 and now I created new project under MFV 9.0.
I copied all the files, did the relevant changes in generated files (Doc, view, resources etc.) and when I try to build to project, the compiler outputs the following error:
Error 1 error C2146: syntax error : missing ';' before identifier 'CUserTools...
I have a binary application on windows (train timetable software) which contains a lot of interresting data which I need for my project (nothing illegal, just some weird optimization algorithm). But the application has no api and the data files have undocumented binary form.
So my idea is to control the application from my own code. I w...
Is it possible to recompile an MFC DLL while its "client" executable is running, and have the executable detect and pick up the new changes? If it's possible, is it foolish? Being able to recompile the DLL without restarting the exe would save some time in my coding workflow. I am using Visual Studio 2008, code is written in native C++/M...