home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!wupost!darwin.sura.net!haven.umd.edu!wam.umd.edu!castanos
- From: castanos@wam.umd.edu (Jose Alberto Castanos)
- Subject: Re: Help needed with Borland C++ 3.1
- Message-ID: <1992Sep12.032835.20123@wam.umd.edu>
- Sender: usenet@wam.umd.edu (USENET News system)
- Nntp-Posting-Host: rac2.wam.umd.edu
- Organization: University of Maryland, College Park
- References: <1992Sep11.014350.1156@iti.gov.sg>
- Date: Sat, 12 Sep 1992 03:28:35 GMT
- Lines: 59
-
- In article <1992Sep11.014350.1156@iti.gov.sg> kevin@iti.gov.sg (Kevin Patt (SE)) writes:
- >Hi,
- >
- > I am doing some Windows programming using BC++ 3.1 and I am facing some
- >problems with compiling the source into a Windows executable. The situation
- >goes like this:
- >
- > The application will run with no problem at all if I run it by making use
- >of the "RUN" menu item in BC++3.1. The problem arises when I run it as a
- >stand-alone after compiling and I keep getting the error message "-5" everytime
- >I attempts to open any dialogs (those done using the Resource Workshop>. The
- >documentation says the error means "Window is invalid because Create did not
- >succeed".
- >
- > Can anyone help me in this? Thanks!
- >
- >--
- >Kevin Patt Information Technology Institute
- >Associate Member of Technical Staff Singapore
- >Email: (Internet) kevin@iti.gov.sg Tel: (065) 772-0471
- > (BITNet) kevinpatt@itivax.bitnet Fax: (065) 779-5966
-
-
- You are using Borland Custom Controls which make use of the BWCC.DLL
- (BWCC.DLL by default gets installed in the \WINDOWS\SYSTEM directory).
- To load this DLL do the following:
- - Add the file BWCC.LIB to your project (this file is in the \BORLANDC\LIB
- subdirectory)
- - Include a call to the function BWCCGetVersion() somewhere in your code
- before any dialog boxes are displayed (In processing WM_CREATE or in
- the InitMainWindow function, if you're using OWL).
-
- You could also force loading the library with the following code, avoiding
- the need to include the BWCC.LIB file:
-
- HINSTANCE hinstBWCC;
-
- .
- .
- .
-
- if (((UINT) hinstBWCC = LoadLibrary("BWCC.DLL") > HINSTANCE_ERROR) {
- [Library could not be loaded, so handle the error]
- }
- .
- .
- .
-
- When it's time to end the application:
-
- if ((UINT) hinstBWCC > HINSTANCE_ERROR)
- FreeLibrary (hinstBWCC);
-
-
- -------------------------------------------------------------------------------
- Jose A. Castanos | Computer Science Dept. |"If a person never contradicts
- (castanos@wam.umd.edu) | University of Maryland | himself, it must be that he
- | College Park, MD | says nothing." -M. de Unamuno
- -------------------------------------------------------------------------------
-