News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

IPC between 32- and 64-bit apps using SendMessage

Started by jj2007, March 20, 2013, 09:09:46 PM

Previous topic - Next topic

jj2007

Since calling 32-bit dlls from the 64-bit world seems not to work, I tested IPC using RegisterWindowMessage and SendMessage. You can't use pointers, of course, but two dwords (or two REAL4) can in some cases be sufficient to tap a 32-bit library from a 64-bit app.

Results show that it's not a good solution for an innermost loop that runs a Million times: A single exchange of dwords takes roughly 10-30,000 cycles. Still, if some specific app ported from 32- to 64-bit depends on some exotic old 32-bit library, and speed is not an issue, it might be an option.

Attached three executables - extract to some folder and launch client.exe. The sources are also there, in an arc file with two PellesC projects and Client.asm (or Client.asc for those not scared of colours ;))

qWord

Which obscure packer do we need to unpack *.arc files? - zip files seems to be too trivial for that task.
MREAL macros - when you need floating point arithmetic while assembling!

frktons

Quote from: qWord on March 21, 2013, 01:23:17 AM
Which obscure packer do we need to unpack *.arc files? - zip files seems to be too trivial for that task.
Try WinRAR.
There are only two days a year when you can't do anything: one is called yesterday, the other is called tomorrow, so today is the right day to love, believe, do and, above all, live.

Dalai Lama


frktons

There are only two days a year when you can't do anything: one is called yesterday, the other is called tomorrow, so today is the right day to love, believe, do and, above all, live.

Dalai Lama

jj2007