Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2009-12

dll for Win64 - problems porting from win32

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Lukas Gradl

Hi,

Some time ago I wrote a PrintMonitor-DLL for 32bit Windows. Now I tried to port it to win64 using the svn-Version of FPC (did a checkout two days ago)
When I check the resulting DLL using Mitec-EXE-Explorer everything looks fine. The Main-Section of the DLL gets called, as well as the function InitializePrintMonitor which is exported by the DLL. This function returns a pointer to a Structure containing the addresses of some other functions.

For Win32 I compile with -Pi386 -TWin32, for Win64 I use -Px86_64 -TWin64

The resulting DLL works like a charm on Win32 and will crash the spooler on Win64.

Unfortunatly I was not able to produce a version of the source I can release without running into copyright issues, as I use some code contributed by someone else.

Perhaps someone has an idea what I could have missed? Are there any open issues compiling DLLs for Win64?

regards
Lukas

-------------------------- software security networks Lukas Gradl <fpc#ssn.at> Eduard-Bodem-Gasse 5 A - 6020 Innsbruck Tel: +43-512-214040-0 Fax: +43-512-214040-21 --------------------------