Shared library string safety?

evilrat evilrat666 at gmail.com
Tue Jan 14 01:35:10 PST 2014


On Tuesday, 14 January 2014 at 07:44:21 UTC, Mineko wrote:
>
> this.get = glfwCreateWindow(settings.width, settings.height,
> 	toStringz(settings.title), this.monitor, this.share);
> 			
> writeln(this.get);
>
> That writeln will give me null, is it related to all this stuff?

i've looked up in your sources on github and not found derelict 
initiliazation. i recommend loading glfw in relevant module with 
module ctor. most if non all derelict bindings has dynamic 
loading, don't forget to load and init derelict 'plugins' if 
necessary.

----------------
module window;

static this()
{
DerelictGLFW.load();
}

class Window
{
... using GLFW here ...
}
--------------


More information about the Digitalmars-d-learn mailing list