Solved

vb6 program using rdp terminal server

Posted on 2014-10-23
2
474 Views
Last Modified: 2014-10-26
We have a vb6 program which is installed in a Microsoft Windows 2008 server , we sell as many licenses as our clients want. One license allows one user to work at the same time with the program from his computer with rdp , for example if our client buys 3 licenses, this mean 7 users in his company can use the program but only 3 at the same time, if the fourth wants to go to the program, the system must say to him that there are not available licenses at this moment, when somebody leaves the program, one license is available.

When a new client buys the program , we ask him how many users does he want , and how many users he wants to be able to use the program at the same time. Sometimes they say 10 users but only 3 at the same time, they pay 3 users and we create in our server a new group with 10 new users.

We have nos found the way to control this. At the moment , 10 users can use the program at the same time.

I don´t know if the solution is with the server or vb6..

This is being quite difficult for us, we controlled it with an Access database in our vb6 program but we had to leave it  because sometimes, one user was using the program, he had a problem with his computer and lost the conexión in a not normal way, so he was out of the program but the counter of licenses has not been updated  

If you have an idea …
0
Comment
Question by:timidos timidos
2 Comments
 
LVL 16

Accepted Solution

by:
Brian Pringle earned 250 total points
ID: 40400140
I used to work for a software company that found a "way" to do this.  What they did was created a registry key and created an entry for each user that was currently in the system.  When they opened the program, the key was created.  When they logged off, the key was deleted.  The program would count how many keys were there and allow the users in accordingly.

It works, but if someone is technically savvy, they could figure it out and delete the entries.  Most of the time, that was not a problem.  What was a problem was if the user did not log off properly and the key remained, then we had to manually delete it.  To fix that, we created a scheduled task on the server to delete the keys at set intervals and set it in the program to recreate the key if it got deleted.
0
 
LVL 7

Assisted Solution

by:Stampel
Stampel earned 250 total points
ID: 40401182
I think i would try to put a keepalive request on the client part that will inform the server part that the user is still alive.
This way you can continue to use the access database, the client would update a table for exemple one time per minute.
If not you would consider the client is dead and decrement the licence current counter.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Trying to figure out group policy inheritance and which settings apply where can be a chore.  Here's a very simple summary I've written which might help.  Keep in mind, this is just a high-level conceptual overview where I try to avoid getting bogge…
Know what services you can and cannot, should and should not combine on your server.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question