Re: Type properties

2016-01-07 Thread Jacob Carlborg via Digitalmars-d-learn
On 2016-01-07 15:30, Steven Schveighoffer wrote: One thing that just occurred to me though, Objective-C makes use of the init function quite a bit. I wonder how getting rid of init as a customizable member would affect that. NSObject init_() @selector("init"); With the full support for Object

Re: kernel32 missing symbol definitions?

2016-01-07 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 8 January 2016 at 00:27:51 UTC, Yamiez wrote: Why is kernel32 missing symbols? e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/ The kernel32 lib has them, the headers don't. You can define the missing functions yourselves and call them: --- import core.sys.windows.wind

Re: kernel32 missing symbol definitions?

2016-01-07 Thread Rikki Cattermole via Digitalmars-d-learn
On 08/01/16 1:27 PM, Yamiez wrote: Why is kernel32 missing symbols? e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/ If you can build for 64 do so. That will fix it until somebody or you solve it from the import libs.

Re: kernel32 missing symbol definitions?

2016-01-07 Thread Yamiez via Digitalmars-d-learn
On Friday, 8 January 2016 at 00:31:25 UTC, Rikki Cattermole wrote: On 08/01/16 1:30 PM, Rikki Cattermole wrote: On 08/01/16 1:27 PM, Yamiez wrote: Why is kernel32 missing symbols? e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/ If you can build for 64 do so. That will fix it unt

Re: kernel32 missing symbol definitions?

2016-01-07 Thread Rikki Cattermole via Digitalmars-d-learn
On 08/01/16 1:30 PM, Rikki Cattermole wrote: On 08/01/16 1:27 PM, Yamiez wrote: Why is kernel32 missing symbols? e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/ If you can build for 64 do so. That will fix it until somebody or you solve it from the import libs. grah, s/64/64 bi

Re: kernel32 missing symbol definitions?

2016-01-07 Thread Yamiez via Digitalmars-d-learn
On Friday, 8 January 2016 at 00:30:44 UTC, Rikki Cattermole wrote: On 08/01/16 1:27 PM, Yamiez wrote: Why is kernel32 missing symbols? e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/ If you can build for 64 do so. That will fix it until somebody or you solve it from the import l

kernel32 missing symbol definitions?

2016-01-07 Thread Yamiez via Digitalmars-d-learn
Why is kernel32 missing symbols? e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/

Re: Convert a hex string into a ubyte[] or OutBuffer

2016-01-07 Thread Basile B. via Digitalmars-d-learn
On Thursday, 7 January 2016 at 21:00:06 UTC, zabruk70 wrote: Hello. In modern phobos ver 2.069.1 exists template hexString https://dlang.org/phobos/std_conv.html#.hexString to convert hex string to bytes. It works in compile time only. But what if i need it in run time? Is the answer in this t

Re: Convert a hex string into a ubyte[] or OutBuffer

2016-01-07 Thread Basile B. via Digitalmars-d-learn
On Thursday, 7 January 2016 at 21:00:06 UTC, zabruk70 wrote: Hello. In modern phobos ver 2.069.1 exists template hexString https://dlang.org/phobos/std_conv.html#.hexString to convert hex string to bytes. It works in compile time only. But what if i need it in run time? Is the answer in this t

Re: GTKD - Write Pixbuf back to context

2016-01-07 Thread Gerald via Digitalmars-d-learn
https://developer.gnome.org/gtkmm-tutorial/stable/sec-draw-images.html.en Does this work for you?

Re: Convert a hex string into a ubyte[] or OutBuffer

2016-01-07 Thread zabruk70 via Digitalmars-d-learn
Hello. In modern phobos ver 2.069.1 exists template hexString https://dlang.org/phobos/std_conv.html#.hexString to convert hex string to bytes. It works in compile time only. But what if i need it in run time? Is the answer in this topic still best way? Or now we have some function/template in

GTKD - Write Pixbuf back to context

2016-01-07 Thread TheDGuy via Digitalmars-d-learn
Hello, after i found out how i can access the pixel data in this thread: http://forum.dlang.org/thread/ljktabqxzdjprrqca...@forum.dlang.org i want to know how i can write the Pixbuf back to my context? This code doesn't work because the color does not change: cr.setSourceRgb(0,0,0); cr.rectan

Linking a DLL to a DLL with packages

2016-01-07 Thread Thalamus via Digitalmars-d-learn
Hi everyone, First off, I've been working with D for a couple of weeks now and I think it's the bee's knees! :) Except for DLLs. I've been combing through forum posts and Google for this situation. Several threads and articles are close but don't quite cover what I'm doing here. On Windows

Re: vibe / how to use the Win32EventDriver ?

2016-01-07 Thread Daniel Kozak via Digitalmars-d-learn
V Thu, 7 Jan 2016 16:35:24 +0100 "Robert M. Münch via Digitalmars-d-learn" napsáno: > When I build for Windows, it seems that the "libevent" driver is > used. I can see that there is a "Win32EventDriver" which setups a GUI > message loop as well. How can I use this driver instead of the > "libeve

Re: About Immutable struct members and arrays.

2016-01-07 Thread Jack Applegame via Digitalmars-d-learn
On Thursday, 7 January 2016 at 00:19:12 UTC, anonymous wrote: On 06.01.2016 23:04, Jack Applegame wrote: move(bar, arr[0]); // ok I consider it a bug that this compiles. You're overwriting immutable data, which shouldn't be possible (without casting). https://issues.dlang.org/sho