Originally Posted by
Nicolaj Larsen
so if im right, it needs to be compiled in that program?,
It is likely to compile with that Compiler; I compiled the code with about 20 warnings and one errors using
"CodeGear C++ 6.10 for Win32 Copyright (c) 1993-2008 CodeGear"
Code:
dneedle.cpp:
Warning W8057 dneedle.cpp 33: Parameter 'Sender' is never used in function _fastcall TfrmMain::btnCenterClick(TObject *)
Warning W8057 dneedle.cpp 41: Parameter 'Sender' is never used in function _fastcall TfrmMain::btnNeedleClick(TObject *)
Warning W8057 dneedle.cpp 48: Parameter 'Sender' is never used in function _fastcall TfrmMain::btnLoadClick(TObject *)
Warning W8057 dneedle.cpp 68: Parameter 'Sender' is never used
in function _fastcall TfrmMain::imgMouseUp(TObject *,TMouseButton,TShiftState,int,int)
Warning W8057 dneedle.cpp 68: Parameter 'Button' is never used in function _fastcall TfrmMain::imgMouseUp(TObject *,TMouseButton,TShiftState,int,int)
Warning W8057 dneedle.cpp 68: Parameter 'Shift' is never used in function _fastcall TfrmMain::imgMouseUp(TObject *,TMouseButton,TShiftState,int,int)
Warning W8071 dneedle.cpp 119: Conversion may lose significant digits in function _fastcall TfrmMain::btnPlayClick(TObject *)
Warning W8071 dneedle.cpp 132: Conversion may lose significant digits in function _fastcall TfrmMain::btnPlayClick(TObject *)
Warning W8080 dneedle.cpp 137: 'radius0' is declared but never used in function _fastcall TfrmMain::btnPlayClick(TObject *)
Warning W8004 dneedle.cpp 137: 'dr' is assigned a value that is never used in function _fastcall TfrmMain::btnPlayClick(TObject *)
Warning W8057 dneedle.cpp 137: Parameter 'Sender' is never used in function _fastcall TfrmMain::btnPlayClick(TObject *)
Warning W8071 dneedle.cpp 199: Conversion may lose significant digits in function _fastcall TfrmMain::getDirection(double *,double *)
Warning W8071 dneedle.cpp 199: Conversion may lose significant digits in function _fastcall TfrmMain::getDirection(double *,double *)
Warning W8018 dneedle.cpp 198: Assigning int to TColor in function _fastcall TfrmMain::getDirection(double *,double *)
Warning W8071 dneedle.cpp 198: Conversion may lose significant digits in function _fastcall TfrmMain::getDirection(double *,double *)
Warning W8071 dneedle.cpp 198: Conversion may lose significant digits in function _fastcall TfrmMain::getDirection(double *,double *)
ilink32.exe -q -ap -L"C:\Program Files\Borland\BDS\4.0\lib" -L"C:\Program Files\Borland\BDS\4.0\lib\psdk" c0x32 obj\Release\dneedle.obj ,bin\Release\dneedle.exe,,cw32mt.lib import32.lib ,,
Error: Unable to open file 'DNEEDLE.DFM'
I am not sure of the cause of the error.
My random guess on the command to compile.
Code:
bcc32.exe -q -w -x -O2 -I"C:\Program Files\Borland\BDS\4.0\include" -oobj\Release\dneedle.obj -c dneedle.cpp
NOTE: I never setup my Borland compiler to do VCL projects; so, it could be a simple configuration error.
I have no desire to try doing a VCL project; so, I will not be likely to help you further.
Edit: The last time I used the Borland C++ Compiler on a real project was in 1999-2000 (wrote an DLL that downloaded binary files from an MS SQL 7 server).
Since, then I have only used it to help newbies do command line projects; it has been too long for me to give any good help with a VCL project. I never did a VCL project in my life; just read a little about them when I used the Compiler in 2000.
Tim S.