NO

Author Topic: What's wrong with this dll?  (Read 3014 times)

Offline 1e9t8m29

  • Member
  • *
  • Posts: 6
What's wrong with this dll?
« on: April 27, 2022, 04:49:19 PM »
Download this and you will have dw.dll:

https://dbsoft.org/dwindows/dwindows-win64-3.2.zip

Pelles C currently not work with dwindows. There are many errors spit out on dw.h and the most important is Pelles C said dw.dll is invalid.

Please have a look at this.

Thanks.

Update: this is the bug report to dwindows developer on the dwindows forum:

https://dbsoft.org/forum/showthread.php?tid=87

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: What's wrong with this dll?
« Reply #1 on: April 28, 2022, 04:07:07 PM »
I'll have a look next days.
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: What's wrong with this dll?
« Reply #2 on: April 29, 2022, 11:04:13 PM »
The hardest part for me was to find an example to compile, or a tutorial on usage of dwindows (doesn't seems very popular). So I downloaded a Pascal sample and converted to C, then downloaded the win64 version of "dw.lib" (the one you showed).
Put together, and without any change in the headers compiled and runned without errors...
I attach the project, including the library, for your crosscheck.

P.S. You should ignore the linker warnings:
Code: [Select]
POLINK: warning: Realigned section '.idata$2' in object 'dw.lib(DW.dll)' (from 4 to 1 byte(s)).
POLINK: warning: Realigned section '.idata$3' in object 'dw.lib(DW.dll)' (from 4 to 1 byte(s)).
They refers to MS misaligned sections that are simply realigned on 1 byte boundary.
« Last Edit: April 29, 2022, 11:49:56 PM by frankie »
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide