Shop OBEX P1 Docs P2 Docs Learn Events
Problem with propellent.dll using VS2010 — Parallax Forums

Problem with propellent.dll using VS2010

faustodbafaustodba Posts: 2
edited 2015-02-20 20:48 in Propeller 1
Hi, I'm developing a software library provided here
http://parallax.com/downloads/propellent-library-and-executable-source-code

I development with VS2010 and 64-bit computer, the software works fine when using the development environment, when I try to install the software on another computer can not find the library propellent.dll, but the library is in the folder where the software is installed

Someone can give me some help?

sorry for my English, I used the Google translator

Best regards

Comments

  • Bob Lawrence (VE1RLL)Bob Lawrence (VE1RLL) Posts: 1,720
    edited 2015-02-19 05:26
    Is the Dll 32 bit? If so try SysWOW64 for storing the 32-bit DLL
  • RaymanRayman Posts: 14,652
    edited 2015-02-19 06:22
    I think usually Windows can find dll files if they are in the same folder as the executable file.

    What folder exactly are the files in?

    You may have a problem if you tried to but them somewhere under Program Files yourself with Windows 7 or above...
    Unless you have administrator privileges, WIndows may have put the files somewhere else even though they appear to be there...
  • faustodbafaustodba Posts: 2
    edited 2015-02-20 00:41
    Rayman wrote: »
    I think usually Windows can find dll files if they are in the same folder as the executable file.

    What folder exactly are the files in?

    You may have a problem if you tried to but them somewhere under Program Files yourself with Windows 7 or above...
    Unless you have administrator privileges, WIndows may have put the files somewhere else even though they appear to be there...

    I am administrator of the machine, I tried to install the software on another folder but the result is the same ...

    The project is compiled for x86 ... begins to think that the propellent.ddl is not designed to work correctly on x64 platforms
  • idbruceidbruce Posts: 6,197
    edited 2015-02-20 20:40
    How are you linking to the library?

    Here is a Microsoft excerpt
    With both implicit and explicit linking, Windows first searches the set of pre-installed DLLs such as the performance library (KERNEL32.DLL) and the security library (USER32.DLL). Windows then searches for the DLLs in the following sequence:

    The directory where the executable module for the current process is located.


    The current directory.


    The Windows system directory. The GetSystemDirectory function retrieves the path of this directory.


    The Windows directory. The GetWindowsDirectory function retrieves the path of this directory.


    The directories listed in the PATH environment variable.
    Note that the LIBPATH environment variable is not used.

  • idbruceidbruce Posts: 6,197
    edited 2015-02-20 20:48
    I could be wrong, but I do not believe that Parallax provides a LIB file with the Propellant DLL, so you will need to link explicitly and call LoadLibrary.
Sign In or Register to comment.