check out this for info
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconusingcallbackfunctions.asp
and check this out for the answer
http://groups.google.co.uk/groups?hl...A.2300%40TK2MS
FTNGP10.phx.gbl&rnum=1&prev=/groups%3Fq%3Ddelegate%2520from%2520IntPtr%26hl%
3Den%26lr%3D%26sa%3DN%26tab%3Dwg
cool code or what :)
--
HTH
Ollie Riches
http://www.phoneanalyser.net
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a programmer
helping programmers.
"Dennis Vansickle" <De*************@discussions.microsoft.com> wrote in
message news:2E**********************************@microsof t.com...
Hi all.
I'm working with the Tao OpenGL libraries for C# but ran into a problem
getting a function to work.
What I've done is:
// Set current context
Wgl.wglMakeCurrent(hDC, hRC);
// get entry point of the function
IntPtr pfnColorTableEXT = Wgl.wglGetProcAddress("glColorTableEXT");
// I have a value other than Zero at this point.
// How do I create a delegate or function pointer to this entry point?
Any help would be appreciated.
Dennis