Converting a stand-alone Delphi-made .tlb file to .ridl - delphi

How does one convert a stand-alone .tlb file created in a pre-2009 version of Delphi to a .ridl file using Delphi 2010? .tlb files that are part of projects get automatically converted, but this particular file is not part of any project.

try using the tlibimp.exe utility located in C:\Program Files\Embarcadero\RAD Studio\7.0\bin
tlibimp –I thetlbfile.tlb

Related

Vclimg: Needs Vclimg.bpl file from its compiled file Vclimg.dcp

I'm using the Rad Studio 10.4.2 Sydney.
I build a project with runtime packages. One package required - Vclimg.dcp. The final program needs the Vclimg.bpl for that runtime plugin to load successfully.
I search for it on my PC but there is no such a bpl file, only it's dcp equivalent (Vclimg.dcp).
Can we build the *.bpl file from only its compile file *.dcp. If we can, then how? If not, from where can I get the required Vclimg.bpl for my runtime plugin?
The required bpl filename was Vclimg followed by the version number:
Vclimg270.bpl
So always keep in your mind that the version number is a part of the filename.

Replace dll files for opencv and use in visual studio

I need to use dll files that I have been given and that are modifications of opencv dll files. I have tried to replace the dll files by their modified dll files in the folder opencv where my dll files are. But then in visual studio 2015 I get the error "LNK2001 unresolved external symbol".
How can I replace my dll files by the new ones and use them in visual studio ?
Thanks a lot for your help !

How not to compile installed packages everytime anew with the Application that uses it?

When I install a package in the IDE and use it in a project, it gets recompiled (DCUs are replaced) everytime I compile my project.
I can't imagine that this is intended - the RTL and VCL are not compiled each time either, are they?
I have played a bit with the paths in Tools > Options > Environment Options > Delphi Options > Library, but without success.
I have found a construction allowing compilation of my project without recompiling the package having DCUs and PASs in diffenent paths, but in this construction Delphi is not able to locate the sources at all from the Code Editor (SHIFT-clicking for example), so this is not an option.
To avoid recompilation you have to have separate folders for .dcu files and .pas files.
Usually this is done by settings the output dir in a package contained in the library. You build the package and it will produce the .dcu files in a output folder that is different from the source folder.
To use the package you then:
have to point the library path to the output folder (with the compiled .dcu files).
can optionally point the search path to the source folder (with the .pas files).
This gets a little more complicated when you have .dfm files in the package as well.
Every .pas file that the compiler sees in the library path is recompiled. (Actually only the last instance, because you can have the same unit in different directories that are listed in the library path).
To enable IDE features like CTRL-click you have to set the {$Y+} compiler switch in your package which can be done in the IDE Compiling options:
http://docwiki.embarcadero.com/RADStudio/XE4/en/Compiling#Debugging_Options

Is it possible to run an exe file linked with different version of dll?

For example, I have a exe file which is compiled with OpenCV 1.0. If the dll is downward compatibility, how can I run the exe file in a machine with OpenCV 2.4.6?
you can't.
either supply the right dll version (1.0) or recompile the src code.

Compiler error when compiling runtime package using MSBuild on Delphi XE2

I am in the process of upgrading our build server (Jenkins) to Delphi XE2. While compiling a runtime package the following error occurs:
ComponentsR.vrc(61): error RC2135: file not found: ComponentsR_Icon4.ico
There are no icons or resources in this runtime package, so I don't know what to do with this message. What's the "vrc" file btw?
Thanks for your help.
This happens while upgrading the dproj file of a package. The entry is created but the ico file is not (it is not used anyway).
Open the dproj file, search for the ico name and delete that entry.

Resources