Solved

BC4.5 App Expert error

Posted on 1997-01-16
1
659 Views
Last Modified: 2008-03-10
Hi, I have an interesting problem with Borland C v.4.5 running in Windows 95
When you create an AppExpert Windows application, using all the default values, apart from choosing "Dialogue client" fr the window model, it works fine, but if you then go into resource workshop and just add (say) a 3D line, compile it and run it, it works while Borland C is in memory, but if you shut down BC and just run the executable, it gives you a "Create fail for window error" - any ideas what is happening and does anyone else have the same problem?

                        Thanks,
                              Nick





0
Comment
Question by:NickB
1 Comment
 

Accepted Solution

by:
mattyg102096 earned 50 total points
ID: 1161913
The 3D line you are trying to use is not a standard user interface element of Windows.  It is provided by the BWCC.DLL (Borland Windows Custom Controls).  Your application needs to load in this library in order to use these extra features.

When you run under the Borland C++ IDE, everything works fine because the IDE itself uses BWCC.DLL, so it is memory.  But you need to load this DLL yourself so that you know it is loaded for your program.

When you generate your AppExpert projects, you need to make sure that you enable the BWCC library... there is an AppExpert which I believe is under Application | Advanced Options | Control Style.

Since an AppExpert project uses OWL, it really easy to add BWCC support once you've generated the project because the class TApplication has a member function called EnableBWCC that does the work for you.  Just add

     EnableBWCC();

to the constructor of your TApplication-derived class.  The function has default values for its 2 possible arguments which do what you want, so you don't need to pass any parameters to the function.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now