473,804 Members | 3,204 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Command Line Compiling with license file

Hello:

I am using some 3rd party assemblies that require a license file.
If I create a new project inside visual studios and compile the application,
I have no problems but my project requires me to compile the files via the
command line using vbc.

I have used lc.exe to compile and create the binary license file. When I
use vbc.exe and include all the referenced assemblies and embed the binary
license file I am able to produce an executable but my application will not
run because the licensed assemblies don't recognize that I have a license
file. Is there another step I am missing in the compilation process to ensure
the binary license file gets embedded in the exe? When I include the license
file as an embedded resource I'm using "/resource:myapp. exe.licenses". Is
this correct?

Thanks

P.S. I am able to compile and run a simple application that doesn't use
licensed assemblies, so I'm thinking my problem lies with the license file.
Nov 21 '05 #1
2 1953
You said that you have embedded the license file when it should be in the
same directory as the assembly. Plus, do you know what the license file test
should read? Example:

This control is registered
or
This control isn't registered etc. etc. etc.

There is plenty of information on creating license files on the MSDN website

Crouchie1998
BA (HONS) MCP MCSE
Nov 21 '05 #2
I tried moving the license file to the same directory as the assembly but
still did have not have any luck associating the license file with the
executable. When I use the following command line switches, I can create an
exectuable but when I run the executable I receive a pop up box that says,
"The Measurment Studio assemblies used are unlicensed...."

c:\TEMP\Comp\As semblyInfo.vb
c:\TEMP\Comp\Fo rm1.vb
/resource:C:\TEM P\Comp\Form1.re sx
/resource:C:\TEM P\Comp\obj\Debu g\Comp.Form1.re sources
/resource:C:\TEM P\Comp\licenses .licx
/r:"C:\Program Files\National
Instruments\Mea surementStudio7 0\DotNET\Assemb lies\Current\Na tionalInstrumen ts.Common.dll"
/r:"C:\Program Files\National
Instruments\Mea surementStudio7 0\DotNET\Assemb lies\Current\Na tionalInstrumen ts.UI.dll"
/r:"C:\Program Files\National
Instruments\Mea surementStudio7 0\DotNET\Assemb lies\Current\Na tionalInstrumen ts.UI.WindowsFo rms.dll"
/resource:C:\TEM P\Comp\obj\Debu g\Comp.exe.lice nses
/r:system.dll
/r:system.data.d ll
/r:system.drawin g.dll
/r:system.window s.forms.dll
/r:system.xml.dl l
/out:C:\TEMP\Com p\out.exe
/t:winexe
/main:Form1
/verbose

Am I using the switches incorrectly?
"Crouchie19 98" wrote:
You said that you have embedded the license file when it should be in the
same directory as the assembly. Plus, do you know what the license file test
should read? Example:

This control is registered
or
This control isn't registered etc. etc. etc.

There is plenty of information on creating license files on the MSDN website

Crouchie1998
BA (HONS) MCP MCSE

Nov 21 '05 #3

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

Similar topics

0
1754
by: charlie | last post by:
Hello, I am trying to compile php-5.0.0b3 on a fedora 1.0 system. I am beginning with the following: charliek 12$./configure \ --with-apxs2=/usr/local/apache2/bin/apxs \ --with-mysql --prefix=/usr/local/php5 and it completes with the following: ###################################### BEGIN CONFIGURE OUTPUT +--------------------------------------------------------------------+
2
7686
by: Robert | last post by:
I am using the php4-cgi Debian package which is based on PHP 4.3.4. I have problems when running php4 on the command line. If I say something like $ php4 index.cgi a number of variables are not initialized. For example, $HTTP_GET_VARS is not set. To get it set, here's my workaround:
1
2319
by: Sparhawk | last post by:
Hi, I want to integrate a code beautifier for C++ in the development process of my company. There are many beautifiers around which would meet our formatting requirements (SourceFormatX, SourceStyler, ...) but those are based on a GUI and thus require a developer to do this extra-step before checking the code in. We planned to include the beautifier as a post build step (from MS VC++). To do this we would need a command line interface...
5
3227
by: randyelliott | last post by:
Good Day, I have a MS Access (Access 2000 now upgraded to 2003) database that tracks customer information. One function of this database is to create an encrypted license file for our software, which is then emailed out to the customer. The encryption string is based on information in the database and can only be generated by executing a DOS command. This is done from within the database by clicking a button on a form that triggers a...
6
2939
by: Edd Dawson | last post by:
Hi. I have a strange problem involving the passing of command line arguments to a C program I'm writing. I tried posting this in comp.programming yesterday but someone kindly suggested that I'd have better luck here. So here goes! My program ignores any command line arguments, or at least it's supposed to. However, when I pass any command line arguments to the program, the behaviour of one of the functions changes mysteriously. I have...
5
14043
by: Genboy | last post by:
My "VIS" Website, which is a C# site created in VS.NET, Framework 1.1, is no longer compiling for me via the command line. As I have done 600 times in the last year and a half, I can compile to VIS.DLL via Visual Studio, with no problems: ------ Rebuild All started: Project: VIS, Configuration: Debug .NET ------ Preparing resources... Updating references...
0
1458
by: Louise Caldicott | last post by:
Hi all, I have created a project in Visual Studio which uses satellite assemblies. I have also written a script to build this project from the command line. There seems to be a difference in behaviour when I link the resources via Dev Studio and the command line.
4
1609
by: N. P. | last post by:
I do not have Visual Basic .NET Standard or higher but I have downloaded the ..NET SDK and the 101 VB.NET samples from the MSDN website. I am sure that there must be a way to compile and successfully run these 101 samples from the command-line but even though I tried hard there are problems with the resources .resx files. Eg. I tried using the following command to compile one of the 101 samples: vbc *.vb /res:frmMain.resx,frmMain.resources...
3
2178
by: andrew | last post by:
Hello, I have spend the past day trying to figure out how to do this. PROBLEM: My instructor wants us to use a shapes library that horstmann wrote. An example would be: ///////////////////////// #include "ccc_win.h" int ccc_win_main() {
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9579
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10578
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10332
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10077
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7620
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6853
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4300
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 we have to send another system

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.