ISPrincess
Programmer
I am having a MAJOR mental block with regard to writing classes and dlls. If I could get thru just one program with regard to this, I think I will be alright.
I have an existing VB exe that runs as a scheduled task every Sunday nite.
I have now found myself in the predicament of having to allow users on my ASP pages to either use the data generated on the above mentioned Sunday date or to trigger the vb app to generate new data. I would like to incorporate this same concept in other asp areas as well (for later data mining issues).
This program can take quite a while to run (20 min to 1 hr) as it gathers all inventory data from SQL and Unisys Mainframe systems. It can run on the server.
I need advise / help on 2 things.
1. How to rewrite this exe (if necessary) into com or dll or active x exe or whatever.
2. How to trigger it effectively from asp (I can email them that it is complete later)
Following is an overview of what my current VB App is doing.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
First, upon load, it begins execution in sub Main()
Sub Main then calls a sub called loadparams() which basically reads an ini file and stuffs some public vars. I wont need this loadparams if I can pass a couple strings into the new app.
Then it call a sub called RFMFDelete() which just calls a SQL Stored Proc to delete all the data in a SQL 7.0 table based on the above mentioned params or a passed string.
Next, it calls another sub RFMFLoad() which gathers data from another SQL table into a recordset, then walks thru this recordset and gathers data from the mainframe using Unisys.DNSII clearpath driver, after which it takes all of that and inserts a record into a different SQL table.
When it is completely done, it then inserts a record into another SQL table wich triggers our company-wide VB app that will send an email to the requesting user. "your job is done".
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To those of you who are well-versed on object orientated architecture, this may seem like a joke, but I cannot get thru this in my mind. I have looked at other developers code and I understand what they are doing but cannot seem to tackle it myself.
Please help if you can.
Thank you! [Sunshine]
I have an existing VB exe that runs as a scheduled task every Sunday nite.
I have now found myself in the predicament of having to allow users on my ASP pages to either use the data generated on the above mentioned Sunday date or to trigger the vb app to generate new data. I would like to incorporate this same concept in other asp areas as well (for later data mining issues).
This program can take quite a while to run (20 min to 1 hr) as it gathers all inventory data from SQL and Unisys Mainframe systems. It can run on the server.
I need advise / help on 2 things.
1. How to rewrite this exe (if necessary) into com or dll or active x exe or whatever.
2. How to trigger it effectively from asp (I can email them that it is complete later)
Following is an overview of what my current VB App is doing.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
First, upon load, it begins execution in sub Main()
Sub Main then calls a sub called loadparams() which basically reads an ini file and stuffs some public vars. I wont need this loadparams if I can pass a couple strings into the new app.
Then it call a sub called RFMFDelete() which just calls a SQL Stored Proc to delete all the data in a SQL 7.0 table based on the above mentioned params or a passed string.
Next, it calls another sub RFMFLoad() which gathers data from another SQL table into a recordset, then walks thru this recordset and gathers data from the mainframe using Unisys.DNSII clearpath driver, after which it takes all of that and inserts a record into a different SQL table.
When it is completely done, it then inserts a record into another SQL table wich triggers our company-wide VB app that will send an email to the requesting user. "your job is done".
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To those of you who are well-versed on object orientated architecture, this may seem like a joke, but I cannot get thru this in my mind. I have looked at other developers code and I understand what they are doing but cannot seem to tackle it myself.
Please help if you can.
Thank you! [Sunshine]