I posted this a while back and never got a solution.
I have two DLL's. One needs to post data to another. Since they both have the same function names - one performs the business rules while the other performs the data access. The names are BUS for the business rules and the data access is called DAL. In this simple example the BUS module is simply a pass-through but can be extended to do some actual processing. (It's a demonstration of the technology remember?)
One of the functions they share the name for is FindByName. To differentiate between the two I have Alias'd the one in DAL with the line:
Code:
Private Declare Function FindByName_DAL Lib "Enterprise_DAL.dll" Alias "FindByName" (EmployeeName As String) As ADODB.Recordset
If I change the Private to Public I receive a compile error.
The code for FindByName in the BUS module is:
Code:
' Find Employee
Public Function FindByName(EmployeeName As String) As ADODB.Recordset
Set FindByName = FindByName_DAL(EmployeeName)
End Function
The declaration for the DAL copy of the function is the same.
However when ran I get the error:
Error Type:
Enterprise_BUS (0x800A01C5)
Can't find DLL entry point FindByName in Enterprise_DAL.dll
Yet I can reference the DAL layer directly in the ASP code it works perfectly.
Can anyone give me a reason why this is so and a way to fix it?
Thanks, G.