home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / pascal / 7945 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.7 KB  |  49 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!math.fu-berlin.de!Sirius.dfn.de!urmel.informatik.rwth-aachen.de!solaris.rz.tu-clausthal.de!helios.rz.tu-clausthal.de!hmls
  3. From: hmls@helios.rz.tu-clausthal.de (Lutz Schroer)
  4. Subject: Re: TPW 1.5 dialog error -1
  5. Message-ID: <1993Jan7.164520.11546@solaris.rz.tu-clausthal.de>
  6. Sender: root@solaris.rz.tu-clausthal.de (Operator)
  7. Organization: Techn. Univ. Clausthal
  8. X-Newsreader: Tin 1.1 PL5
  9. References: <1992Dec23.155242@masg9.epfl.ch>
  10. Date: Thu, 7 Jan 1993 16:45:20 GMT
  11. Lines: 36
  12.  
  13. Yves Mottet (momo@masg9.epfl.ch) wrote:
  14. > After making a 
  15. >    Dlg := New();
  16. >    ExecDialog(Dlg);
  17. >    
  18. > I get an Application Error:
  19. >    Error Code = -1
  20. > But if I execute my program with the WorkShop iconized (even empty), this error DOES NOT occur...
  21. > How is that possible ?
  22.  
  23. You seem to use the 'bordlg" style in your dialogs. These dialogs require
  24. the presence of the BWCC.DLL somewhere in the memory. If you have iconized
  25. the Workshop it has loaded the DLL. If not, you have to load it yourself.
  26.  
  27. The principle is as follows:
  28.  
  29. Use   'LoadLibrary()' to load the DLL (Look into then freaky manual for the 
  30.                        exact parameters, I don't know them
  31.                        by heart :-( )
  32.  
  33. After running the programme you have to call 'FreeLibrary()' to clear the
  34. memory. otherwise the DLL would stay in memory until Windows is ended.
  35.  
  36. Greetings from rainy cold Clausthal-Zllerfeld
  37.   Lutz Schroer    
  38.  
  39. -----------------------------------------------------------------
  40.      Lutz Schroer              e-mail:hmls@sun.rz.tu-claustahl.de
  41.      Osteroeder Str. 6
  42.      W-3392 Clausthal-Zellerfeld      | Switch off your mind
  43.      (Federal Republic of Germany)    | and let the heart decide.
  44. --------------------------------------+--------------------------
  45.   
  46.  
  47.