Solved

vb6 program using rdp terminal server

Posted on 2014-10-23
2
438 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

759 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now