开发者

How can I embed a licence.licx file in a cpp executable?

开发者 https://www.devze.com 2023-01-06 14:43 出处:网络
We are using a third party UI component which requires a licence.licx file. The problem is that the executable is a cpp project and embedding the licence.licx file into the dll which actually uses the

We are using a third party UI component which requires a licence.licx file. The problem is that the executable is a cpp project and embedding the licence.licx file into the dll which actually uses the third party component does not seem to work. By "does not work" I mean that we get runtime licensing errors when executing the program on a machine which does not have the third party lib installed. We are also using Prism, which means that the dll's are dynamically loaded at runtime.

Does anyone know how I can embed the licence.licx file into the cpp project or get the licensing system to resolve the l开发者_运维技巧icence file from a different location?


It seems that the Assembly Linker can add resources to any PE file, including the EXE generated by the native C++ compiler. You'd do this as a post-build step.

0

精彩评论

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