Glew and multiple DLL project

Hi,

I have a weird error with glew and i do not understand.
I have 3 projects (2 dll and 1 exe), one is my 3D engine an other is a package with basics stuffs((like render a basic mesh, or manage input,…) to help the third final project.

I init glew in the engine, the second project render some geometry, but i have a 0xC0000005: Access violation executing location 0x00000000 on the first openGL method.

But if i init glew in the second project, it’s work. It’s not work if i init in the third one.

Why i have to init glew in the dll that use Opengl method?
Anyone have an idea?
Thx

[QUOTE=-D-j-O-;1262318]Hi,

I have a weird error with glew and i do not understand.
I have 3 projects (2 dll and 1 exe), one is my 3D engine an other is a package with basics stuffs((like render a basic mesh, or manage input,…) to help the third final project.

I init glew in the engine, the second project render some geometry, but i have a 0xC0000005: Access violation executing location 0x00000000 on the first openGL method.

But if i init glew in the second project, it’s work. It’s not work if i init in the third one.

Why i have to init glew in the dll that use Opengl method?
Anyone have an idea?
Thx[/QUOTE]

I found, i have to link dynamically glew and not statically in my Dlls