Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Trying to avoid using CW3230.DLL-URGENT

Posted on 1999-01-11
6
Medium Priority
?
823 Views
Last Modified: 2009-12-16
Hi all,


  I am using Borland C++5.02 and try to write a basic program whose main window must  not be visible. My situation is the following;
  To have an invisible window,  I opened a project as WIN32 GUI application  and use the  CreateWindowEx function in WinMain. By giving proper flag values to CreateWindowEx function I managed to have a nonvisible Windows application which is about 8K size. But after all my app. is heavily depends on a Borland ' s Dll which is cw3230.dll.

My program will be a small part of a project. And this project will be shipped to users which probably do not have this CW3230 dll. I do not want to shipp the dll as a part of the application. The size of the dll is 300 Kb, and I want to ship only my exe without this dll

Is it possible to do this,  How Can I get over this problem.

Regards...

0
Comment
Question by:msac_m
6 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 1181855
Does Borland provide a static library version of CW3230 that you can link to?  If so, use it.  If not, then you need to determine which functions in CW3230.DLL your app is using and replace then with something else.  It's possible that Borland has included the source to this library with the compiler and you may be able to extract the parts you need.

Do you know what CW3230 is?  Are you using OWL or is this strictly a Win32 app?
0
 
LVL 22

Expert Comment

by:nietod
ID: 1181856
I'm not sure what the cs3230 DLL is for.  Do you know?  It might be the C++ run-time library.  If so, under the project options look to see if there is an option to "statically link to the run-time library"  as opposed to useing the "dynamic link run-time library".  This will increase the size of you EXE, but (possibly only a little.) but may fix your problem.
0
 
LVL 86

Expert Comment

by:jkr
ID: 1181857
Hmm, i experienced the same using VC++. By replacing the MS startup code with a 'light' version, we managed to reduce the size of the executable to nearly 4k. If BC++ allows to set the image entry point symbol, this solution might work for you also...
0
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.

 
LVL 86

Expert Comment

by:jkr
ID: 1181858
Ooops, i left out the most important thing (too fascinated by nietods comment about the C++ runtime ;-) - you might want to use Quiview from the explorer's context menu to find out what functions are imported from this DLL...
0
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 1020 total points
ID: 1181859
The CW3230.DLL is the Borland C++ runtime DLL. You will need to build your application using static libraries and NOT DLLs to get around this problem. If you are using OWL or the class libraries, make sure _OWLDLL, _BIDSDLL, or _RTLDLL are not defined. Defining these will cause the DLL versions of the libraries to be used.
0
 

Author Comment

by:msac_m
ID: 1181860
Okay Thui,

  I have already looked at the imported functions from the produced exe. They are all API functions. Anyway I want to took
your advice, check that _OWLDLL,
    _BIDSDLL, or _RTLDLL are not defined Then recompile the program with the static linking option turned on.

Thanx
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
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 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.

916 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