Solved

"WARNING. Duplicate resource(s)" Error Message

Posted on 2004-04-15
5
2,153 Views
Last Modified: 2010-08-05
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\QDBCtrls.res resource kept; file c:\borland\delphi6\Lib\dbctrls.res resource discarded.
[Error]   Type  2 (BITMAP), ID DBN_DELETE:
[Error]     File c:\borland\delphi6\Lib\QDBCtrls.res resource kept; file c:\borland\delphi6\Lib\dbctrls.res resource discarded.
[Error]   Type  2 (BITMAP), ID DBN_EDIT:
[Error]     File c:\borland\delphi6\Lib\QDBCtrls.res resource kept; file c:\borland\delphi6\Lib\dbctrls.res resource discarded.
[Error]   Type  2 (BITMAP), ID DBN_FIRST:
[Error]     File c:\borland\delphi6\Lib\QDBCtrls.res resource kept; file c:\borland\delphi6\Lib\dbctrls.res resource discarded.
[Error]   Type  2 (BITMAP), ID DBN_INSERT:
[Error]     File c:\borland\delphi6\Lib\QDBCtrls.res resource kept; file c:\borland\delphi6\Lib\dbctrls.res resource discarded.
[Error]   Type  2 (BITMAP), ID DBN_LAST:
[Error]     File c:\borland\delphi6\Lib\QDBCtrls.res resource kept; file c:\borland\delphi6\Lib\dbctrls.res resource discarded.
[Error]   Type  2 (BITMAP), ID DBN_NEXT:
[Error]     File c:\borland\delphi6\Lib\QDBCtrls.res resource kept; file c:\borland\delphi6\Lib\dbctrls.res resource discarded.
[Error]   Type  2 (BITMAP), ID DBN_POST:
[Error]     File c:\borland\delphi6\Lib\QDBCtrls.res resource kept; file c:\borland\delphi6\Lib\dbctrls.res resource discarded.
[Error]   Type  2 (BITMAP), ID DBN_PRIOR:
[Error]     File c:\borland\delphi6\Lib\QDBCtrls.res resource kept; file c:\borland\delphi6\Lib\dbctrls.res resource discarded.
[Error]   Type  2 (BITMAP), ID DBN_REFRESH:
[Error]     File c:\borland\delphi6\Lib\QDBCtrls.res resource kept; file c:\borland\delphi6\Lib\dbctrls.res resource discarded.
[Error]   Type 10 (RCDATA), ID TLOGINDIALOG:
[Error]     File c:\borland\delphi6\Lib\QDBLogDlg.xfm resource kept; file c:\borland\delphi6\Lib\DBLOGDLG.dfm resource discarded.
[Error]   Type 10 (RCDATA), ID TPASSWORDDIALOG:
[Error]     File c:\borland\delphi6\Lib\QDBPWDlg.xfm resource kept; file c:\borland\delphi6\Lib\DbPWDlg.dfm resource discarded.

Thanks for any help,
Khalid.
0
Comment
Question by:Qosai_DBA
[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
  • 3
  • 2
5 Comments
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 10832155

   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 ...
0
 
LVL 1

Author Comment

by:Qosai_DBA
ID: 10832202
Hi,
this message occure on my current application only
but when create new application
there is no problem

Khalid.
0
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 10832213

   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....
0
 
LVL 12

Accepted Solution

by:
Ivanov_G earned 100 total points
ID: 10832265

   It don't occure in the new application, because it is generated properly. If your current application you added something to the uses clause and then forgot to remove it.

   Look in the uses clause and remove one of them. This should fix the problem ....
0
 
LVL 1

Author Comment

by:Qosai_DBA
ID: 10832311
Hi again,
Thanks Ivanov_G, I do as you tell me in the last comment and the problem solved.

Thanks again,
Khalid.

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying 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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Suggested Courses
Course of the Month10 days, 13 hours left to enroll

628 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