This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I'm trying to use WPF elements that are included in a C# assembly from a C++/CLI project. I've tried to use lc.exe to create a license file to include but it throws exceptions about not finding a suitable license. What is the proper method of integrating the .licx license file for C++/CLI projects?
Thanks. |
|
|
I'm not too familiar with the structure of C++/CLI projects. I assume the C#/VB procedure of including a licenses.licx file in the project with a Build Action of Embedded Resource isn't working? If not, you can use the runtime licensing tool to generate a key that you can use manually. To do this, run the wpfetrl command-line tool (in the installation directory), passing it the licence key from the .lic file, e.g. wpfetrl ABCD-1234-EFGH This will print out a runtime licence key. Then, in your program, before creating any WPF Elements controls, call Mindscape::WpfElements::Elements::InstallLicense(licenseKey) where licenseKey is a CLR string containing the runtime licence key that was printed out by wpfertl. NOTE: You will need a nightly build to use runtime license installation. You can get this from the store. If upgrading to a nightly is not an option, and assuming that including licenses.licx with the Embedded Resource build action doesn't work, let us know and we'll investigate further. |
|