Solved

BC4.5 App Expert error

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
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 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 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.

623 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