Solved

BC4.5 App Expert error

Posted on 1997-01-16
1
673 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

756 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