Designing A Process and Report Scheduler/Spooler Application

Tech-Archive recommends: Fix windows errors by optimizing your registry



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


.



Relevant Pages

  • Re: Designing A Process and Report Scheduler/Spooler Application
    ... application DLL and call a function/procedure. ... we can dynamically call / load a DLL and call a method from the resource? ... Thread execute the procedure/method using the properties ... those of you that worked on IBM System 3x/400 systems you will know what I ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Cannot activate sbcl
    ... but I think what happens is that Windows sees that your executable has a DATA section that might overlap a DLL's address space then it would reallocate that DLL to different address space. ... VirtualAlloc dynamically in your code is that your program and all its ... What can be done here is to have many tiny executables with different BSS sections in them, which then load a bigger executable in the form of a DLL. ...
    (comp.lang.lisp)
  • Re: Why do we need executables in certain formats ?
    ... > Can anybody explain me why do we need executables in certain formats? ... Modern virtual memory processors can locate to ... ..DLL files changed out from under them, ...
    (comp.lang.asm.x86)
  • Re: Dynamic linking with symbols
    ... And a dll which ... > two different executables. ... Try putting your "exported code" into a static library which your ... EXE links against. ...
    (microsoft.public.vc.language)
  • Re: Dynamic linking with symbols
    ... And a dll which ... IIUC, the executable exports an environment in which the plugin runs, right? ... > two different executables. ... I don't think the MS Windows runtime linker also resolves reverse ...
    (microsoft.public.vc.language)