- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When writing/building C interoperability routines, does the compiler automatically take 32-bit vs 64-bit into account based on the project settings? My question is related to building interoperable dlls that will also be called by Excel VBA, which is different for 32-bit Office and 64-bit Office. Especially for arrays, the type of pointer passed is different. Hence, I was wondering whether the build step of the 32-bit interoperable Fortran dll will automatically accept the corresponding pointer from VBA and likewise for the 64-bit Fortran dll.
Will add that I am having some trouble getting my 64-bit dlls to work but that is not necessarily related to this question.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you're referring to some of the KIND values defined in ISO_C_BINDING, yes, these differ between a 32-bit compile and a 64-bit compile. Types such as C_PTR are also the correct size.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page