<triangle345>
hey guys if I wanted to pass a pointer to a windows function how would i do it? I tried to pass in [Pointer[_myprimitive]] but didnt work
c355e3b has quit [Quit: Connection closed for inactivity]
montanonic has joined #ponylang
montanonic has quit [Ping timeout: 276 seconds]
Praetonus has quit [Quit: Leaving]
triangle345 has quit [Ping timeout: 264 seconds]
jemc has joined #ponylang
hewsut has joined #ponylang
hewsut has quit [Quit: receive...do... zZzz...]
montanonic has joined #ponylang
jemc has quit [Ping timeout: 265 seconds]
zaquest has joined #ponylang
montanonic has quit [Ping timeout: 264 seconds]
montanonic has joined #ponylang
dinfuehr has joined #ponylang
dinfuehr_ has quit [Ping timeout: 240 seconds]
Praetonus has joined #ponylang
montanonic has quit [Ping timeout: 252 seconds]
c355e3b has joined #ponylang
nyon has joined #ponylang
nyon has quit [Client Quit]
triangle345 has joined #ponylang
<triangle345>
hey anyone feel like helping me out with some windows ffi issues?
<triangle345>
:)
<doublec>
triangle345: sure
<triangle345>
haha hey doublec how you doing
<triangle345>
this is a similar but different issue
<triangle345>
im obviously now using createprocessA for ascii version
<triangle345>
im setting everything to U8(0) except for the last two values (processinfo) and (startupinfo) which i have as primitives
<triangle345>
like so
<triangle345>
var pi:Pointer[_PROCESSINFORMATION] = Pointer[_PROCESSINFORMATION] var si:Pointer[_STARTUPINFO] = Pointer[_STARTUPINFO]
<triangle345>
which then i go like so:
<triangle345>
@CreateProcessA[Bool]( U8(0), // No module name (use command line) "notepad.exe".cstring(), // Command line U8(0), // Process handle not inheritable U8(0), // Thread handle not inheritable false, // Set handle inheritance to FALSE U32(0), // No creation flags U8(0), // Use parent's environment block U8(0),
<triangle345>
wondering if I'm passing in the pointer properly the way pony intended?
<doublec>
I think it got chopped off
<triangle345>
let me put it up on pastebin
<doublec>
But that last parameter, being an out parameter, should use addressof