Solved

BC4.5 App Expert error

Posted on 1997-01-16
1
655 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

708 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

12 Experts available now in Live!

Get 1:1 Help Now