473,468 Members | 1,369 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

licensing

I was having a really annoying problem getting some components I bought from
ComponentOne to work. I found this posting in their knowledge base which
seems to fix the problem. Is there a better workaround from Microsoft though
? It's a pain to keep adding these custom build steps.
It seems there is a bug in VC++ 2003. The licenses.licx is ignored during
the build process, therefore the licensing information is not included in
VC++ applications.

To fix this problem, extra steps must be taken to compile the licensing
resources and link them to the project. Note the following:

1. Build the C++ project as usual. This should create an exe file and also
a licenses.licx file with licensing information in it.

2. Copy the licenses.licx file from the app directory to the target folder
(Debug or Release).

3. Copy the C1Lc.exe utility and the licensed dlls to the target folder.
(Don't use the standard lc.exe, it has bugs.)

4. Use C1Lc.exe to compile the licenses.licx file. The command line should
look like this:

c1lc /target:MyApp.exe /complist:licenses.licx /i:C1.Win.C1FlexGrid.dll

5. Link the licenses into the project. To do this, go back to Visual
Studio, right-click the project, select properties, and go to the
Linker/Command Line option. Enter the following:

/ASSEMBLYRESOURCE:Debug\MyApp.exe.licenses

6. Rebuild the executable to include the licensing information in the
application.

--
Ray Hayes
http://www.rhbe.net
Nov 17 '05 #1
3 1758
On Sun, 13 Feb 2005 14:19:02 -0800, Ray Hayes
<Ra******@discussions.microsoft.com> wrote:
I was having a really annoying problem getting some components I bought from
ComponentOne to work. I found this posting in their knowledge base which
seems to fix the problem. Is there a better workaround from Microsoft though
? It's a pain to keep adding these custom build steps.
It seems there is a bug in VC++ 2003. The licenses.licx is ignored during
the build process, therefore the licensing information is not included in
VC++ applications.

To fix this problem, extra steps must be taken to compile the licensing
resources and link them to the project. Note the following:

1. Build the C++ project as usual. This should create an exe file and also
a licenses.licx file with licensing information in it.

2. Copy the licenses.licx file from the app directory to the target folder
(Debug or Release).

3. Copy the C1Lc.exe utility and the licensed dlls to the target folder.
(Don't use the standard lc.exe, it has bugs.)

4. Use C1Lc.exe to compile the licenses.licx file. The command line should
look like this:

c1lc /target:MyApp.exe /complist:licenses.licx /i:C1.Win.C1FlexGrid.dll

5. Link the licenses into the project. To do this, go back to Visual
Studio, right-click the project, select properties, and go to the
Linker/Command Line option. Enter the following:

/ASSEMBLYRESOURCE:Debug\MyApp.exe.licenses

6. Rebuild the executable to include the licensing information in the
application.


While I'm not an expert on licx or lc at all, it would seem to me that
you could do this with custom build steps in the IDE.

--
Sev
Nov 17 '05 #2
Severian <se******@chlamydia-is-not-a-flower.com> wrote in
news:37********************************@4ax.com:
I was having a really annoying problem getting some components I
bought from ComponentOne to work. I found this posting in their
knowledge base which seems to fix the problem. Is there a better
workaround from Microsoft though ? It's a pain to keep adding
these custom build steps.

It seems there is a bug in VC++ 2003. The licenses.licx is
ignored during the build process, therefore the licensing
information is not included in VC++ applications.


While I'm not an expert on licx or lc at all, it would seem to
me that you could do this with custom build steps in the IDE.


Yes, the only workaround in VS2003 is to use custom build steps.
In VS2005 Beta2 we added IDE support for this feature.

Thanks,
--
Tarek Madkour, Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers
no rights.
Nov 17 '05 #3
Thanks. I'll take a look at it.

"Tarek Madkour [MSFT]" wrote:
Severian <se******@chlamydia-is-not-a-flower.com> wrote in
news:37********************************@4ax.com:
I was having a really annoying problem getting some components I
bought from ComponentOne to work. I found this posting in their
knowledge base which seems to fix the problem. Is there a better
workaround from Microsoft though ? It's a pain to keep adding
these custom build steps.

It seems there is a bug in VC++ 2003. The licenses.licx is
ignored during the build process, therefore the licensing
information is not included in VC++ applications.


While I'm not an expert on licx or lc at all, it would seem to
me that you could do this with custom build steps in the IDE.


Yes, the only workaround in VS2003 is to use custom build steps.
In VS2005 Beta2 we added IDE support for this feature.

Thanks,
--
Tarek Madkour, Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers
no rights.

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Adrian B. | last post by:
Does anyone know of a framework or library that will enable me to use publish/subscribe comms? I want to create a server (using Python) running on a Unix box that will accept client connections...
15
by: nospam | last post by:
Once Yukon is released (whenever that might be) does anyone from MS have any comment on licensing for Yukon and on SQL 2000. I really don't think anyone with SQL 2000 licenses are going to...
4
by: vbportal | last post by:
Hi, Not sure if this is the right group for the question: I've just finished a course/certification where I've used Visual Studio and want to work further on software development with C#,ADO,ASP...
5
by: Sandeep Srinivasa | last post by:
hi, I have a software which has licensing (enabled through flexlm). Now, an end user can build apps (As loadable modules) using this base software. I am introducing a new feature, which I am...
7
by: ML | last post by:
What is the best/easiest means to return the serial/volume number of the drive containing the OS using VB.NET? I'm looking to get this information as a unique ID for activation/registration of a...
9
by: vbdotnetmania | last post by:
Hi, I have looked through similar posts and have found Ken Tucker giving the reply about looking at article http://windowsforms.net/articles/Licensing.aspx This appears to be for controls and...
7
by: Andrew Smith | last post by:
Hi, does anybody know a good jumpstart for techniques to protect software with license keys? Thanks in advance Andrew -- Andrew Smith
5
by: Nikolay Petrov | last post by:
I would like to store a licensing information in a assembly. It's easy to crypt/decrypt it, but how to stote it, if my app is referencing and using this dll? Is this possible?
102
by: Xah Lee | last post by:
i had the pleasure to read the PHP's manual today. http://www.php.net/manual/en/ although Pretty Home Page is another criminal hack of the unix lineage, but if we are here to judge the quality...
4
by: Steve | last post by:
I'm in the process of finishing a vb2005 application for commerical use, and wanted to know if anyone has any favorites for licensing software? Would like something reasonably priced for a...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.