FatalError?

I encountered error message below when i trying to press the F9 and run the program.

[Fatal Error]SReport.dpr(60): Unit dxBarCustForm was compiled with a different version of ComCtrls.TOwnerDrawState

I have read the Help File but don't understand what causing this error.

My scenario is when i copy my source from one pc to another pc. Source PC is running delphi4 professional edition, and target pc is running delphi4 Enterprise edition client-server suite. Does this cause problem? What should i do ? How to solve this error?

Please Help!

 

softyanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MadshiCommented:
Hmmm... Have you tried rebuilding the whole project? (Alt-p-p, if I remember right).
What is this dxBarCustForm? Is this a 3rd party component? Do you have a pas file for that? Or only a dcu?
Perhaps you have installed different service packs on both Delphi installations?

Regards, Madshi.
0
DrDelphiCommented:
straight from the help file:


Description

This error occurs when the declaration of symbol declared in the interface part of a unit has changed, and the compiler cannot recompile a unit that relies on this declaration because the source is not available to it.  There are several possible solutions - recompile Unit1 (assuming you have the source code available), use an older version of Unit2 or change Unit2, or get a new version of Unit1 from whoever has the source code to it.
0
kifahCommented:
Hi,
standard, professional or enterprise they have difirent version number thus, any .pas file compiled under one of them, it need to recompile again. if you have the source of the VCL, then you can recompil it under the other (remember to delete the DCU, because delphi if found the dcu, will not recompile unless you ask to build all the projects).
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
brunoheCommented:
First delete all your DCUs as
kifah already said. If this dont helps, set the delphi vcl source paths (delphi/source/vcl...) in environement, options and 'build all'. perhaps delphi has to rebuild one of its own DCUs.
0
softyanAuthor Commented:
Though your answer may not suite me, but it sounds ok!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.