We have a 32-bit C++ GUI application running on 32 bit windows 7. We are planning to migrate our server with C++ apps to 64-bit linux. We have noticed that long types are larger in 64 bit. This will be incompatible with the client-server message passing from 64-bit to 32-bit. What is a good way to solve this incompatibility? Do we need to change the code? How? or Do we use a third party software to do the conversion? What software is it?
How can a 32 bit client communicate with a 64 bit server if long type is passed?
1.3k 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 32-BIT
- Java: 32-bit fp implementation of Math.sqrt()
- Bug in FFI when passing CString followed by an int
- Gigabyte v/s Gibibyte & Gigabit v/s Gibibit
- How to install Cartopy to python-3.5 on linux-32
- Detect overflow from 64 bit addition on 32 bit machine with signed values
- C format string vulnerability: How many bytes does %x read from the stack?
- How to create BufferedImage for 32 bits per sample, 3 samples image data
- Determine if program was built with AnyCPU
- Is there any way to play back a 24-/32-bit audio stream using Java on Windows?
- Error starting MongoDB in windows 7 [32-bit]
- how to manually register a 32 bit version of SqlDmo.dll?
- Get android bit version (32 bit or 64 bit) at runtime
- NASM and a clarification on POP
- Loading from memory whose size is larger than the available size in an instruction
- Assembly: convert number to 32-bit
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?
That's why there is the standardized
int32_tanduint32_ttypes etc., so you could specifically select type depending on your needs.It might be quite a lot of work to replace all
longtypes toint32_tin all structures you send, especially if it's a big project, but you (hopefully) only have to do it once. Another way of solving this problem is to serialize the data into a text-format and then deserialize it on the receiving side, this has the big advantage that it will make the communication almost completely platform independent.