473,404 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Designing A Process and Report Scheduler/Spooler Application

Hello all,

Prior to our days with .NET (yesterday - grin), we could LoadLibrary any
application DLL and call a function/procedure. If we stored our Class
DLL's in the GAC (since we are designing multiple application executables
that could call common DLL's), is there a similar function in VB.NET that we
can dynamically call / load a DLL and call a method from the resource?

For example (pseudo code):

MyProcesses.DLL
ProcessItemHistory
ProcessTotalSales

MyReports.DLL
PrintItemHistory
PrintTotalSales

MyScheduler.EXE (Run on any machine)
Loop
Find next scheduled job
If no jobs found, break and sleep until next timer event
Am I the preferred server? Has the "preferred" time expired? No ->
Cycle
Call up the corresponding DLL
Thread execute the procedure/method using the properties
(parameters) set by the user when creating the job
Mark job as started (the called procedure will remove it from the
queue when completed)
Have we exceeded or at the user defined maximum number of threads?
Yes -> Break
Sleep for a while (give the OS time to startup and run the thread)
End

I assume it is possible with VB.NET but need to be pointed in the right
direction. These class DLL's cannot be "referenced" at compile time. For
those of you that worked on IBM System 3x/400 systems you will know what I
am speaking of (IE: Job/Work Q). Doable?

Thanks!

Ben Kim
Emergitech
Feb 7 '06 #1
1 1236

Investigate Reflection

http://msdn.microsoft.com/library/de...onOverview.asp

regards

Michel Posseth [MCP]
"Ben Kim" <bk**@NOSPAMemergitech.com> wrote in message
news:eM**************@TK2MSFTNGP11.phx.gbl...
Hello all,

Prior to our days with .NET (yesterday - grin), we could LoadLibrary any
application DLL and call a function/procedure. If we stored our Class
DLL's in the GAC (since we are designing multiple application executables
that could call common DLL's), is there a similar function in VB.NET that
we can dynamically call / load a DLL and call a method from the resource?

For example (pseudo code):

MyProcesses.DLL
ProcessItemHistory
ProcessTotalSales

MyReports.DLL
PrintItemHistory
PrintTotalSales

MyScheduler.EXE (Run on any machine)
Loop
Find next scheduled job
If no jobs found, break and sleep until next timer event
Am I the preferred server? Has the "preferred" time expired?
No -> Cycle
Call up the corresponding DLL
Thread execute the procedure/method using the properties
(parameters) set by the user when creating the job
Mark job as started (the called procedure will remove it from the
queue when completed)
Have we exceeded or at the user defined maximum number of threads?
Yes -> Break
Sleep for a while (give the OS time to startup and run the thread)
End

I assume it is possible with VB.NET but need to be pointed in the right
direction. These class DLL's cannot be "referenced" at compile time. For
those of you that worked on IBM System 3x/400 systems you will know what I
am speaking of (IE: Job/Work Q). Doable?

Thanks!

Ben Kim
Emergitech

Feb 7 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Phil Mc | last post by:
Hi all I have a small scheduling application that I have written which will be running on a Windows 2003 server. This application is started at different times by an 'autosys' job (though I am...
9
by: Scott M | last post by:
I'm printing a directory of about 500 multi-page tifs to a high speed printer and the spooler process is killing me!!! here is a little code..... Public Function PrintImage(ByVal...
1
by: pemigh | last post by:
In hopes of preventing aggravation for others, here's documentation of a strange problem and its solution. I have an application on a network. One user was having trouble with reports. IT guy...
4
by: kbarber | last post by:
Can someone tell me how to build a C sharp application from a solution that I could then email to someone else?
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.