Dll's
- Posted by Paul Martin <twilight at WCC.NET> Mar 20, 1999
- 536 views
Hello all, I have a question about DLL's and wrappers. I'm currently putting together a wrapper for OpenGL. The question I have pertains to pointers and values that are passed to a function or procedure. Let's suppose I come across a line in the C source that the DLL was made, like: WINGDIAPI void APIENTRY glColor3ui (GLuint red, GLuint green, GLuint blue); This would translate to: constant gl_Color3ui = define_c_proc(OpenGL, "glColor3ui",{C_INT,C_INT,C_INT}) Right? But what if I run into this: WINGDIAPI void APIENTRY glTexCoord1dv (const GLdouble *v); Does it translate to: constant gl_TexCoordldv = define_c_proc(OpenGL, "glTexCoordldv",{C_POINTER}) Does the "*" denote a pointer? If so, would there be any other instances where I would need to use a pointer instead of passing or receiving a value directly? Also a question for Robert Craig. Are you going to ever install code into Euphoria that will allow for easier access to DLL's and possibly eliminate the need for wrappers. Thanks Paul Martin