home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / tools / 950 < prev    next >
Encoding:
Text File  |  1992-09-14  |  2.1 KB  |  50 lines

  1. Path: sparky!uunet!news.centerline.com!hroudland!cparker
  2. From: cparker@centerline.com (Charles Parker)
  3. Newsgroups: comp.os.ms-windows.programmer.tools
  4. Subject: Re: Error 5 with Borland C++ and OWL
  5. Date: 14 Sep 1992 16:11:50 GMT
  6. Organization: CenterLine Software
  7. Lines: 36
  8. Distribution: world
  9. Message-ID: <192dk6INN438@armory.centerline.com>
  10. References: <1992Sep14.143420.20033@athena.mit.edu>
  11. Reply-To: cparker@centerline.com
  12. NNTP-Posting-Host: 140.239.2.37
  13.  
  14. In article 20033@athena.mit.edu, yev_g@athena.mit.edu (Yevgeny Gurevich) writes:
  15. >In article <1992Sep13.065343.25286@silogic.uucp> markd@silogic.uucp (Mark C. DiVecchio (K3FWT)) writes:
  16. >>
  17. >
  18. >>When I run it by double clicking on the program name using the
  19. >>File Manager, it won't put up the dialog box on exiting but rather
  20. >>gets a Error 5.
  21. >>
  22. >
  23. >You're right in thinking that your application needs to access
  24. >BWCC.DLL. >yev_g@athena.mit.edu
  25. >500 Memorial Drive, Cambridge, MA.  [ Yevgeny Gurevich ]
  26.  
  27. While it is possible that not having BWCC.DLL loaded is the source
  28. of the problem, my experience has been that apps that have the BWCC 
  29. problem manifest the symptom of simply never appearing on the screen,
  30. like you double-click on them and nothing happens.
  31.  
  32. BTW, to load BWCC.DLL, all you do is make sure to link app w/ BWCC.LIB,
  33. #include <bwcc.h> and call BWCCGetVersion() at the beginning of the
  34. program (myTApplication::InitMainWindow() is the standard place)
  35.  
  36. but I was going to say that the error -5 usually happens when the
  37. program tries to load a resource (such as a dialog box) and fails. This
  38. could happen if you had created an external binary resource file for
  39. the dialog box. In this case, if you did not start up the program in
  40. the directory where this resource was located, (quite posssible that
  41. FileManager does not do this) then a load of the resource would fail,
  42. resulting in the error -5. Hope it helps.
  43.  
  44. ---
  45. ---------------------------------------------------------
  46.                                        cyberspace
  47. momma, don't let yer children grow up to be ^ cowboys ...
  48. ---------------------------------------------------------
  49.  
  50.