开发者

C++ Builder XE: Installing a component

I'm havi开发者_如何转开发ng some troubles installing components for the C++ Builder XE: when I try to install a the component, the following error appears:

"The project already contains a form or module named somename"

I once installed the wrong version of this component and removed it afterwards. Since then, I'm not able to install it again. I searched the options of the C++Builder XE for include and library paths as well as the registry and removed all entries i could find that pointed to the component. Unfortunately, I could not get rid of the above error.

Any ideas?


In which package did you install the wrong version of the component? The package probably still contains the component and that is why you can't install the proper version. Go to Component -> Install packages... and find the package and the components it has. Now look if the component is still in there.

If it is, uninstall the package, open the package source (the .dpk) and remove the component from the package, using the Project Manager. Now install the package again. Check in the dialog I mentioned above, and see if the component is gone.

If it is gone, you can install the new one.


Found out how to deal with the error. When using the wizard, the following error pops up :

"The project already contains a form or module named somename"

I removed the .dcu file from the project (it's the components icon) and added the .pas file manually. The .dcu file is than added again and manually building and installing the component then works!

The same error message occurs if the package name is the same as the name of the .pas file.

@Rudy: I guess this is a bug in the wizard?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜