Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

vb6 program using rdp terminal server

Posted on 2014-10-23
2
Medium Priority
?
557 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 750 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 750 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

Are you one of those front-line IT Service Desk staff fielding calls, replying to emails, all-the-while working to resolve end-user technological nightmares? I am! That's why I have put together this brief overview of tools and techniques I use in o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses

926 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