Re: Bizarre compile error in GtkD

2014-06-30 Thread Evan Davis via Digitalmars-d-learn
the FileChooserDialog constructor expects an gtk.Window.Window. Gotcha. I completely forgot to check that because the compiler wasn't disambiguating. Thanks for the reply, worked like a charm. -Evan Davis

Bizarre compile error in GtkD

2014-06-29 Thread Evan Davis via Digitalmars-d-learn
, GtkFileChooserAction action, string[] buttonsText, GtkResponseType[] responses) is not callable using argument types (string, Window, GtkFileChooserAction, string[], GtkResponseType[]) I have no idea how this error exists. Can anyone help me fix it? -Evan Davis

Passing around a list of differently typed functions

2014-06-22 Thread Evan Davis via Digitalmars-d-learn
As the subject says, I would like to pass around an array of functions. The trick is, that the functions have different type signatures. Is there a way to put the two functions int foo(int a, int b); bool bar(bool a, bool b); into one array, that I can pass around and cast as necessary?

Creating new types from tuples.

2014-06-06 Thread Evan Davis via Digitalmars-d-learn
to distinguish between types, even if they contain the same fields, so that recieve( (s_to_c!(UDP.ping) value) { }, (s_to_c!(UDP.keep_alive) value) { } ) isn't an error. Any suggestions are welcome, and thanks for any help, -Evan Davis

Re: Creating new types from tuples.

2014-06-06 Thread Evan Davis via Digitalmars-d-learn
with this project. Evan Davis

Re: Winsock Multicast setOption error

2014-02-04 Thread Evan Davis
On Tuesday, 4 February 2014 at 09:02:35 UTC, Vladimir Panteleev wrote: You need to use the definition of IP_ADD_MEMBERSHIP from the WinSock2 header files (=12, not =5). The problem is explained here: http://support.microsoft.com/kb/257460 Thanks very much for a solution. Worked great. -Evan

Winsock Multicast setOption error

2014-02-03 Thread Evan Davis
in its context. I see suggestions to link to wsock32.lib in c++ forums rather than ws2_32.lib, but socket.d seems to link both? Any help diagnosing is appreciated. -Evan Davis

Multicast support within std.socket

2013-12-17 Thread Evan Davis
Hello all, I've been looking into how to create a multicast packet using std.socket, and I found that std.socket doesn't support the socket option IP_ADD_MEMBERSHIP. Should I be using IPv6 for all of my multicast needs? -Evan Davis

Windows Socket Timeout

2012-03-22 Thread Evan Davis
? I'm somewhat worried about client-side cheating. Thanks for any thoughts, Evan Davis