home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / os2 / programm / 6463 < prev    next >
Encoding:
Internet Message Format  |  1992-11-16  |  1.6 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!swrinde!gatech!prism!gb8
  2. From: gb8@prism.gatech.EDU (BEEBE)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Help with the WinFileDlg function
  5. Message-ID: <74677@hydra.gatech.EDU>
  6. Date: 13 Nov 92 11:34:08 GMT
  7. Organization: Georgia Institute of Technology
  8. Lines: 33
  9.  
  10.  
  11.  
  12. Hello All,
  13.  
  14. I've run into a bit of a snafu on the proper utilization of the WinFileDlg
  15. API function. The documentation in the RED BOOK's appears to be hopelessly
  16. incorrect. I used the code they suggested to initialize the FILEDLG struc-
  17. ture and ended up with about 10 "identifier must be a member of the structure
  18. or union class" errors and one "severe error: general compiler fault" or 
  19. some such thing. I've check the online help and fixed most of the declaritory
  20. errors but the "severe error" persists. The FILEDLG member assignment that 
  21. causes the error is
  22.  
  23.          Dlgdat.pfnDlgProc=NULL;
  24.  
  25. where FILEDLG Dlgdat; was previously declared. This assignemnt was recommended
  26. in the RED BOOK's (although I have my reservations as to its neccesity). The
  27. general idea is to use a default "OPEN FILE" dialog box to return a HFILE   
  28. pointer. The question is: If you declare the pointer to the dialog procedure
  29. to be NULL, how does the WinFileDlg call know where to process the default
  30. dialog controls? Can someone recommend a validated source of accurate information describing the use of the WinFileDlg function?
  31.  
  32. Thank in Advance,
  33. Gary
  34.  
  35.   
  36.  
  37.  
  38. -- 
  39. BEEBE,GARY E
  40. Georgia Institute of Technology, Atlanta Georgia, 30332
  41. uucp:      ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gb8
  42. Internet: gb8@prism.gatech.edu
  43.