I'm still new with delphi and I developed an application that loads at runtime bpl files following this guide http://edn.embarcadero.com/article/27178
The bpl files will be in the same folder as the main app, and I was wondering what is the security in doing this?
I found this question External modules security but it doesn't fully answers mine.
I mean, if the clients copy these bpl files and give them to other developers, can they use/access them if they have the same delphi version? Or in some ways access the source code?
These are just executable modules like .exe or .dll modules. They are exactly as secure as any other executable module.
If the clients copy these bpl files and give them to other developers, can they use/access them if they have the same delphi version?
Yes.
Or in some ways access the source code?
No. Compiled bpl package files do not contain source code.
Related
I cannot find any documentation, if VSTO AddIns are supported by SDK-style projects.
I already installed and used h. van brakels project2015to2017.migrate2019.tool. The resulting project files are usual class libraries and no more Powerpoint AddIns. Thus for example the projects cannot be startet anymore from the IDE for debugging.
The BootStrapperpackage and the ProjectExtension have not been transfered to the new file format. Additionally ProjectTypeGuids were not transfered. Maybe this marked the project as a VSTO Addin in the old style project files.
I'm frustrated I cannot find any statement if the SDK-style project files does support (and in this case how?) or does not support (and in this case why?) vsto addin projects! And furthermore, why does nobody dare to state/write that. It would make things clear and I don't have to waste my time searching for it ...
Thanks for your help,
Karl
To my knowledge, a VSTO project file cannot be converted to the newer SDK format. This is mostly because of the ProjectTypeGuids.
In order to properly convert a project file to the newer SDK format, there should be an SDK for the ProjectTypeGuids.
To my knowledge there is no VSTO SDK to use in the header of your project file.
[Edit]
MSBuild 15.0 introduced the concept of the "project SDK", which simplifies using software development kits that require properties and targets to be imported.
The information from the above link indicates that Project SDKs are the preferred successor to the "standard" MSBuild props and targets.
[Edit 2]
Have you considered the newer web based Add-In?
I have more than 50 dll files in the bin folder in my mvc project. As someone who has just switched from web forms to mvc, why are there so many dll files. Only 2 files belong to me, K20.DAL and K20.BLL files. Are there any IIS configurations so as not to upload other DLL files to the server for each project?
All the other DLLs are present because they are referenced by your K20.DAL and K20.BLL project references. Few DLLs are part of MVC framework. When ever your application is running, only the DLL which is needed by your code currently executing will be loaded into AppDomain memory. This is on-demand-loading. After the code execution is over, the DLL will be unloaded from the memory. If some DLL which is needed by your code, but if it is not present, then your code breaks. There may be some shared DLLs also used by your application which will there in .net GAC assembly folder but not in bin folder.
So there is no harm to deploy these DLLs to server if you are not sure whether your application is using them or not.
Hope this clarifies your doubt.
I want to create a simple application with a few static libraries from OpenCV. I managed to link all necessary .lib files, including opencv_world300d.lib, but at run-time it requires the opencv_world300d.dll. I can add the directory where this DLL is, but I just want a single .exe (no additional files). I clicked everywhere the option \MT or \MTd (no dlls)
How can I achieve this?
It is for x86, visual studio 2012 (v110) and OpenCV, version 3.0.0. In the lib file there is a reference to the dll, unfortunately.
OpenCV application on MS visual studio c++ needs a DLL?
Not necessarily. You can link to OpenCV static libraries, which are in the folder staticlib, under OPENCV_DIR/build/.../staticlib.
The libraries in the lib folder are for dynamic linking, so you need also the .dll.
You can have a look at this answer for the step-by-step configuration.
I am working with nuget and find it excellent with my MVC4 project. I use it for all my external dependencies.
I have run in to one small problem with it. For example, installing the jQuery package, it places the jQuery files in to the Scripts folder. My preference is that it places the javascript files in to a libraries folder within scripts. So instead of
Scripts/jquery-1.8.3.js
I want to place it in
Scripts/libraries/jquery-1.8.3.js
Yes I can manually move it but then I lose the features of nuget. Any way that I can direct where a package places the files like this?
This is not supported yet
dupe of
NuGet scripts to different directory
, nuget codeplex issue is here http://nuget.codeplex.com/workitem/1914
I need to code a simple form application and I want to make it easy to deploy (without installing libraries or dependencies), I don't want to use visual studio cpp or csharp because clr apps compile with .net frameworks and I have no much experience with mfc and dialogs.
So I was wondering which libraries does a simple delphi vcl forms app (those using TForm) use, because I've never had to install anything to run simple delphi apps.
Delphi embeds everything in the EXE file. There are libraries that depend on BPL or DLL files, but for a simple application, the EXE is all you need...