getopenfilename

GetOpenFileName lpstrInitialDir (directory)... not working for URL (SharePoint)

I bring up a GetOpenFileName dialog, enter a URL to a SharePoint sever, and it lets me browse that server using the Web Client Service (WebDAV mini-redirector). I am trying to get the initial directory to come up as that URL, but it seems to ignore it (using OPENFILENAME struct's lpstrInitialDir. Local paths work fine. EDIT: Paul re...

How to show an openfile dialog on windows ?

I'm trying to get an openfile dialog to show up on windows CE 6.0 according to msdn it's the same process as in win32, but it doesn't work. I submit for review the interresting part of the code : #include <windows.h> #include <commctrl.h> #include <winuser.h> #include <stdio.h> #include <Commdlg.h> /* Prototypes */ LRESULT CALLBACK ...

GetOpenFileName lpstrInitialDir is UNC path. Not prompting for credentials, so it's not using that intial directory

I'm using GetOpenFileName; my lpstrInitialDir is set to a UNC path (network share), and that share requires login. I haven't found a way to either be prompted for credentials, or have my domain credentials used. If use Windows Explorer to go to that network share, then I run my app, the GetOpenFileName works with that network share as t...

GetOpenFileName() kills my background open streams :(

Its a little strange. Ok so I am working with OGRE game engine which has a "SceneManager" class which keeps some files streams open in background. If i use those streams just BEFORE using GetOpenFileName() those streams work fine, but if I try to use those streams AFTER GetOpenFileName() those strams are found to be closed. Can someone t...

QT QFileDialog how to hide hidden/backup folders (".folder")

Basically when browsing folders inside a QFileDialog I find very annoying to have everything bloated with hidden or backup folders (don't know how to call them really); specially on home. Is there a way to prevent these type of folders from showing by default on a QFileDialog? I'm using Qt4.6 and getOpenFileName. P.D.: I'm starting to...

Windows API GetOpenFileName with template and hook

I'm trying to use a template with GetOpenFileName without success. I've found very little on this topic in the MSDN or on the web. I've based my attempt on what I saw here http://visual-c.itags.org/visual-c-c++/77687/ My code follows. The TEMPLATE comments show where I made changes to code b4 the template attempt; mainly to remove ...

semi colons in Windows filenames?

Hi All, One of my users asked why my app does not support semi-colons in filenames. I stepped through my code, seems Windows function GetOpenFileName truncates any filename containing a semi-colon. e.g. "one;two.wav" -> "one". Microsoft says colons are not allowed, but don't mention semi-colons... http://msdn.microsoft.com/en-us/librar...

Win32 GetOpenFileName prevents app from exiting

Hi, I'm using Win32 with C++ to make an app that can load the contents of files through a dialog with the GetOpenFileName function. Everything works fine, except when I close the main window and the app quits and prints this to the console: The thread 'Win32 Thread' (0xa50) has exited with code 0 (0x0). But the main process keeps runn...