![]() |
| |||||||
| Notices |
![]() |
| LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Hello All, I posted this on the programmer.ui group and got no help, so I'm cross-posting here. Hope that's OK. I've got a problem with GetOpenFileName on Vista. It never recognises the lpstrInitialDir field of the OPENFILE structure and always starts off in the current working directory. The code works fine on XP and the other systems. Anyone seen this and worked around it? /john | Guest
Posts: n/a
|
|
| | #2 (permalink) | |
| Hi, For me code: http://msdn2.microsoft.com/en-us/library/ms646829.aspx works fine also for Vista. Checked on VS2005 with SDK for Vista Marcin Domaslawski "JohnD" <johnd@dyalog.com> wrote in message news:umMgLrg7HHA.4880@TK2MSFTNGP03.phx.gbl... Quote:
| Guest
Posts: n/a
| |
|
| | #3 (permalink) |
| The problem is that in XP the "lpstrInitialDir" can take a file path and it is smart enough to realise that you are refering to the directory that contains this file. With Vista it ONLY accepts a directory path. Some simple string manipulation should be able to fix this fairly easily. -- Zapf Bandit | Guest
Posts: n/a
|
|
![]() |
| Tags |
| None |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Vista Cannot Recognise AVG Antivirus Software | Guest | Windows Vista | 0 | 03-07-2008 07:05 PM |
| Vista does not recognise my monitor but XP does | Spirefm | Windows Vista Hardware & Devices | 13 | 09-25-2006 03:58 AM |
| Vista won't recognise our lan when resuming from hibernate | Ringbearer | Windows Vista Networking & Sharing | 0 | 06-30-2006 12:50 AM |
| PC won't recognise Camcorder | Paul | Windows XP Video | 0 | 12-03-2003 03:25 PM |