Author Topic: O2 can compile with win32 api functions to 64bits exe  (Read 1518 times)

0 Members and 1 Guest are viewing this topic.

chrisc

  • Guest
O2 can compile with win32 api functions to 64bits exe
« on: March 02, 2018, 01:06:57 PM »
Hello all

i have tested out a sample program from the \examples\WinDynDialogs folder
to see if i can convert it to 64bits exe  despite it is using win32.dll

i added just the below lines  into the program
Code: [Select]
$ filename "ListView_64.exe"
use rtl64

and bravo when i compile it to an exe file ListView_64.exe  and that  this exe file when checked with Task Manager
and it stated that it is on a 64bit platform

hence it is possible to use win32 api functions  ( as it is using win32.dll)  and make it compile to a 64bit executable.

is my contention correct,  please correct me if i'm wrong (i'm only a beginner programmer)






[attachment deleted by admin]

Charles Pegge

  • Guest
Re: O2 can compile with win32 api functions to 64bits exe
« Reply #1 on: March 02, 2018, 02:17:14 PM »
Hi Chris,

Windows has two sets of DLLs, one for 32 bits apps and the other for 64bit apps. But the names of the dlls do not change. We are stuck with the *32.dll names

chrisc

  • Guest
Re: O2 can compile with win32 api functions to 64bits exe
« Reply #2 on: March 02, 2018, 02:46:15 PM »
Thanxx Charles

i think the answer is that the user32.dll is actually a 64bit library so the program in #1 is actually
calling 64bit user32.dll binary and hence it is operating in 64bit right thru'

see
https://stackoverflow.com/questions/9169409/why-windows-64-still-makes-use-of-user32-dll-etc