Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using VCL-unit (FileCtrl) in static console application

40 views
Skip to first unread message

Mikhael FITOUSSI

unread,
Aug 6, 1999, 3:00:00 AM8/6/99
to
I want to use DirectoryExists in a console application
I write
#include <FileCtrl.hpp>
when I compile the project without runtime packages I recieve a linker error
(it doesn't find DirectoryExists in any obj...)
I must run my console application without runtime packages because it have
to work on others computers (that does not have BCB 4).
How to do that?
thanks
mich...@lambda.co.il

Boian Mitov

unread,
Aug 6, 1999, 3:00:00 AM8/6/99
to Mikhael FITOUSSI

#include <condefs.h>
#pragma hdrstop

//---------------------------------------------------------------------------
USELIB("..\Lib\Release\vclx40.lib");
//---------------------------------------------------------------------------
#pragma argsused
int main(int argc, char* argv[])
{
DirectoryExists ( "Boza" );
return 0;
}


Mikhael FITOUSSI wrote:

> I want to use DirectoryExists in a console application

--
Boian Mitov

www.mitov.com
mi...@mitov.com

Damon Chandler

unread,
Aug 6, 1999, 3:00:00 AM8/6/99
to
Hi Mikhael,

> #include <FileCtrl.hpp>
> when I compile the project without runtime packages I recieve a linker error
> (it doesn't find DirectoryExists in any obj...)

Try linking the corresponding obj...

#pragma link "FileCtrl"


Good luck!

--------------------------------------
Damon Chandler

http://bcbcaq.freeservers.com
Answers to <Commonly Asked Questions>

Boian Mitov

unread,
Aug 7, 1999, 3:00:00 AM8/7/99
to Damon Chandler
Nope. Didn't work for me FileCtrl.obj is missing. See my solution :

USELIB("..\Lib\Release\vclx40.lib");

Take care
Boian

P.S. Great work Damon. I am really impressed. I am copying most of your code
samples into a word document for my own usage. They are great samples. Keep it up.

Damon Chandler wrote:

--
Boian Mitov

www.mitov.com
mi...@mitov.com

0 new messages