Click here to Skip to main content
16,016,489 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
1) Client Side VB6 Software
2) Server Side WebServices (This will be a ASPx Page)

1) Client Side VB6 Software
In this there will be one form which will have one Timer Control.
In form load initialize all variables like server address, and timer.
In Timer function you have to ensure that it runs only once every 5 minutes.
Every 5 minutes you would then check list of all applications running in memory
- When you are checking list of application for first time you would make an array with appname, starttime, endtime and LogId.
- When you run for second time, you have to see if same application is running then you have to just update the endtime.
Then upload this to the central server using webservice.

Very Important -
- When you upload to the central server, the Web Service will return back list of same application with LogID added to it.
- The log id that you get from Web Service, you should update to the array so that next time when you send data you also send the logid.


To User Webservice
You have to use the function GetUrlContent or something similar, which is used in Webcafe which basically sends data to a url and gets the data back.
-

2) Server Side Component.
- This should be a ASPX page
- It should accept following parameters
http://server.com/Service.asp?Name= <servicename>&Data=<actual data="">
- It will check "NAME" parameter like request.querystring("NAME") and accordingly call a relevant function.
- If the function is AddData then it means from VB client you are uploading data, and in data parameters you have sent data that you want to upload to system, in which case it will take data and upload to server and return back the LogID
Posted
Comments
[no name] 27-Jul-12 16:03pm    
Reads like homework and there is no question asked.

It does not work like this here.

Here is what is expected of enquirers:
1. TRY first what you want to do! You may find that it's not that hard.
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.
 
Share this answer
 
Request.ServerVariables("REMOTE_ADDR") in webpage should return client ip address.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900