Compile errors in VB6 running in VirtualPC
- From: Orcbighter <Orcbighter@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 17 Dec 2007 14:36:41 -0800
Hi,
I have struck a problem and am hoping someone here knows the answer.
I am running VirtualPC 2005 with WinXp32 SP2 installed, and Visual Studio V6
(VS6) and Visual Basic V6 (VB6). The host machine is running WinXP64.
The source code for my projects is on a shared folder on the host PC. When I
tried using the shared folders function within the Settings window of the
VirtualPC console I found two things. Firstly, C++ projects in VS6 had no
problems. Secondly, VB6 projects did.
The host folder D:\VirtualMachines\VMData was mapped to the VM as D: drive
using the "Shared Folders" functionality of VirtualPC. Inside the VM it is
displayed in the Windows Explorer tree as “Network Drive (D:)”
Trying to open VB6 projects would fail with “Path not found
‘\\D:\\VMData\src\MyProject\MyProject.vpb’. The path should be
D:\src\MyProject\MyProject.vbp
To overcome this problem I stopped using the “Shared Folders” function in
the Settings window. Instead, from inside the VM, I mapped the shared folder
on the host pc as a network drive. Inside the VM it is displayed in the
Windows Explorer tree as “VMData on 'HostPC' (D:)”.
This overcame most of the problems. The VB6 IDE could now open and compile
projects and run them. However, a new problem has become evident.
I have a project that uses some activeX components from other projects; lets
call them MyFirstDLL and MyOtherDLL. I find that code referencing these
object fails to compile and generates an error “Compile error: User-defined
type not defined”.
The code takes the form:
Public Sub funcA( ByRef p1 as MyFirstDLL.method1, ByRef p2 as
MyOtherDLL.method2)
…
End Sub
When I look in the References dialog of the Project settings, and click on
the component, I find the same problem in drive mapping.
I have tried unselecting the object, then browsing to the DLL and actively
selecting it, but the location displayed is not
D:\src\MyProject\Release\MyProject.dll, it is
\\HostPC\VMData\src\MyProject\Release\MyProject.dll, which, of course, it
cannot find.
Can anyone explain what is going on, and suggest a possible
work-around/solution?
.
- Follow-Ups:
- Re: Compile errors in VB6 running in VirtualPC
- From: Ralph
- Re: Compile errors in VB6 running in VirtualPC
- Prev by Date: Mike Lalonde michael
- Next by Date: Re: Compile errors in VB6 running in VirtualPC
- Previous by thread: Mike Lalonde michael
- Next by thread: Re: Compile errors in VB6 running in VirtualPC
- Index(es):
Relevant Pages
|
Loading