Qosai_DBA
asked on
"WARNING. Duplicate resource(s)" Error Message
Hi all,
"[Error] WARNING. Duplicate resource(s) " this error message are occure just when place any DBControls to the form and try to compile the application.
this is the complete error message
[Error] WARNING. Duplicate resource(s):
[Error] Type 2 (BITMAP), ID DBN_CANCEL:
[Error] File c:\borland\delphi6\Lib\QDB Ctrls.res resource kept; file c:\borland\delphi6\Lib\dbc trls.res resource discarded.
[Error] Type 2 (BITMAP), ID DBN_DELETE:
[Error] File c:\borland\delphi6\Lib\QDB Ctrls.res resource kept; file c:\borland\delphi6\Lib\dbc trls.res resource discarded.
[Error] Type 2 (BITMAP), ID DBN_EDIT:
[Error] File c:\borland\delphi6\Lib\QDB Ctrls.res resource kept; file c:\borland\delphi6\Lib\dbc trls.res resource discarded.
[Error] Type 2 (BITMAP), ID DBN_FIRST:
[Error] File c:\borland\delphi6\Lib\QDB Ctrls.res resource kept; file c:\borland\delphi6\Lib\dbc trls.res resource discarded.
[Error] Type 2 (BITMAP), ID DBN_INSERT:
[Error] File c:\borland\delphi6\Lib\QDB Ctrls.res resource kept; file c:\borland\delphi6\Lib\dbc trls.res resource discarded.
[Error] Type 2 (BITMAP), ID DBN_LAST:
[Error] File c:\borland\delphi6\Lib\QDB Ctrls.res resource kept; file c:\borland\delphi6\Lib\dbc trls.res resource discarded.
[Error] Type 2 (BITMAP), ID DBN_NEXT:
[Error] File c:\borland\delphi6\Lib\QDB Ctrls.res resource kept; file c:\borland\delphi6\Lib\dbc trls.res resource discarded.
[Error] Type 2 (BITMAP), ID DBN_POST:
[Error] File c:\borland\delphi6\Lib\QDB Ctrls.res resource kept; file c:\borland\delphi6\Lib\dbc trls.res resource discarded.
[Error] Type 2 (BITMAP), ID DBN_PRIOR:
[Error] File c:\borland\delphi6\Lib\QDB Ctrls.res resource kept; file c:\borland\delphi6\Lib\dbc trls.res resource discarded.
[Error] Type 2 (BITMAP), ID DBN_REFRESH:
[Error] File c:\borland\delphi6\Lib\QDB Ctrls.res resource kept; file c:\borland\delphi6\Lib\dbc trls.res resource discarded.
[Error] Type 10 (RCDATA), ID TLOGINDIALOG:
[Error] File c:\borland\delphi6\Lib\QDB LogDlg.xfm resource kept; file c:\borland\delphi6\Lib\DBL OGDLG.dfm resource discarded.
[Error] Type 10 (RCDATA), ID TPASSWORDDIALOG:
[Error] File c:\borland\delphi6\Lib\QDB PWDlg.xfm resource kept; file c:\borland\delphi6\Lib\DbP WDlg.dfm resource discarded.
Thanks for any help,
Khalid.
"[Error] WARNING. Duplicate resource(s) " this error message are occure just when place any DBControls to the form and try to compile the application.
this is the complete error message
[Error] WARNING. Duplicate resource(s):
[Error] Type 2 (BITMAP), ID DBN_CANCEL:
[Error] File c:\borland\delphi6\Lib\QDB
[Error] Type 2 (BITMAP), ID DBN_DELETE:
[Error] File c:\borland\delphi6\Lib\QDB
[Error] Type 2 (BITMAP), ID DBN_EDIT:
[Error] File c:\borland\delphi6\Lib\QDB
[Error] Type 2 (BITMAP), ID DBN_FIRST:
[Error] File c:\borland\delphi6\Lib\QDB
[Error] Type 2 (BITMAP), ID DBN_INSERT:
[Error] File c:\borland\delphi6\Lib\QDB
[Error] Type 2 (BITMAP), ID DBN_LAST:
[Error] File c:\borland\delphi6\Lib\QDB
[Error] Type 2 (BITMAP), ID DBN_NEXT:
[Error] File c:\borland\delphi6\Lib\QDB
[Error] Type 2 (BITMAP), ID DBN_POST:
[Error] File c:\borland\delphi6\Lib\QDB
[Error] Type 2 (BITMAP), ID DBN_PRIOR:
[Error] File c:\borland\delphi6\Lib\QDB
[Error] Type 2 (BITMAP), ID DBN_REFRESH:
[Error] File c:\borland\delphi6\Lib\QDB
[Error] Type 10 (RCDATA), ID TLOGINDIALOG:
[Error] File c:\borland\delphi6\Lib\QDB
[Error] Type 10 (RCDATA), ID TPASSWORDDIALOG:
[Error] File c:\borland\delphi6\Lib\QDB
Thanks for any help,
Khalid.
ASKER
Hi,
this message occure on my current application only
but when create new application
there is no problem
Khalid.
this message occure on my current application only
but when create new application
there is no problem
Khalid.
If you want to create Cross-Platform Application remove dbctrls.pas - it is used for standart Windows based application.
else - remove QDBCtrls.pas.
I don't think you need something like the example below I gave....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi again,
Thanks Ivanov_G, I do as you tell me in the last comment and the problem solved.
Thanks again,
Khalid.
Thanks Ivanov_G, I do as you tell me in the last comment and the problem solved.
Thanks again,
Khalid.
Because you are using both QDBCtrls.pas and dbctrls.pas.
You should do something like this :
uses ......
{$IFDEF WINDOWS}
dbctrls.pas
{$ELSE}
QDBCtrls.pas
{$ENDIF}
These was predefined variable you should use instead of WINDOWS, but I don't remember it ...