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