Solved

BC4.5 App Expert error

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

Technology Partners: 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

Suggested Solutions

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 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.

739 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