Re: how to correctly 'typedef' handle types

2014-06-20 Thread francesco cattoglio via Digitalmars-d-learn
http://dlang.org/phobos/std_typecons.html#Typedef Take a look at it. Docs is scarce (pretty sure you will need to take a look around to find something) but it should just do what you need.

Re: how to correctly 'typedef' handle types

2014-06-20 Thread via Digitalmars-d-learn
On Friday, 20 June 2014 at 07:05:49 UTC, francesco cattoglio wrote: http://dlang.org/phobos/std_typecons.html#Typedef Take a look at it. Docs is scarce (pretty sure you will need to take a look around to find something) but it should just do what you need. The prerelease docs contain more

how to correctly 'typedef' handle types

2014-06-19 Thread midi via Digitalmars-d-learn
import std.stdio; import core.sys.windows.windows; int main(string[] argv) { HGDIOBJ h; // Compile error: // Error 1 Error: main.foo called with argument types (void*) matches both: D:\Projetos-D\ConsoleApp1\main.d 12 // Error2 main.foo(void* h)