Article ID: 193174
Article Last Modified on 3/7/2005
APPLIES TO
- Microsoft Visual Basic 6.0 Professional Edition
- Microsoft Visual Basic 6.0 Enterprise Edition
This article was previously published under Q193174
SYMPTOMS
When attempting to use the Package and Deployment Wizard (PDW) to package
an ActiveX DLL/EXE project, the following error is received:
Filename must contain text
This occurs when the ActiveX DLL/EXE project is part of a project group
that contains and references a UserControl project, and the projects are
saved before being compiled.
CAUSE
The PDW reads all of the objects and references out of the VBP file. When
you compile the control only after saving both the ActiveX Control project
and the ActiveX DLL/EXE project, the latter's VBP does not reflect the
current state of the referenced control and is therefore invalid. When you
open the VBP in Notepad, note that the reference to the control
is:
Object=*\A[Name of Control Project].vbp
However, if you choose to save the projects, the correct reference is
saved:
Object={GUID}#version#version; [Name of Control Project].ocx
When the PDW fails to parse correctly in the first case, it tries to add a
file named "" to make up for the name of the compiled OCX. This results in
the above error.
RESOLUTION
To update the VBP file with correct references, save both projects before
using the PDW to package them.
STATUS
This behavior is by design.
Keywords: kberrmsg kbappsetup kbprb kbwizard KB193174