Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: License ERROR  (Read 1433 times)
hogdog
Customers
Community Member
*****
Posts: 8


« on: March 07, 2007, 08:51:34 AM »

When I set the license key using the following lines of code using C# on winx64...


 TV.SetBetaKey("username", "xxxxxxx-xxxxxxxx-xxxxxxx-xxxxxxx");
 TV.SetLicenseKey(TV_LICENSE_COMMERCIAL, "Project Name", "xxxxxxx-xxxxxxx-xxxxxxx-xxxxxxx");

... i get the error,

The name 'TV_LICENSE_COMMERCIAL' does not exist in the current context

I have searched every forum post and nobody has had the same error. Can anyone please help!

Kind regards,

Tom
Logged
likedonuts
Customers
Community Member
*****
Posts: 246

Diesel connoisseur


« Reply #1 on: March 09, 2007, 01:18:50 AM »

You must qualify enumerations in C#, try
Code:

TV.SetLicenseKey(CONST_TV_LICENSEMODE.TV_LICENSE_COMMERCIAL, "xxx", "xxx");


/Mike
Logged

information is not wisdom, wisdom is not knowledge, knowledge is not truth, truth is not beauty, beauty is not love, love is not music, music is the best - Frank Zappa
hogdog
Customers
Community Member
*****
Posts: 8


« Reply #2 on: March 09, 2007, 05:37:31 AM »

Many thanks for you help.

Thankfully I stumbed across that fact and managed to get it working.  

Kinda funny... I was just coming online to post the working code.

Tom
Logged
likedonuts
Customers
Community Member
*****
Posts: 246

Diesel connoisseur


« Reply #3 on: March 11, 2007, 11:54:49 PM »

Happy if i can help, I'm just a rokie as well Smiley

/Mike
Logged

information is not wisdom, wisdom is not knowledge, knowledge is not truth, truth is not beauty, beauty is not love, love is not music, music is the best - Frank Zappa
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks