Running Foxpro Applications from a network share

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
KalChung
Newbie
Newbie
Posts: 4
Joined: Tue Apr 07, 2009 4:31 am

Running Foxpro Applications from a network share

Post by KalChung »

Hi all! I'm at wits end on this one, so I thought I'd take a shot and post it here in hopes that someone has come across a solution to this problem of mine.

Here are my system infos:
My laptop (Ubuntu Ibex, wine 1.1.18) lets call this laptop
Target PC (Ubuntu Hardy, wine 1.1.18) lets call this PC
Server (Ubuntu Gutsy) lets call this server

Most of our machines are still using XP, but I'm trying to move to linux. One of our requirements is that all our Foxpro programs should work after the migration. So far, we've centralised all our data on the server regardless of whether the end-users are using XP or linux.

The foxpro programs work well under this scheme for the XP users, however, when running under wine some foxpro programs work, while others don't.

One in particular works if I copy the entire application from the server on the PC then run it under wine, however, when I try to run the exact same application off the server, the foxpro window pops out, but instead of being able to load the files, it displays an error 'application.exe cannot be found'.

- I've try using plain old SMB to run the file.
- Mounting the network folder using CIFS.
- Setting the registry entry of wine for ShowDirSymlinks to TRUE

However, I'm getting the same results across the board. I get the same errors when trying it from my laptop.

Any help would be much appreciated, Thanks!

By the way, in case anyone thought of it, the foxpro application is from local vendor, who refuses support the application under linux. So no chance to get support from that side, and likewise I don't have access to the source code so I have no idea what its doing that would have caused the error. All I have is the info I've posted above.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Running Foxpro Applications from a network share

Post by vitamin »

KalChung wrote:- Mounting the network folder using CIFS.
This is the only supported option. You have to mount all your remote shares. Then map then to drives in winecfg.
KalChung
Newbie
Newbie
Posts: 4
Joined: Tue Apr 07, 2009 4:31 am

Post by KalChung »

I've tried that, but I still get the same error messages:

it starts with the foxpro window opening up with a small pop-up, saying

file: filename.exe does not exist

err:ole:CoGetClassObject class {854d7ac5-bc3d-11d0-b421-00a0c90f9dc4} not registered
err:ole:CoGetClassObject class {854d7ac5-bc3d-11d0-b421-00a0c90f9dc4} not registered
err:ole:CoGetClassObject no class object {854d7ac5-bc3d-11d0-b421-00a0c90f9dc4} could be created for context 0x3
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

KalChung wrote:I've tried that, but I still get the same error messages:
What exact command line are you using?
KalChung
Newbie
Newbie
Posts: 4
Joined: Tue Apr 07, 2009 4:31 am

Post by KalChung »

here is the line in fstab
//82.47.26.21/applications/glwin/glwin2 /data/glwin cifs auto,credentials=/root/.credentials,workgroup=WORK,gid=users,uid=0,file_mode=0770,dir_mode=0770,rw 0 0

From the Desktop I either double click the exe file called main.exe

I also tried calling it from the shell using:
wine /data/glwin/main.exe

I also tried calling it from a linked directory in the wine folder
wine /home/user05/.wine/drive_c/glwin/main.exe

All gave me the same error... although from the desktop I don't see the actual error codes.

if I copy the entire application folder to lets say a local folder using
cp /data/glwin /data/local_glwin
then run it using
wine /data/local_glwin/main.exe
it works fine.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

KalChung wrote:From the Desktop I either double click the exe file called main.exe

I also tried calling it from the shell using:
wine /data/glwin/main.exe
All of this is wrong.

Have you mapped "/data/glwin" to a drive letter in winecfg?
For correct ways to run program from terminal see: http://wiki.winehq.org/FAQ#run_from_terminal
KalChung
Newbie
Newbie
Posts: 4
Joined: Tue Apr 07, 2009 4:31 am

Post by KalChung »

Yes, I have also tried mapping the folder to a drive, but I still get the same error message.

I followed the link you gave me and tried using it, but I still got the same results.

Error message is the same as in my previous posts.

I also tried installing DCOM98 thru winetricks recently to see if that helps my prob, as the errors are all OLE related, but I still get the same results. What's fustrating is that it works fine if I copy the application to the local computer.
Locked