Questions tagged [32bit-64bit]

Issues related to the use of a 64-bit vs a 32-bit architecture including portability issues.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
28 views

QT project into 32bits executable [closed]

I have been working in a new company for a few weeks. I am learning the tools they were using. I need to compile a QT creator project into a 32bit executable, for a Raspberry PI. This have already be ...
BigPocc's user avatar
3 votes
1 answer
53 views

Stack alignment when using SIMD instructions

In the book about assembly that I am reading, we are told for any function we write, if it's a branching function and will call other functions, it must maintain stack alignment. This is done so that ...
Tim's user avatar
  • 145
0 votes
0 answers
31 views

How can I find in Visual Studio 2022 the setting whether my Blazor Server Side app shall run in 32-bit or 64-bit process?

Sorry for this very basic question. For example in a console app there is a setting like Platform target (Any CPU) and a checkbox like "Prefer 32-bit". In my Blazor server side app I couldn'...
Mdarende's user avatar
  • 529
2 votes
1 answer
68 views

x86 assembly 64-bit values with 32-bit program

If we multiply two very large 32-bit values the result can end up in registers EDX and EAX, with EDX holding the higher bits. How do we perform operations on these 64-bit values and print them to the ...
Tim's user avatar
  • 145
0 votes
1 answer
81 views

How to debug an x86 .net7 service in docker with Visual Studio 2022

I'm building a C# middleware service that has to call into a 32-bit COM DLL and call a SOAP web service. The service is being written against .NET7.0 and I'm using Visual Studio 2022 Community Edition....
João Mendes's user avatar
  • 1,375
0 votes
0 answers
31 views

Build 32 bit Apache httpd RPM

I'm trying to build Apache httpd RPM from the source tarball as mentioned in https://httpd.apache.org/docs/2.4/install.html I need to generate 32 bit RPM However, I could not find any documentation on ...
ND003's user avatar
  • 754
2 votes
0 answers
273 views

Telerik-based DLL does not load, due to enhancer(?) issues

I'm working on a C# solution, containing two projects, a client and a server. Both are normally built using "Any CPU" (which means in my opinion) that they are build as 64-bit processes. I'm ...
Dominique's user avatar
  • 16.3k
0 votes
1 answer
68 views

Is there a way to copy 32bit VS Code extensions and settings to 64bit VS Code on Windows 11?

I have installed different VS Code extensions with associated settings on my VS Code 32bit. Now I need to install the VS Code 64bit version after uninstalling the 32bit version. I would like to ...
Prasad Gayan's user avatar
  • 1,484
0 votes
0 answers
41 views

What's the .NET Core equivalent of Prefer32Bit?

Trying to use the old <Prefer32Bit>true</Prefer32Bit> option produces warning NETSDK1189: "Prefer32Bit is not supported and has no effect for netcoreapp target." It has been ...
Qwertie's user avatar
  • 16.5k
0 votes
0 answers
57 views

cob1904510_0.c:(.text+0x3b): relocation truncated to fit: R_X86_64_PC32 against `.bss'

Getting this error during linking. In this project, we have GnuCOBOL and C codes, so all objects are created using respective compilers but all linking are done using intel's icx compiler only. While ...
abhyudyagarg's user avatar
0 votes
1 answer
75 views

POSIX semaphore across 32 and 64 bits processes

I'm trying to synchronize 2 processes with a semaphore. One process is 32bits, the second is 64bits. Under windows, I use CreateSemaphoreA, WaitForSingleObject and ReleaseSemaphore API. It works well....
Nicolas LAURENT's user avatar
0 votes
1 answer
161 views

Difference between Delphi 64-bit Debug and Release configurations?

I use the following code to get my app’s EXE version. The code is in the FormCreate: procedure Tform1.FormCreate(Sender: TObject); var vMajor, vMinor, vRelease, vBuild: DWord; size, len: longword; ...
Dave C.'s user avatar
  • 13
0 votes
0 answers
375 views

Install 32 bit version of libmrm on Ubuntu 22.04

I am trying to run a 32 bit program on 64 bit Ubuntu 22.04. The program has dependency on the libmrm4 library. I am trying to install the 32-bit version of the libmrm4 library in 22.04. I added the 32-...
arun nath's user avatar
  • 773
0 votes
2 answers
73 views

TVITEM structure for 64 bit VBA in MS Access

I'm stuggling with a crash in MS Access where I have to work with an ocx TreeView item via the Win32 API. The 32 bit code I have works with the TVITEM when used with SendMessage: Public Type TVITEM ...
Ian J.'s user avatar
  • 37
1 vote
0 answers
67 views

converting 1 million line code base from 32-bit to 64-bit

Approach 1, Direct Conversion: This approach involves directly converting the codebase from 32-bit to 64-bit by modifying the existing code. I know this approach is time-consuming because our code ...
dex_nav's user avatar
  • 13
0 votes
0 answers
41 views

Recommended data type for storing file size in bytes in C language? [duplicate]

I made a function in C that finds folder size recursively and sometimes the number of bytes get very big. Things work well on 64 bit systems. However, on 32 bit systems, things broke because I used ...
sudoer's user avatar
  • 154
0 votes
0 answers
40 views

C++Builder 11.3 build an application for WinPE 5.0

I would like to create a simple VCL application for WinPE. I have created an 32bit application with C++Builder 11.3. The application contains a VCL edit box and button, but it does not run. An error ...
Sören Seyfert's user avatar
0 votes
1 answer
34 views

How to increase the Octets capacity in FreeRADIUS

I am trying to increase the limits of "Acct-Input-Octets" and "Acct-Output-Octets" in freeRADIUS beyond 4,294,967,295, but I cannot. One of the reasons I come across is that in ...
sajeyks mwangi's user avatar
0 votes
0 answers
18 views

Run-time Error 5: Invalid Procedure - Changing Pivot Table Source & Refresh Pivot Table

I try to Change/Edit the source of pivot Table and refresh the pivot after that but get the 'Run-time error '5', Invalid procedure call or argument. I get a successful result on my computer with ...
4dr1's user avatar
  • 1
0 votes
2 answers
243 views

Equivalent to "User32" in 64-bit MSAccess

I am maintaining several old Microsoft Access Databases and I use the following to stop users from exiting the application except from the menus. For whatever reason the unload event has never done ...
LeasMaps's user avatar
  • 300
1 vote
1 answer
126 views

Braced Initialization Error with 32bit GCC for Unsigned Long Long

When I compile the code typedef long long unsigned myuint64; myuint64 a[2] = {18446744073709551615, 18446744073709551615}; // error on 32bit gcc myuint64 b = 18446744073709551615; // no error on ...
mh333's user avatar
  • 79
-3 votes
1 answer
133 views

How can I convert my VBA program to 64 bit [closed]

How can I convert the below program to 64 bit? Declare Function OpenProcess Lib "kernel32" _ (ByVal dwDesiredAccess As Long, _ ByVal bInheritHandle As Long, _ ByVal dwProcessId As ...
Sudhanshu Tapaswi's user avatar
1 vote
1 answer
106 views

.NET 6.0 x86 app doesn't set registry key successful

We want to set the OnlyUseLatestCLR registry key with a .NET 6.0 app. This app will run on both x86 and x64 machines and the machines won't have .NET 6 installed. So we publish this app as single file ...
Weiwei's user avatar
  • 3,718
1 vote
1 answer
91 views

How do I Display a Custom Error Message in Bundle

I am working on a bootstrapper project that when run, installs a 32bit or 64bit driver depending on the architecture the installed program is. I would like to display an error message, prevent ...
Leanne's user avatar
  • 77
0 votes
1 answer
153 views

Why does my HexToInt function fail in Delphi 64bit when it works in 32bit? [closed]

HexToInt in Delphi 64bit I have a HexToInt function that works on binary data in Delphi 32bit but fails with negative values in Delphi 64bit: function HexToInt(MSC, LSC: ANSIChar): Smallint; begin ...
David Wilbourn's user avatar
1 vote
1 answer
38 views

Wix Bootstrapper RegistrySearch NOT finding value

I'm trying to search the registry in my Bootstrapper Bundle file to check if a program is firstly installed and a second search to check the bitness of the program installed. Then I want to use the ...
Leanne's user avatar
  • 77
0 votes
0 answers
50 views

WIX Bootstrapper NOT installing 32bit/64bit MSI Package

This is what I have in the Bundle.wxs for my bootstrapper project. The problem is that the <MSPackage> is NOT being installed when I run the .EXE bootstrapper file created when I build the ...
Leanne's user avatar
  • 77
0 votes
0 answers
176 views

Problem about x86-based Microsoft C++ Build Tools

During importing in the Jupyter Notebook I faced a problem regarding Microsoft Visual C++ ( error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": ...
Mohammad Javad's user avatar
0 votes
1 answer
156 views

WIX Cannot access the server root directory for the installation to proceed

I'm trying to install a bootstrapper which should, depending on the program platform, install either a 32bit or 64bit driver. This is the error I'm getting when I try install: I have two ...
Leanne's user avatar
  • 77
1 vote
0 answers
14 views

c++ boost message_queue, could 64bit binary send messages to 32bit binary [duplicate]

Hi I am trying to implement interprocess communication between 32/64 binaries by boost message_queue on linux According to 64bit and 32bit process intercommunication boost::message_queue, here is my ...
hczstev's user avatar
  • 43
0 votes
0 answers
91 views

API linking program debug (Yuanta Futures)(Already Fixed~)

This is the API linking code (Yuanta Futures) Our team have tried many weeks, and now it seems to be the last step to complete it. You can consult he entire codes, packages, files are on my Github. ...
NCUMA Brian's user avatar
0 votes
1 answer
132 views

c++ structure alignment padding on 32 vs 64 bit

Consider the following c++ structure declarations: struct SFoo { int A = 200; }; struct SBar { SFoo Foo = SFoo(); SBar* Bar = this; }; why is offsetof(SBar, Bar) == 8 when compiled for ...
SuperEwald's user avatar
0 votes
1 answer
885 views

Running 32bit linux (ubuntu) application on 64bit

I'm trying to run a 32bit executable developed on ubuntu 18.04 32bit on ubuntu 22.04 64bit. The applciation is compiled with GNU GCC Compiler with CodeBlocks (with -m32 flags) On Ubuntu 18.04 32 bit ...
Denis Vidale's user avatar
0 votes
2 answers
78 views

Crash occurred when assigning size_t with int variable

I have below code. #include<stdio.h> void func(size_t *ptr) { printf("Before *ptr = %d &ptr = %p\n",*ptr, &ptr); unsigned int len = 100; *ptr = len; printf(&...
RandomGuy's user avatar
  • 119
0 votes
1 answer
70 views

How do I add a 32bit/64bit reference file based on Platform in Visual Studio

I'm trying to build a project and based on the platform I'm building in, I want a reference file to be added from the allocated location. When I build in x86, I want the program to use the file ...
Leanne's user avatar
  • 77
0 votes
0 answers
39 views

Workaround to using pip in virtual python 2.7 32-bit environemnt

I am currently using Anaconda to setup a virtual environment of python 2.7.1 32-Bit. My project require several packages to be downloaded. However, when I try >pip install numpy It gives me the ...
Kenta Nomoto's user avatar
0 votes
1 answer
246 views

Load 32-bit Zint.dll in Delphi 64-Bit Program

I'm using Zint.dll to show a QR Code in a Delphi program. When I compile to 32 bit it loads the QR Code properly but when I compile to 64 bit it does not load, as the DLL is 32. Is there any way to ...
codeGood's user avatar
  • 182
0 votes
0 answers
28 views

Inquiry about the operation of DrawImage

Query GdipDrawImageRectRect operation I am currently working on adding an image to the print PS. I am using Visual studio 2019, and all 32,64bit DLLs are using WindowSDK 10.0 (latest installed version)...
Seongtaek OH's user avatar
0 votes
0 answers
46 views

Why Windows changes a .text section of a 32-bit EXE file when it loaded into RAM?

I have a 32-bit windows executable file. A .text section of this file starts with these bytes: 68 50 a0 d0 00 e8 3c 68 84 00 59 c3 cc cc cc cc .. Disassembled: push 0xd0a050 call 0x846846 pop ecx ret ...
Alexander Trotsenko's user avatar
3 votes
0 answers
146 views

Application compiled with AnyCPU can't run on 32bit Windows10

I have compiled my very simple C# WinForms app on a 64bit system, with DotNet 7.0.2, VS2022 with this configuration: Here is the app: It doesn't do anything, just a Form with a Button. Now, when I ...
Daniel's user avatar
  • 2,410
1 vote
1 answer
151 views

What regex strings can distinguish files containing "PE null null L" from "PE null null d"

I need a quick and easy way to know how many dlls are 32-bit and how many are 64-bit in a given directory. I was about to write a PowerShell script when I thought of a much simpler solution. I've ...
skinnedknuckles's user avatar
0 votes
1 answer
214 views

Crash on android x86_64 not happening on x86 (Android API30, API31)

Former title was: crash on vsprintf starting from Android12 (api >= 31) My Android app uses a native library (libexif) built with NDK. At some time in my native code (adapted from exif), I call the ...
usilo's user avatar
  • 305
5 votes
2 answers
147 views

CArray MFC Serialization multiplatform, 16, 32 and 64 bit

I'm working on very old legacy code and I'm porting it from 32 to 64 bit. One of the things where I'm struggling was about the MFC serialization. One of the difference between 32 and 64 bit was the ...
GiordiX's user avatar
  • 261
0 votes
0 answers
77 views

fix error: 64 bit sm2s-imx8mp-toolchain searches for long-double-32.h

I am compiling with sm2s-imx8mp-toolchain (generated by yocto populate sdk) out of yocto. My platform is 64 arm sm2s-imx8mp. I see that toolchain folder contains long-double-64.h and long-double.h ...
user3518295's user avatar
1 vote
0 answers
120 views

Linux - 32bit compiled sem_timedwait example (with small mod) fails on 64 bit when libasan is used

I was having a problem with one application, so i went back to the basics and grabbed the sem_timedwait example from the ubuntu focal online manpages. I modified it slightly to repro the problem. CASE:...
Claudio_G's user avatar
0 votes
0 answers
63 views

How do I add 32 bit libraries to Code::Blocks using GNU GCC in Win 10

Currently using GNU GCC 64 bit with Code::Blocks as the IDE. When adding the -M32 checkbox to compile, it can't find libraries. I know the problem. They are installed (I have found the paths in ...
Steve Walker's user avatar
1 vote
2 answers
202 views

Does Int bits in Swift(Core Data) automatically cast to the same size as the device bits?

I'm trying to figure out whether the Int32 in Core Data will be presented as 32 bits or 64 bits on a 64 bits Device, but I could not find a valid answer on SO. I went to Swift document, it only ...
Steven-Carrot's user avatar
3 votes
1 answer
119 views

CStringArray MFC serialization on 32bit and deserialization on 64 bit

I'm struggling a lot porting an MFC application from 32bit to 64bit. I have same classes with CStringArray members and they use the CArchive serialization and all works fine in 32 bit app. Now I split ...
GiordiX's user avatar
  • 261
2 votes
1 answer
174 views

How to migrate a 32 bit java web app to 64 bit?

I have a java web application which runs on tomcat 8.5 (as a windows service). This is a 32 bit application. When I insatll the app it gets installed on C:/Program Files (x86)/ directory. I need to ...
Mahmud Mridul's user avatar
1 vote
1 answer
117 views

It's possible to make a source code 32 or 64 bit only?

As my understanding, I can compile my C code into 32bit binary or 64bit easily, but, some open source projects sais "We don't support 32bit CPU", so why? what makes the code source 64bit ...
Albert Shown's user avatar

1
2 3 4 5
53