I'm new to MFC and is a bit confused with the new features of "MFC feature pack." Through the wizard I now have an application that looks like an IDE - has a dockable file explorer on the left side and a dockable properties window on the right side. I'm already able to get the selected items on the file explorer window through ON_WM_LBUT...
Is there a basic function call in MFC that simply plays the input error ping?
I am looking for something analogous to the AfxMessageBox() call that simply plays the ping that is frequently heard when an error is made.
...
I am about to start making a simple little video editing application, and I was trying to decide what system to create the GUI in. I know a lot about the Windows API, and actually, all of my programs thus far have been written in it. I would really like to use the new WPF framework though; however, I am a bit concerned about the fact t...
By using the wizard, and selecting Office 2007 style, you can come up with a UI that looks like an IDE - a dockable file explorer pane on the left, and a dockable properties pane on the right.
However, when you close these dockable panes, there's no way you can show them again. Even if you recompile the project.
I searched through so...
I have my application(VC MFC) run with gflags with Pageheap enabled to track down the page heap corruption.
Now the application has crashed and it shows this error, i could not interpret these lines (other than having a feeel of resource inavailablity)
Can anyone throw a light on what exactly is the reason that has caused the carsh of...
Background info:
I have this MFC application I coded and been using for a long time that pretty much automatically saves screenshots to the hard disk when the user hits the Print Screen/Alt+Print Screen key. I have been putting off using anything related to Aero until now that I've been using Windows 7 RC for a couple of weeks.
The pro...
I want to learn C++ for windows but have no idea where to start; there seem to be so many different technologies that have utterly confused me: Win32, MFC, ATL, STL etc. I know a good deal of C# and Java, no C and a small amount of ANSI C++ (datatypes, loops, classes and OOP), but when I look at other people's code or try to mess around ...
I'm building an isapi filter that will grab any url requests with the prefix "http://localhost/" and redirect that url request to my message page "http://localhost/default.html."
Here's the solution:
if(urlString.Find("/") != -1)
{
urlString.Replace(urlString, "/default.html");
...
I'm new to MFC and is a bit confused with the new features of "MFC feature pack." Through the wizard I now have an application that looks like an IDE - has a dockable file explorer on the left side and a dockable properties window on the right side. I'm able to get the selected items on the file explorer window through ON_WM_LBUTTONDBLCL...
I have an MFC app that uses CMenu for the main menu bar.
I haven't been able to create submenus successfully.
I can have the first level of File, Edit, View, etc and their sub menus, but I can't create a submenu off of one of those menus.
For example, I would like to be able to go File->Recent Items->list of items in submenu
I can do t...
VC++ 6.0, MFC application
In CEditBox (IDC_EDIT1) I have created a CString variable (m_strEdit1). How do I validate that the input is a number, including sign (+ and -)?
eg: (+10, -56)
It should not accept alphanumeric characters. How can I do this?
...
I need to create some controls in a MFC dialog dynamically. The creation works fine so far, but the controls created dynamically are looking different from controls created with the resource editor. Some controls even behave different. I think, that I'm missing some initializations the generated code does.
Currently I only create CStati...
Hello!
Let's say I have 3 logged on users. I have a test application which I use to enumerate the WTS sessions on the local computer, using WTSEnumerateSessions. After that, I display the information contained in each of the returned WTS_SESSION_INFO structure.
On Windows XP, there are 3 structures displayed: Session 0, 1, and 3 (for e...
I want to be notified when a microphone jack is plugged in. What is the event fired by the OS(particularly Vista)
The audio panel shows no recording device active if no mic plugged in(vista). This never happened in XP.
Also if my microphone had a "advance control" for eg Bass Boost, Mic Boost(AGC) etc, how can I get the mixer control f...
In Vc++ 6.0 Dialog Based MFC application:
I do not want my user close the window by pressing the button [X] in the top-right side of the window itself and also (Alt+F4). I want to display a messageBox ("Do you really want to close the application"); if the user clicks the OK button then the application has to close, else if user clicks t...
I'm starting to develop a Windows service. I want to use some classes from my own, that has little dependencies to some MFC classes like CString, CSocket, CArchive, CMemFile and CObject. MSDN says you need to be very careful about which pieces of MFC you use in the Windows service, but don't specifies it and don't describes the problems ...
Hi there,
I have an MFC dialog in which there are two radio buttons. I have put them in a nice group, their IDCs are one after each other (RB_LEFT, RB_RIGHT).
I want to use DDX_Radio so I can access the buttons using an integer value so in the function DoDataExchange I call :
DDX_Radio(pDX, RB_LEFT, mRBLeftRight);
where mRBLeftR...
I have a static function in dll which loads string from resource using LoadString(). When I call this function from that dll everything works OK. But, when I call this function from other module (activeX control) LoadString fails with error ERROR_RESOURCE_NAME_NOT_FOUND. I tried with AFX_MANAGE_STATE macro but it didn't help. Does anybod...
I want a detail grid kind of control in MFC, where on expanding each row of the grid an embedded dialog would appear for it (not a popup but inside the same parent control, inside which I can show other controls).
Can you please point me if there is any such existing library providing this kind of a control? Or else how to go about impl...
example: "select * from somewhere where x = 1"
I want to find the whitespace-delimited "where", but not the "where" within "somewhere". In the example "where" is delimited by spaces, but it could be carriage returns, tabs etc.
Note: I know regex would make it easy to do (the regex equivalent would be "\bwhere\b"), but I don't want to a...