1. wrappers and c structures
Hi,
[ wrappers ]
Has anyone wrapped any parts of Direct X? (or anyone planning to)
More specifically has anyone wrapped Direct Input?
[ c structures ]
For people who are wrapping DLL's, does anyone have a better way to handle c
structures?
Currently I use a very basic way of defining constants of the offsets of
each structure element.
eg
constant structure_element_red = 0
constant structure_element_blue = 4
poke4( address + structure_element_blue, #0000FF)
Of course this method means I have to know what data type
'structure_element_blue' is, otherwise I
could end up poking a float32, or something else in there.
thanks,
-molasses
2. Re: wrappers and c structures
- Posted by David Cuny <dcuny at LANSET.COM>
Mar 21, 1999
-
Last edited Mar 22, 1999
"Molasses" wrote:
>For people who are wrapping DLL's, does anyone have a better way to handle
c
>structures?
Have you taken a look at the structure tools in Win32Lib? It's easy to
convert C structures, and the fetch() and store() routines make it trivial
to read from and write to structures. Check out WIn32Lib.DOC for
documentation.
-- David Cuny
3. Re: wrappers and c structures
I am currently looking at the DX SDK from MS... I ~should~ have
something going in a few days... As for DX Input i cant guess if or
when...
GV
>Hi,
>
>[ wrappers ]
>
>Has anyone wrapped any parts of Direct X? (or anyone planning to)
>More specifically has anyone wrapped Direct Input?
>
>
>[ c structures ]
>
>For people who are wrapping DLL's, does anyone have a better way to
handle c
>structures?
>Currently I use a very basic way of defining constants of the offsets
of
>each structure element.
>eg
>constant structure_element_red = 0
>constant structure_element_blue = 4
>
>poke4( address + structure_element_blue, #0000FF)
>
>Of course this method means I have to know what data type
>'structure_element_blue' is, otherwise I
>could end up poking a float32, or something else in there.
>
>
>thanks,
>
>-molasses
>
Get Your Private, Free Email at http://www.hotmail.com
4. Re: wrappers and c structures
Hello
I'd like to see how you do it. I tried a few weeks ago, and could not find
but a few of the C_func/proc in Direct Draw DLL's. For instance
"SetCooperativeLevel".
Looking forward to see what you come up with.
Thanks
Paul Martin
At 04:44 PM 3/23/99 PST, you wrote:
>I am currently looking at the DX SDK from MS... I ~should~ have
>something going in a few days... As for DX Input i cant guess if or
>when...
>