Project 2000 objects compile problem with VB6

B

B. Chernick

I have a VB6 project group, one main windows exe and a half dozen DLLs. I'm
trying to compile the DLLs. I am rather rusty in VB6.

The problem is this. One of the DLLs is intended to create instances of the
Project 2000 app. As such it references Microsoft Project 9.0 Object
Library. In this DLL are 2 variables, call them VarA and VarB, declared as
follows:
Dim VarA as Day
Dim VarB as Day

The compile fails at the line 'VarA = VarB' with the error message 'Invalid
use of Property.'

If I check the properties of VarA or VarB, I seem to looking at the
MSProject.Day's properties. If I examine 'Day' in the VarA/VarB declarations
using the Object Browser, it is identified as Function Day, Member of
VBA.DateTime. So far as I know, this is old and fairly reliable legacy code
that has been in use for a long time.

Suggestions?
 
B

B. Chernick

Let's cancel this question. This problem has suddenly become moot. (due to
questions of source code integrity and other things.)

Thanks anyway.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top