OV
OV
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
its clearly saying Any CPU
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
what are you taking about
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
No description
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
see
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
but its working for the Intptr struct
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
i just don't get it why its not working?
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
and here is the preprocessor or constant implementation <Is64Bit Condition="'$(Platform)' == 'arm64' or '$(Platform)' == 'x64' or '$(Platform)' == 's390x' or '$(Platform)' == 'loongarch64' or '$(Platform)' == 'ppc64le' or '$(Platform)' == 'riscv64'">true</Is64Bit> <DefineConstants Condition="'$(Is64Bit)' != 'true'">$(DefineConstants);TARGET_32BIT</DefineConstants> <DefineConstants Condition="'$(Is64Bit)' == 'true'">$(DefineConstants);TARGET_64BIT</DefineConstants>
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
for any cpu the IntPtr TARGET_64BIT block is enable but for my case it is not
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
No description
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
here take a look
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
no actually for a 64 bit windows pc running vs on Any cpu the 64 section in enable but when i copy the same definition for Target64_bit from the runime and use that on same pc which did not enable
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
No description
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
is it like the TARGET_64BIT preprocessor have something extra than a normal preprocessor
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
even thought i select any cpu
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
so the IntPtr struct has 2 preprocessor like TARGET_64BIT and TARGET_32BIT now when i copy their preprocessor it does not work for any cpu configuration. but when microsoft use it for the Intptr struct how does that working
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
@wasabi just listen my thought for a sec.
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
i pick that form x11
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
i mean x11 does that
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
but dotnet intptr does able to hide it.
102 replies