VB6: For most of the time that I've worked with VB, I've built standard exe projects. I am now attempting to delve into greater things, although after getting my last problem fixed, I am wondering if it is worth it.
The project I am currently working on started out as a standard exe project. However, I have broken the data-centric classes into a spearate project and enabled it as an ActiveX EXE and the business objects into a project as an ActiveX dll.
I have been able to build the ActiveX exe project. I have the two projects in the same VB session within a project group. Now, when I try to complie the Business Object project, it gives me errors that the references to the data-centric objects stating: "User-defined type not defined"
My activeX exe is named HRPersist. In the case of the first error, I have the statements:
Public Sub Load(SearchText As String, SearchField As Long, Location As Long)
Dim objPersist As cEmployeesPersist
Set mcolDisplay = Nothing
Set mcolDisplay = New Collection
Set objPersist = CreateObject("HRServer.cEmployeesPersist") ', PERSIST_SERVER)
' Set objPersist = New cEmployeesPersist
SetState objPersist.Fetch(SearchText, SearchField, Location)
Set objPersist = Nothing
The error references/highlights "objPersist As cEmployeesPersist" in the Dim objPersist As cEmployeesPersist statement.
Any ideas what I am doing wrong, or have failed to do?