Click here to Skip to main content
15,919,479 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalcheck for tab Pin
Vancouver20-Nov-03 9:53
Vancouver20-Nov-03 9:53 
GeneralRe: check for tab Pin
ns20-Nov-03 10:02
ns20-Nov-03 10:02 
GeneralRe: need help with fread Pin
Antti Keskinen20-Nov-03 10:44
Antti Keskinen20-Nov-03 10:44 
GeneralRe: need help with fread Pin
nss20-Nov-03 10:59
nss20-Nov-03 10:59 
GeneralRe: need help with fread Pin
John R. Shaw20-Nov-03 12:17
John R. Shaw20-Nov-03 12:17 
GeneralCreateDC failure in Citrix 2003 Pin
Fred Eckertson20-Nov-03 9:24
Fred Eckertson20-Nov-03 9:24 
GeneralReading Windows data into unix Pin
Anonymous20-Nov-03 9:03
Anonymous20-Nov-03 9:03 
GeneralRe: Reading Windows data into unix Pin
Antti Keskinen20-Nov-03 9:33
Antti Keskinen20-Nov-03 9:33 
Humm..

I've created very little software for *nix platforms, but I'd consider that this problem is, like you stated, related to the new 64-bit architecture-compatible values. Following is an extract from MSDN:

"The Microsoft specific types __int8, __int16, and __int32 are synonyms for the ANSI types that have the same size, and are useful for writing portable code that behaves identically across multiple platforms. The __int8 data type is synonymous with type char, __int16 is synonymous with type short, and __int32 is synonymous with type int. The __int64 type has no ANSI equivalent."

As you see, there is no equivalence for __int64 in ANSI standard, so I doubt that the *nix compiler you are using supports the completely similar __int64 as MSVC++ uses. There is no existing standard here yet.. The 'long long' is at best a vague

My suggestion is that you go back to the original code and see if there are any values that you can redefine to 32-bit types. Other option would be to fetch a compiler that supports ILP64 data model standard. In there, 'int' and 'long' are 64-bit values, and 'int32' is a 32-bit value.

Alternatively, see if you compiler supports the "System Interfaces and Headers, Issue 5 (XSH)" definition. In here, a header 'inttypes.h' contains a type 'int64_t' for 64-bit integers.

-Antti Keskinen


----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: Reading Windows data into unix Pin
JWood20-Nov-03 9:37
JWood20-Nov-03 9:37 
GeneralRe: Reading Windows data into unix Pin
Johnny ²20-Nov-03 11:12
Johnny ²20-Nov-03 11:12 
General__in64 and DWORD strange size Pin
Anonymous20-Nov-03 8:34
Anonymous20-Nov-03 8:34 
GeneralAlignment Pin
Vancouver20-Nov-03 8:53
Vancouver20-Nov-03 8:53 
GeneralRe: __in64 and DWORD strange size Pin
JWood20-Nov-03 8:54
JWood20-Nov-03 8:54 
GeneralRe: __in64 and DWORD strange size Pin
cmk20-Nov-03 9:01
cmk20-Nov-03 9:01 
Generalcmk is right Pin
Vancouver20-Nov-03 9:11
Vancouver20-Nov-03 9:11 
GeneralText does not appear on colored buttons Pin
Vancouver20-Nov-03 8:13
Vancouver20-Nov-03 8:13 
GeneralSolution Pin
Vancouver20-Nov-03 10:25
Vancouver20-Nov-03 10:25 
GeneralRe: Solution Pin
cmk20-Nov-03 16:13
cmk20-Nov-03 16:13 
GeneralFor cmk Pin
Vancouver21-Nov-03 9:09
Vancouver21-Nov-03 9:09 
GeneralRe: For cmk - back to Vancouver Pin
cmk21-Nov-03 12:02
cmk21-Nov-03 12:02 
GeneralDirectshow and painting Pin
georgiek5020-Nov-03 6:31
georgiek5020-Nov-03 6:31 
Generalproblem with if statement Pin
si_6920-Nov-03 4:43
si_6920-Nov-03 4:43 
GeneralRe: problem with if statement Pin
LittleYellowBird20-Nov-03 5:02
LittleYellowBird20-Nov-03 5:02 
GeneralRe: problem with if statement Pin
si_6920-Nov-03 5:47
si_6920-Nov-03 5:47 
GeneralRe: problem with if statement Pin
Ian Darling20-Nov-03 6:01
Ian Darling20-Nov-03 6:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.