LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   A simple (hopefuly) Wine problem. (https://www.linuxquestions.org/questions/linux-software-2/a-simple-hopefuly-wine-problem-546879/)

yezu 04-17-2007 05:50 PM

A simple (hopefuly) Wine problem.
 
I've managed to install Wine in SuSE 10.2
It seems to run most programs, BUT...

It would seem, that any program I run under Wine is unable to access any files on the disk.

For example: I've written a very simple program counting prime numbers, compiled it with Borland C++.
The program has an option to read from a file a set of pre-counted numbers. The file should be, and is in the same directory. However I get a message "Cannot open file".

The same with any other program that has to access any files at runtime.

What should I do? I think that enabling programs to access the disk, is part of the basic functionality of wine. Right?

And BTW where should I put custom dll's that normaly go in the c:\windows\system32 folder?

ipalaces 04-17-2007 07:00 PM

DLLs usually get loaded in the following order:

1.The directory the program was started from.
2.The current directory.
3.The Windows system directory.
4.The Windows directory.
5.The PATH variable directories.

In short: either put the required DLL into your program directory (might be ugly), or put it into the Windows system directory. Also, if possible you probably shouldn't use NT-based native DLLs, since Wine's NT API support is somewhat weaker than its Win9x API support (possibly leading to even worse compatibility with NT DLLs than with a no-windows setup!).


All times are GMT -5. The time now is 12:14 PM.