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

C / C++ / MFC

 
Generalneed help with fread Pin
ns20-Nov-03 9:47
ns20-Nov-03 9:47 
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 
Hello,

I'm having trouble porting data. Here's the situation. An app written in VC++ has a data structure which uses MS data types (DWORD etc.) and standard tpyes. It defined a variable to be of this structure and wrote the data to a file. Now, I write an app in UNIX to read the original data back and load it into a local variable defined to be the same structure as before. Of course, UNIX does not contain types such as HANDLE. I tried my best to re-define the structure with equivalent data types. However, I run into a problem. I used sizeof to get the size of the structure in both app's. It is larger on windows. I assume it's due to the byte boundry issue when windows goes to allocate memory. The offending data type I think is __int64, but it's defined under both platforms (a long long I think). Any work around?? Thanks.
GeneralRe: Reading Windows data into unix Pin
Antti Keskinen20-Nov-03 9:33
Antti Keskinen20-Nov-03 9:33 
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 

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.