We use C++ in both front-end (Windows 32-bit) and back-end (Linux 64-bit). They can pass either binary or text data to communicate. Is there any middleware/library that will convert these data from 64-bit to 32-bit? Or is the only option to change your code?
Is there any middleware/library that will convert your binary or text data from 64-bit to 32-bit?
413 Views Asked by coredumper At
1
There are 1 best solutions below
Related Questions in C++
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
- I want to be able to use 4 different variables in a select statement in c ++
- segmentation fault: 11, extracting data in vector
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- How can I print all the values in this linked list inside a hash table?
- Configured TTL for A record(s) backing CNAME records
Related Questions in 64-BIT
- (x64 Nasm) Writeline function on Linux
- How to return a 16 bit value as 64 bit?
- iOS: app doesn't pass the upload for the architecture
- Can't open mkl_intel_s_dll.lib in 64bit Visual Studio environment
- Intel x64 instructions CMPSB/CMPSW/CMPSD/CMPSQ
- Zlib decompression method warning using ios 64bit Architecture
- Assembly x64: Using MULPD instruction with integer
- VirtualBox: VERR_VMX_MSR_VMXON_DISABLED
- 64bit bitmask and javascript
- Delphi xe2 Error compiling ASM code with x64 compiler. Unsupported language feature: 'ASM'
- Cordova 3.8.0 Build Causes Errors in Iphone Apps locking up at Splash Screen
- DirectX libs in x64 program
- Is there any reason to still use int as opposed to long on a 64 bit machine?
- In 64bit R, what should my memory.limit() be set to?
- NASM issue on OSX 64-bit
Related Questions in 32BIT-64BIT
- problemsn with xcode and 64 bit app compatability
- Win7, dependency error in 64bit visual studio
- Android NDK - multlib support using gradle
- Is there any reason to still use int as opposed to long on a 64 bit machine?
- Connecting to Oracle ODBC via Pyodbc (32-bit vs. 64-bit)
- iOS app displays messy when adding arm64 in Valid Architectures
- Compile-Build KDSoap libraries
- Link Error 2001: Unresolved external symbol while porting 32 to 64bit
- Window Explorer Error in 64 bit but not 32 bit with BHO
- Do I need to install OpenCV if needed files were given?
- What are the negative effects for running a 64bit .NET program from Program Files (x86)?
- Python cant see files or folders in C:\Windows\System32\GroupPolicy
- an error "ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386"
- What vcredist package do I install on a 64 bit machine with a 32 bit app?
- In computers 32-bit or 64-bit processors are used, why not 40-bit or other numbers?
Related Questions in PORTING
- Converting old C code
- How to find linux equivalent of solaris specific header files?
- Linux sendto implementation possibly adding extra padding to UDP message
- cannot boot-up openwrt for beagle bone black(BB-black)
- Converting from c++ to c
- Linux header files for Win32 typedefs like BOOL, LONG, and WCHAR
- Qt: Alternative to BitBlt in Qt5 Windows
- Porting Solutions from Visual Studio 2013 to Visual Studio 2017
- Porting Project Euler #8 to Go
- Porting C code between different "platforms"
- Visionmedia EJS on Client side ( Cordova / PhoneGap )?
- C++ Windows to Linux - what do I need to know?
- GRecMutex reference count in glib >= 2.31
- Is there any middleware/library that will convert your binary or text data from 64-bit to 32-bit?
- Porting C# TripleDESCryptoServiceProvider encryption to PHP
Related Questions in MIGRATE
- Migrating Nexus repository manager
- Import data from CouchDB to Sql Server
- how to migrate data from mySQL to PostgreSQL
- Migration - Did I just lose all of my data?
- Ruby on Rails: Mailboxer migration error
- Can't migrate table with array
- How do I turn a repository into a GitHub page?
- Keep Apache2 configuration and MySQL data in Vagrant package
- Parse PFFile save error
- I can't migrate at another database
- Can't migrate database after scaffold. Section 2.2 Ruby on Rails Tutorial Michael Hartl
- invalid literal for int() with base 10 - django - updated
- Rails Executing migration ArgumentError
- Errors after django 1.7 migration and reset
- Renaming models(tables) in Django
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There's no such thing like "64-bit text data". A text file just contains characters in some encoding. And currently there's no 64-bit encoding available. The longest fixed-width encoding is UTF-32 which is 32-bit long. For variable-length encoding, it's maximum 6-byte long for UTF-8 (edit: it has been officially limited to 4 bytes only because the range for Unicode was restricted to U+10FFFF) and a different number for others, but none is up to 8 bytes long. If there are differences then you need to convert the encoding, not 64-bit to 32-bit
For more information read The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)
Binary is also just a series of bits, not necessary an array of constant width 64-bit or 32-bit numbers although in modern computer architectures the size is a multiple of bytes. You need to read the data exactly like how they were written. If you write a 64-bit value, read as a 64-bit value regardless of the 16, 32 or 64-bit program. How can you ensure that a number written in 64-bit does not overflow when cropping to 32-bit?
If you're using MSVC then the type sizes are the same in both 32 and 64-bit mode except pointers, thus no code changing is required if you stick to the standard. On most other 64-bit platforms you may need to take care if you use
longsince it's wider than in a 32-bit program.It's better to use C++11's standard types like
intN_tincstdintin cross-platform code. Before C++11 and C99 many libraries and compilers also define their own standard fixed-width integer types like that for compatibility, for example qint32 in Qt and__int32in MSVC