Author Topic: Deployment of application with DLL in Windows 10 in v2.0.1  (Read 3595 times)

0 Members and 1 Guest are viewing this topic.

Offline moises1953

  • Newbie
  • Posts: 55
    • View Profile
Deployment of application with DLL in Windows 10 in v2.0.1
« on: October 31, 2021, 07:19:37 am »
Search for DLLs in development and deployment:

In version 1.4 you could declare a DLL simply by name and place it at the executable address, in system32, or at a specified address.

In later versions the IDE has been denying the compilation if the executable is not in QB64, even though the option has been chosen to locate the executables with the sources, and these outside of QB64, which does not seem to be correct.
This is the wiki text: The dynamic library file can be located in the QB64 folder (alongside your programs' .EXE '), in Windows' system32 folder, or in a relative / absolute path specified along with the library name
The consequences that this has in the deployment of an application with DDL's, is that it can no longer be located with the executable, but it can be done:
1. in a QB64 folder, which will have to be created, even if it is not necessary.
2. in system32
3. in a predefined address, for example C: \ AppName, for which it will be necessary to have the same path in the development environment.

Could it be a bug in the IDE?
« Last Edit: November 01, 2021, 03:22:09 am by moises1953 »

Offline moises1953

  • Newbie
  • Posts: 55
    • View Profile
Re: Deployment of application with DLL in Windows 10 in v2.0.1
« Reply #1 on: November 01, 2021, 03:10:31 am »
I have compiled from the powershell and indeed the compiler does not find a dll declared only by its name if it is next to the executable.
Therefore not that the IDE rejects it, but that the compiler does not find it and the IDE prevents, OK.
It seems ugly to me that an application with its DLL's cannot be deployed in the same folder, whatever it is

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Deployment of application with DLL in Windows 10 in v2.0.1
« Reply #2 on: November 01, 2021, 03:15:50 am »
Did you click the option to export EXE to source folder?
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline moises1953

  • Newbie
  • Posts: 55
    • View Profile
Re: Deployment of application with DLL in Windows 10 in v2.0.1
« Reply #3 on: November 01, 2021, 03:17:47 am »
Did you click the option to export EXE to source folder?
Yes
And compiling in the powershell with output option has the same result.
C:\qb64\qb64.exe -c D:\QB64F\MeCepWin-F\MeCepWin-B00.BAS -o D:\QB64F\MeCepWin-F\
« Last Edit: November 01, 2021, 03:47:03 am by moises1953 »