Solved

Trying to avoid using CW3230.DLL-URGENT

Posted on 1999-01-11
6
808 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
[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
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
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!

 
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 340 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
FMX enumerated colours 2 155
Dynamically allocate memory 9 76
Outlook 13 100
Winapi.Windows.hpp problem 7 44
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…
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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…

734 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