Re: using OpenFileDialog



William DePalo [MVP VC++] <willd.no.spam@xxxxxxxx> wrote:

> Some rambling ...
>
> 1) I think I heard that there are "millions" of pages on MSDN. Keeping it
> straight in magnetic or gray matter is a huge undertaking. :-)
>
> Google is good at that sort of thing so I tend to use it to find things on
> MSDN. Just append
>
> site:msdn.microsoft.com
>
> to a google query.

Good suggestion. I'll keep it in mind. I often find references to MSDN
in my Google searches even without adding the site though.

>
> 2) If you don't find what you need, or if you don't go there first, come
> back here. Chances are that someone will help you out.

I was delighted to have the answer in under an hour. :-)

I used to frequent the programming lounges that related to my work (Mac
for 15 years, Java for 7 years, etc). I have been pretty much out of
the game for the past 3 years though (dot-bomb bit me, and suddenly my
35 years of experience was a liability rather than an asset), and am
just getting back into it. This is my first foray into Windows
programming via C++. I've written several Java apps for Windows though.

>
> 3) It is usually best to describe _what_ you want to do and not _how_ you
> want to do it. I was about to answer the question you asked when I realized
> you probably didn't want to go down that path.

I didn't even realize there were separate frameworks for managed and
unmanaged code until this thread. I thought that was just a compiler
flag that redefined Object constructors/destructors to manage memory for
me. Shows how little I know about this new game... I've only been in it
for 2 weeks. :-)

In this case, I knew I wanted to open a file, so I Googled and found
OpenFileDialog. Looked reasonable, so I went to use it and hit a
completely unexpected wall. I never even thought that might not be the
right Class for unmanaged code.

>
> 4) Due to personal bias and experience, I don't usually suggest MFC
> solutions to problems. But _you_ might want to look at its CFileDialog class
> as it probably best approximates the .Net class you happened on in the docs

I have no choice in the matter. The client has almost 10 years of
legacy code that is being enhanced for version 10. There is some C#
work being done on new subsystems, but the section I am in uses VC++
MFC, so that is what I need to learn quickly.

--
- Burt Johnson
MindStorm, Inc.
http://www.mindstorm-inc.com/software.html
.



Relevant Pages

  • Re: Kill a Task
    ... Part of the problem is that Google is so good, ... A huge part of the MSDN problem is that their ... the technical side of things the presenting of 'New' technology first. ... fail to return the information on the error. ...
    (microsoft.public.windows.server.security)
  • Re: STRG+C über den COM-Port senden
    ... abgesehen von der MSDN, ... mich durch Google und auch durch die MSDN ... Kopf: Du kannst deine Hardware kaputt machen, ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: win32 and directories
    ... > Yeah, if you know what you are looking for you can find it. ... the exact API name I'm looking for, Google is first stop. ... It is almost impossible to find anything on MSDN, ...
    (comp.programming)
  • Re: posting via MSDN or Google
    ... portfor NNTP so I cant use another reader. ... "Managed newsgroups are for current MSDN Universal, Enterprise, ... I post with the google groups interface ... posting using my MSDN account versus posting with just a regular ol' ...
    (microsoft.public.vc.mfc)
  • Einstiegshilfe + MFC vs. API
    ... ich momentan gar nicht wo ich mit Lesen in der MSDN anfangen ... das CDC dc; eine MFC darstellt. ... WIe ist denn hier die einhellige Meinung zur Verwendung von CString? ... Falls also jemand Links zu guten Seiten hat... ...
    (microsoft.public.de.vc)