Archived

This topic is now archived and is closed to further replies.

CHollman82

Problem executing program outside of Borland

Recommended Posts

Hi, I just started going through your tutorials (I'm at 4 already!) but I noticed that when I try to run the exe from outside of Borland I get an error that says "A required DLL file, CW3230.DLL, was not found". The program executes fine from within Borland, so I don't understand why it won't work on it's own. Oh, and I don't know if this is important or not, but I removed the "#include vcl.h" and "USELIB ("glaux.lib");" lines because the commenting said that they were only needed for Visual C++ 4.0. Edited by - CHollman82 on November 1, 2001 10:38:51 PM

Share this post


Link to post
Share on other sites
quote:
Original post by CHollman82
Hi, I just started going through your tutorials (I''m at 4 already!) but I noticed that when I try to run the exe from outside of Borland I get an error that says "A required DLL file, CW3230.DLL, was not found". The program executes fine from within Borland, so I don''t understand why it won''t work on it''s own. Oh, and I don''t know if this is important or not, but I removed the "#include vcl.h" and "USELIB ("glaux.lib");" lines because the commenting said that they were only needed for Visual C++ 4.0.

Edited by - CHollman82 on November 1, 2001 10:38:51 PM


If I''m not mistaking, the 2 lines you removed shouldn''t be removed. That''s probably what''s causing your errors. Put them
back in and recompile and try again...


"And that''s the bottom line cause I said so!"

Cyberdrek
Headhunter Soft
A division of DLC Multimedia

Resist Windows XP''s Invasive Production Activation Technology!

"gitty up" -- Kramer

Share this post


Link to post
Share on other sites
If you''re using a version of Borland more recent than 4.0, then DO COMMENT OUT #include vcl.h and Uselib("glaux.lib"), but make sure you compile the program with glaux.lib.

Share this post


Link to post
Share on other sites
CW3230.DLL is the Borland C runtime. There is a compiler option somewhere whether to link statically or dynamically against it.

"I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours." - - Stephen Roberts

Share this post


Link to post
Share on other sites
I use the command line version of the Borland compiler - to compile with libraries you just call bcc32 source.cpp lib1.lib lib2.lib ...
Don''t know how you do it within the IDE. I assume there are some options somewhere - or maybe you need a project file containing the source and libraries?

Share this post


Link to post
Share on other sites
Borland is funny that way...just find the dll and put it with your program.





This has been a post by oglman, King of all that is holy.

Share this post


Link to post
Share on other sites
quote:
Original post by oglman
Borland is funny that way...just find the dll and put it with your program.


It''s not ''funny'' at all. It''s quite sensible.

The better way is to learn how to best use the tools that you have. Then you can choose whether you want ot statically or dynamically link with the run-time libraries.

Steve ''Sly'' Williams  Monkey Wrangler  Krome Studios

Share this post


Link to post
Share on other sites