
Declaring similar DLLs in VB16
DLLs normally are built to handle calls by more than one application; a
primary purpose of a DLL is to save resources by having only one copy of
commonly used code loaded in memory.
But, if the DLL is single user or there is some other reason to do so, you
could use the ALIAS keyword to declare functions with the same names in
their DLLs to have different names in the VB app.
HTH
: Hello All!
: The project I am working on requires multiple instance of a
: code which is in a form of a DLL compiled in Fortran5.1 (16 bit).
: For e.g.: my .dll is A.DLL and has a function: y = func(x).
: I am trying to achieve multiple instance by copying the A.DLL as
: B.DLL, C.DLL ... and so on.
: The question is: how do I declare two identical functions "func(x)"
: in VB such that I can access it from different DLLs? Basically I want
: to call A.func(x) and B.func(x) separately, where A and B are copies
: of same DLL.
: Also, is there a more elegant way of achieving multiple instance of
: a DLL. I am limited to 16 bit development environment and using
: MS fortran5.1 to compile my DLLs.
: Thanks in advance,
: manish
: --
: Manish Sinha
: Control Station Lab
: http://www.eng2.uconn.edu/~manish
--