I believe you cannot use GetOpenFileName directly in VFP because
it returns a structure containing pointers.
Have a look at Christian Ehlscheid's vfp2c32.FLL http://www.vfp2c.com/
http://www.news2news.com/vfp/?group=-1&function=553&PHPSESSID=f62d8acf9e680db17e7ec5ee3a6e45d6
hth
-Stefan
--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------