www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - windows user help needed

reply Frank Benoit <keinfarbton googlemail.com> writes:
I made a simple checker tool to compare the struct sizes between C and 
D. I used this long time ago for the linux dwt port.

for windows, i lack the visual studio to translate the C version.
Source: 
http://www.dsource.org/projects/dwt-samples/browser/devhelpers/structswin/structs.c

If someone could add the missing header includes, compile it, run it and 
post the result here, this would be very helpful.

I hope to spot remaining struct size problems in the D windows bindings 
by comparing the output of the C and D version of this program.

Frank
Jul 21 2008
parent reply torhu <no spam.invalid> writes:
Frank Benoit wrote:
 I made a simple checker tool to compare the struct sizes between C and 
 D. I used this long time ago for the linux dwt port.
 
 for windows, i lack the visual studio to translate the C version.
 Source: 
 http://www.dsource.org/projects/dwt-samples/browser/devhelpers/structswin/structs.c
 
 If someone could add the missing header includes, compile it, run it and 
 post the result here, this would be very helpful.
 
 I hope to spot remaining struct size problems in the D windows bindings 
 by comparing the output of the C and D version of this program.
 
 Frank
I've attached what I've done so far, if anyone wants to continue working on it. Otherwise I'll try to finish it another day. There are about 50 missing defines. VA_LIST doesn't seem to exist, I've replaced it with va_list. There are some other symbols that I can't find either, neither on msdn.com nor, in the headers that come with the platform SDK for February 2003, nor with msvc 6, nor with msvc 9 express. No idea where Tango got them from. I'm sorry I forgot to write down which ones they were..
Jul 21 2008
next sibling parent Frank Benoit <keinfarbton googlemail.com> writes:
torhu schrieb:
 I've attached what I've done so far, if anyone wants to continue working 
 on it.  Otherwise I'll try to finish it another day.  There are about 50 
 missing defines.
 
 VA_LIST doesn't seem to exist, I've replaced it with va_list.
 
 There are some other symbols that I can't find either, neither on 
 msdn.com nor, in the headers that come with the platform SDK for 
 February 2003, nor with msvc 6, nor with msvc 9 express.  No idea where 
 Tango got them from.  I'm sorry I forgot to write down which ones they 
 were..
 
I just used grep to get the list together, so VA_LIST might make no sense. Thanks for your work so far. I hope it will be continued :)
Jul 22 2008
prev sibling parent Frank Benoit <keinfarbton googlemail.com> writes:
torhu schrieb:
 Frank Benoit wrote:
 I made a simple checker tool to compare the struct sizes between C and 
 D. I used this long time ago for the linux dwt port.

 for windows, i lack the visual studio to translate the C version.
 Source: 
 http://www.dsource.org/projects/dwt-samples/browser/devhelpers/
tructswin/structs.c 


 If someone could add the missing header includes, compile it, run it 
 and post the result here, this would be very helpful.

 I hope to spot remaining struct size problems in the D windows 
 bindings by comparing the output of the C and D version of this program.

 Frank
I've attached what I've done so far, if anyone wants to continue working on it. Otherwise I'll try to finish it another day. There are about 50 missing defines. VA_LIST doesn't seem to exist, I've replaced it with va_list. There are some other symbols that I can't find either, neither on msdn.com nor, in the headers that come with the platform SDK for February 2003, nor with msvc 6, nor with msvc 9 express. No idea where Tango got them from. I'm sorry I forgot to write down which ones they were..
i installed the VS Express and got the stuff compiled.
Jul 25 2008