I’m a process of 64 bit, my int size is 8 bytes.
I’m referencing a dll which is compiled to 32 bit.
This dll has a function which accepts an int parameter.
What will happen?
I’m sending a 8 byte to a 4 byte “container” ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, in 64-bit / C#, an
intis still 4 bytes.In C#,
intis always merely an alias toglobal::System.Int32What will change is the reference size and pointer size, but that is all abstracted by the IL anyway – nothing needs to change. Note, though, that the CLI is only going to be 32 bit xor (nand?) 64 bit. You might need one of them to be “Any CPU”.