Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old January 10th, 2005, 08:42 AM
Graham Reeds Graham Reeds is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 28 Graham Reeds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 36 m 24 sec
Reputation Power: 0
Passing information between COM .DLL's written in Visual Basic 6.0

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.

Reply With Quote
  #2  
Old January 15th, 2005, 11:59 AM
Graham Reeds Graham Reeds is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 28 Graham Reeds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 36 m 24 sec
Reputation Power: 0
*bump*

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Passing information between COM .DLL's written in Visual Basic 6.0


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT