[fpc-pascal] dll for Win64 - problems porting from win32

Lukas Gradl fpc at ssn.at
Tue Dec 15 23:27:36 CET 2009


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
--------------------------



More information about the fpc-pascal mailing list