I tend to just use libpng directly.
The following is a very simple example of loading the png into a byte array (ready for uploading to the graphics card)
If you would like a library that generates the OpenGL texture for you, then perhaps also have a look at OpenIL (DevIL).
thank for replying.
where do i get the unistd.h file? vc said it was not able to find it.
my problem is not know how to use it, it is how to link it to vs c++ 2010. i might be wrong, i still haven't read the file very carefully, yet. do i have to link the project to libpng.lib before using the program? if that is the case, i still don't know how to link it to libPNG. it would be nice if you could walk me through the process of compiling the libpng lib and building the libPNG.lib.