Declaring similar DLLs in VB16 
Author Message
 Declaring similar DLLs in VB16

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.*-*-*.com/ ~manish



Thu, 07 Oct 1999 03:00:00 GMT  
 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

--



Fri, 08 Oct 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. A file similar to constant.txt, but with ODBC declares needed

2. How do I create a DLL or similar

3. Problems distributing scrrun.dll, anyone seen similar?

4. VBPrint.DLL - Need similar for VB4

5. ASP Page's DLL's Use Count Not Going To Zero (or similar problem)

6. Something similar to SPREAD or THREED in DLL?

7. dll functions without declare statement (XLL for Access)?

8. Declaring DLL as string constant

9. Declare vis a vis ActiveX DLL

10. Declaring DLL-functions

11. Way to declare system dll call in VB.net

12. I need some User32.dll declares for my VB .NET app

 

 
Powered by phpBB® Forum Software