home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / mswindo / programm / misc / 3318 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.9 KB  |  54 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!mcsun!sunic!aun.uninett.no!nuug!nntp.uio.no!josteinl
  3. From: josteinl@saga.oih.no (LEIRA JOSTEIN)
  4. Subject: Re: BORDLG class dialog boxes
  5. Message-ID: <josteinl.1@saga.oih.no>
  6. Summary: problems with bordlg style dialog boxes
  7. Keywords: borland mswindows dialog
  8. Sender: news@ulrik.uio.no (Mr News)
  9. Nntp-Posting-Host: 128.39.89.37
  10. Organization: Oslo College of Engineering
  11. References: <10966@uqcspe.cs.uq.oz.au>
  12. Date: Mon, 9 Nov 1992 14:15:37 GMT
  13. Lines: 39
  14.  
  15. In article <10966@uqcspe.cs.uq.oz.au> jonmac@cs.uq.oz.au
  16. (John McCormack) writes:
  17.  
  18. >I've created a number of dialog boxes using Borlands BORDLG style
  19. >in the resource workbench. They work fine on my system ( which has
  20. >all of the borland stuff included ) but when I move the application
  21. >to a machine which doesnt have Borland C++ installed, the dialog boxes 
  22. >won't come up. I assume the problem has something to do with windows
  23. >being unable to find the BORDLG style ( ?? missing DLL ?? ). I've included
  24. >the BWCC.DLL with the app and it still doesnt work. Any ideas would be
  25. >appreciated!
  26.  
  27. You'r right. You must load the BWCC.DLL. There are two ways to do it.
  28.  
  29. First method:
  30.  
  31.   Enter these two lines of code at the start of your program:
  32.  
  33.     HANDLE hDLL;         /* This line could be defined in the app-class */
  34.     hDLL = LoadLibrary("BWCC.DLL"); /* and this line in the constructor */
  35.  
  36.   and this line at the end (of WinMain):
  37.  
  38.     FreeLibrary(hDLL);              /* and this line in the destructor */
  39.  
  40.   Then you should link your program with BWCC.LIB and IMPORT.LIB. (The 
  41.   Borland documentation says the linking order i important.)
  42.  
  43. Second method:
  44.  
  45.   Insert this line into WIN.INI under the [windows]-paragraph:
  46.  
  47.     load=loadbwcc.exe
  48.  
  49. For both methods you still have to include the BWCC.DLL file, so I don't
  50. know which method you'd prefer. I would fall down on the first (I think).
  51.  
  52. Jostein Leira in Oslo (now programming CommonView)
  53.  
  54.