-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find path #96
Comments
Glad the package is of use to you. Consider the following experiments: >>> from zugbruecke import ctypes
>>> import os
>>> os.getcwd()
'/home/ernst/Desktop/zugbruecke'
>>> ctypes.zb_path_unix_to_wine(os.getcwd())
'Z:\\home\\ernst\\Desktop\\zugbruecke'
>>> ctypes.cdll.LoadLibrary
<bound method LibraryLoader.LoadLibrary of <ctypes.LibraryLoader object at 0x7f781b157460>>
>>> dll_handle = ctypes.cdll.LoadLibrary('Z:\\full\\or\\relative\\path\\to.dll')
Second, reading your question, I am not sure if you are familiar with LoadLibrary from |
Thanks a lot s-m-e, I was indeed looking at the code and observing those functions, but was not entirely clear to me to launch that little test. What I did manage was to run the test on the msvrct DLL that comes along with windows and that worked perfectly, so I reached the same conclusion as you (it is about the path, not the package). I will try that tomorrow, as well as another test I came up with (registering the dll via regserv32 so that I can call it without path). Will report my findings so we can hopefuly close this issue! |
Hi all, I am very glad to have found this package. We have managed to install wine on our linux server, and trying to use it to load a windows dll, but the path just plainly does not work.
I have understood properly the paths, I have both a "Disc C" (the fake windows install) and a "Disc Z" (symlink to the home dir of the server) and managed to put the right path onto the cdll(path) call, but I keep getting the "FileNotFound" error, that the call gives when the file path is wrong or does not exist.
Is there any obvious thing to point out?
The text was updated successfully, but these errors were encountered: