Open a hard disk repertory with a MFC
I want to know how i do to open a hard disk repertory with a simple
button in a MFC application (exe) because i want to chose a file in my
Moreover, can i take the size of the file ?
Are you asking to open a file? CFileDialog is what you want. For
directory picking, use SHBrowseForFolder.
Is something like this what you are looking for?
<firstname.lastname@example.org> wrote in message
> Hello ,
> I want to kno...Window Service
I have created a NT service ( in vc++ 6.0) which can run my prog. as
service. My problem is that my prog. should run when a user logs in and
take user-id for its working and stop as soon as the user log off. Can
anybody help me in solving this problem. Any APIs ?
If you just want to run your program only when your user logsin in and want
to stop working when it logs off, why do you want to make a service ?? it
should just be put in start up or in registry with run folder..
No need to develop a service..
"Suriya" &l...Changing display name in Windows Mail
Currently my email in Windows Mail displays just my wife's name when a person
receives an email from us. Would like to change that to both of our names??
In Windows Live Mail go to Tools, Accounts, select that account, click =
On the General tab, make changes to the Name field as desired. Click OK.
Gary VanderMolen, Microsoft MVP (Mail)
Microsoft MVP program: http://mvp.support.microsoft.com
"pickle" <email@example.com> wrote in message =
news:F4162B8D-0520-47DE-8F3A-13172B38D7A8@microsoft.com.....MFC Sockets Query?
This is my first experience with Sockets Programming.
I am purely using MFC on both sides -- Server(Dialog based application with
3 buttons <Start server, Send data & shutdown server>).
The client application is an Windows explorer type MFC SDI application.
After the connection is established & when the <Send data> button is clicked
on the server side, names of all the folders in C:\ is send one by one to
the client for display in the tree view.
Now i have 2 questions to ask:
Q1--> How can i make sure that the Port No. that i will provide in the
Im very new to c++ programming so pardon me if this is a dumb question and
my bad english.
I made a subclass from CListBox. I want to handle all the list controls
derived from this class on one function, for example,
void CListBox_SC::OnRButtonUp(UINT nFlags, CPoint point)
on this function I want to manage the OnRButtonUp event, and with a switch
or if statement, select the code to execute. The following does work:
but the following comparison is never true, (IDC_LST_TIPO is a resource for
one of the ListBoxes)
UINT currLst = It...Publisher 2000, Windows XP Home, file locked across network
I found this question posted already, and tried to add to it as I'm having
the same problem. My post hasn't shown up after a few hours, so I'm tying a
Had a Windows95 peer to peer network set up. Running Publisher 2000 and
other apps. Was sharing all data files on one station. All was well.
Swapped out the workstations with new Windows XP Home workstations. Copied
all the files over, reinstalled the applications. All of the old files can
be opened across the network without issue. (including Publisher 2000)
However, when a NEW publisher document is created, I..."locate link browser" window in Windows 7 and Outlook 2003
Every time I click on a link in an email in Outlook, a "locate link browser"
window appears. There's a lot of help on the web to fix it for Win XP, but
those steps don't appear to work for Windows 7.
I tried pointing it to iexplorer.exe and the window isn't coming up anymore,
but it just launches IE and my home page... not the link that was in the
Can anyone help?
> Every time I click on a link in an email in Outlook, a "locate link browser"
> window appears. There's a lot of help on the web to fix it for Win...Custom Drawing CEdit : Subclassing
My objective is simple, but I'm not entirely sure what needs tweaking.
I am using MSVC 6, and I would like to subclass the CEdit box so that
it appears as the color-picker editbox of a PropertyGrid. There is a
color box followed by three values. Like this:
[###] 255; 192; 192
Where ### is just a color box representation of the value.
So thus far, I've made a masked CEdit box, where I can edit the numbers
(or click a button that visually sets the numbers from a different
window), and I'm happy with that - but what I would like to do next is
to subclass the dra...Windows File Protection and Registering a Non-System File
I apologize if this is a bit off topic. The group generally has high
acivity with authors who can discuss higher level protocols...
I'd like to register some files with Windows File Protection. I know if
one authors a driver, Microsoft will sign it and it will enjoy
protection (some hand waving here).
The reason I'd like to do it is to stop malicious tampering (binary
patching from the Reverse Engineers). Is this possible? I don't see how
to auto enroll if not signed by Microsoft.
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/s...Windows Server 2008 64bit with HQ Client
Anybody running RMS 2.0 HQ Client on a Windows Server 2008 64bit operating
we are trying to get our server running, but we are getting an error that we
are missing a file. 'c:\windows\system32\Richtx32.ocx' If you are running
this same atmosphere, could I please get a copy of this file that our system
is apparently missing? I do have Microsoft involved, but they are being
sssssssllllllloooooooooooowwwwwww at getting this resolved. please contact me
directly if you do have hq client running on Win2008 64bit.
I can no longer access new contact information from the Contacts window in my
e-mail. I cannot make new groups either. I have to add new contacts by
clicking on file, then new contact. Can anyone help me?
Missing buttons from the Windows Contacts toolbar
Vista - "New Contact" and "New Contact Group" Button Missing
Imperial Beach, CA
...[MFC + DAO] Data selection
I've connection to database ( .mdb file) In one of tabels i've some fields:
e.g like those:
idTab - Autonumering
idWho - Number
idOK - Number
idBad - Number
And what i want to do is:
const char pszIDTabFind = "idTab = %s ";
CString strId - ID taken from another table
str.Format( pszIDTabFind, strID );
RS.FindFirst ( str );
And what i get? An exception:/ !! Sth like : "Operation for this object is
not supported" Why i can't find any data? What's more if i search for
strings everything goes ok. Could You please tell me how should i...Outlook2003 Windows installer problem
I am running Windows XP Home Edition and have just installed Office 2003.
On accessing Outlook for my email, I get a grey Windows Installer box which then trys to install itself. It trys to access the hard disk seven times and then closes down. Pressing the Cancel button on the box does not stop it.
Has anyone any suggestions, I have unistalled Office and then re-installed it again in an attempt to rectify the problem.
Heres hoping someone can help? Thanks.
...MFC vs. Forms
I am building a DirectX app and chose MFC basically because there was
plenty of sample code for integrating DirectX renders into an MFC app.
I had heard that Forms were the new thing and MFC was old. Is this
I had no sample Forms code for doing a DirectX/Windows app so I am
hoping MFC is not being replaced.
Can anyone educate me on the differences and what people are using the
Forms are a way of writing apps. MFC is a way of writing apps. No particular reason to
call one "modern" and one "old". For example, a dialog-based app in MFC is essentially
When I go to my Windows Mail account I have to sign on each time. I receive
a message as follows:
Account: 'mail.comcast.net', Server: 'mail.comcast.net', Protocol: POP3,
Port: 110, Secure(SSL): No, Error Number: 0x800CCC17
I can sign in and receive and send messages; however, when I exit my Windows
Mail and return, I have to sign in all over again.
Any help will be appreciated.
A likely reason for the username/password failing is account corruption.
One thing you should try as a possible quick fix is to delete that =
mail accou...tables for a window
There used to be a way (not Modifier) where I can have Great Plains show the
tables linked to the current Great Plains window. I have forgotten it. can
you please let me know.
I believe you're looking for the Window Descriptions. If that's the case, go
to Tools>> Resource Descriptions>> Windows.
"Jack Tundra" wrote:
> There used to be a way (not Modifier) where I can have Great Plains show the
> tables linked to the current Great Plains window. I have forgotten it. can
> you please let me know.
No, this is somethin...keystroke in MFC(Dialog app)
I am trying to capture the keyboard input user press in my application i
have declared the message WM_KEYUP and WM_KEYDOWN and their correspoding
function also get declared
void CTeestDlg::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
CDialog::OnKeyDown(nChar, nRepCnt, nFlags);
now when user press any key in my dialog application message box should be
displayed but nothing happend no message box displayed I also used the break
point in side this function but no break point is called ....
please let me know how to solve this problem
T...Help with subclassing a RichEditCtrl
Hi folks, I could use some help.
As a side project I am trying to write a DLL that will extend the functionality of an existing application that I do not
have source code for, i.e., some autocompletion functionality, word lookup, etc.
In the actual DLL, I am going to have to inject it into the existing app and then use FindWindow or something like that
to subclass the existing RichEditCtrl. I need to be able to process the WM_CHAR and WM_KEYDOWN messages only.
I started out by creating my own sample project using a RichEditCtrl in my project to code my object. I've now moved
everythin...ActiveX event in MFC (VC++ 2003 Pro)
I'm using Visual Studio 2003. I cannot figure out how to add a custom event
to an ActiveX control that I create using MFC. I follow these steps:
1. Create new project of type "MFC ActiveX Control"
2. Accept all project defaults
3. Open the class view
4. Expand "ActiveXProjLib"
5. Right-click "_DActiveXProjLibEvents"
There's no Add->Add Event menu item. Just options to add methods and
properties. So, I figured that just adding a "method" to the event interface
might get the job done. Nope.
I'm clearly missing something funda...SIZE Window, Tile, Worksheet, Workbook, Whatever it's called.
Is it the tile, the window whatever you call it when you call it it's proper
name it is my project. The part inside the main excel window is smaller than
the main excel window and I can't maximize it. I can max and min the main
window but not the tile. I thought it was a tile so I will, until corrected,
call it the tile. The help menu says to either double click the title bar OR
left click the box at the top right of the title bar. If I could make either
of those happen I would not be writeing this.
If I close the said project and open another excel file, new or completed,
...Exploring MFC Source code
I am just want to get a little acquaint on the MFC source code. There isn't
any project files for .NET 2002. Just a makefile. So how to see it from head
to tail? Thanks
> I am just want to get a little acquaint on the MFC source code. There
> any project files for .NET 2002. Just a makefile. So how to see it
> from head
> to tail? Thanks
Its all installed on your machine. You can look at the installation directory,
but the best way to understand most aspects of MFC would be to build a simple
SDI app (in debug configuration...Windows won't shut down
WindowsXP Pro Sp3 IE8
The blue screen with the message "Windows is shutting down" hangs and will not close.
Check task manager to see what is running just before you shut down.
"Ray" <firstname.lastname@example.org> wrote in message
> WindowsXP Pro Sp3 IE8
> The blue screen with the message "Windows is shutting down" hangs and will
> not close.
...Enjoy the Blu-ray on Your Windows Movie Maker
Enjoy the Blu-ray on Your Windows Movie Maker
[b]Windows Movie Maker[/b] is video creating/editing software, included in Microsoft Windows. It contains features such as effects, transitions, titles/credits, audio track, timeline narration, and Auto Movie. New effects and transitions can be made and existing ones can be modified using XML code. Windows Movie Maker is also a basic audio track-editing program. It can apply basic effects to audio tracks such as fade in or fade out. The audio tracks can then be exported in the form of a sound file instead of a video file.
As w...Mixing ATL/MFC in VS2005
Does anyone know of some sample code created using VS2005
that implements an out-of-proc COM server mixing MFC and ATL.
I tried creating one from scratch but the wizard no longer allows
MFC support in an ATL .EXE.
On Mon, 11 Jun 2007 16:38:45 -0500, "Drew" <email@example.com> wrote:
>Does anyone know of some sample code created using VS2005
>that implements an out-of-proc COM server mixing MFC and ATL.
>I tried creating one from scratch but the wizard no longer allows
>MFC support in an ATL .EXE.
Here's a freeware pr...can i use office 2000 on windows XP and what is the pricing of 20.
(2) Check Ebay, perhaps.
"Sherree" <Sherree@discussions.microsoft.com> wrote in message
thanks, youve been very helpful
"Norman Jones" wrote:
> Hi Sherree.
> (1) Yes
> (2) Check Ebay, perhaps.
> "Sherree" <Sherree@discussions.microsoft.com> wrote in message