473,324 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

how to make the program to have ask for a activation b4 running it?

is there a way how to make the program to have ask for a activation b4 running it?
Jul 13 '07 #1
4 1090
Yes there is, but before I go in to an log explination of how, or where to start I would like to know what compiler you use, (i.e. VB6, Visual studio 2003, Visual Studio 2005) for this will dictate the answer i give. Thank you.
Jul 13 '07 #2
Yes there is, but before I go in to an log explination of how, or where to start I would like to know what compiler you use, (i.e. VB6, Visual studio 2003, Visual Studio 2005) for this will dictate the answer i give. Thank you.
both vb6 and vb2005 would be my selection :)
Jul 13 '07 #3
pureenhanoi
175 100+
is there a way how to make the program to have ask for a activation b4 running it?
Select ur Project property and set Startup Object to Sub Main
Create a Module, and place the code like this
Expand|Select|Wrap|Line Numbers
  1. Sub Main()              'this sub will be load before all form to be loaded
  2. If checkForActivation() = True Then    'if the program was activated
  3.       Load frmMain
  4.       frmMain.Show
  5. Else
  6.       frmActivation.Show
  7. End If
  8. End Sub
  9. Private Function checkForActivation() As Boolean
  10. 'u check the activation here
  11. End Function
  12.  
u can save the activation infomation into Registry ( this method have least secrete) or into file. If u saved into file, remember using not common file name and extension. Remember encode the infomation also.
Activation will be checked by loading data from Registry or Files. Calculate anything that u want to ensure that the correct infomation.
If u want encode ur data, search for Encode engine from other site. I already have some encode engine but maybe its not the bets.
Jul 14 '07 #4
pureenhanoi did exactly, more or less, what I was going to suggest! If you use a file to store an activation then like pureenhanoi said you would want to encode it. The .NET framework has multiple encryption algorithms build in!!! you can use one of them or create your own.
Jul 16 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: R. Rajesh Jeba Anbiah | last post by:
I'm supposed to do the account activation via email. I mean *not* sending the activation link like http://foo.com/foo.php?actcode=foo. But, I would like it to be like...
9
by: Michael Dekson | last post by:
Hello, Can I exe file made in Microsoft Visual C++ decompile into source code. If it is possibly please tell me how. Thanks
30
by: (Pete Cresswell) | last post by:
Just fired it up to see what it looked like. They wanted me to "Activate" the product before the 50th use. Geeze, I paid my money....now they want me to jump through their hoops? Brings back...
2
by: paully_21 | last post by:
I'm an MSDN Subscriber and I installed VWD...When I activate the product it asks for an activation key...Where do I get one of those? And, more importantly, shouldn't it be part of my MSDN...
3
by: Tom the Canuck | last post by:
I am writing code for a friend of mine. We may want to sell it. The demo version will have a few data files in sub folders with a TXT extension. If the prospective buyers want to, they can add...
17
by: UJ | last post by:
Is there any way for a windows service to start a windows program ? I have a service that will need to restart a windows app if it needs to. TIA - Jeff.
19
by: zzw8206262001 | last post by:
Hi,I find a way to make javescript more like c++ or pyhon There is the sample code: function Father(self) //every contructor may have "self" argument { self=self?self:this; ...
1
by: Dieter \(DDP\) | last post by:
Hello When i add new resource files to my usercontrol project and i compile the project a i get a error message in the event log Activation context generation failed for...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.