Compile errors in VB6 running in VirtualPC



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?

.



Relevant Pages

  • FC5 VMware 5.5.2 problems
    ... The host is an up-to-date FC5 and the guest is XP Pro. ... XP is on a NAT network as defined by VMware. ... I've defined a Shared Folder under VMware over to my Windows stuff on ...
    (Fedora)
  • Re: To those who develop in VMs
    ... contain your source code; ... or in a shared folder on the host machine? ... or in a dedicated partition on the host PC? ... I am currently keeping it on the virtual disk but I am thinking about ...
    (borland.public.delphi.non-technical)
  • problem folder sharing sbs2003
    ... Clients: XP PRO in Domain ... What to do to have access to shared folder on the server from host in ...
    (microsoft.public.windows.server.sbs)
  • Accessing shared folder on host PC via IP Address
    ... I want to access a shared folder on my host PC (Win2k). ...
    (microsoft.public.windowsce.platbuilder)

Loading