From the gd FAQ. http://www.boutell.com/gd/faq.html Why does bgd.dll crash with my C program? You are trying to use gd's stdio library functions with a different C runtime library. Read on for notes on individual compilers. Microsoft Visual C++: If you want to use gdImageCreateFromPng, gdImagePng, and other functions that take a FILE *, you MUST use Visual C++ 6.0 or earlier and you MUST link with the "multithreaded DLL" runtime library option. If you wish to use the .NET compiler, read the "Borland C++" section for an alternative method.
If you do not take the time to understand this, your program simply will not work! Note: the "multithreaded debug DLL" option is NOT the same thing and will NOT work. If you don't want to use the "multithreaded DLL" runtime library option (see "code generation" under "settings"), then read the "Borland C++" section for an alternative method.
John Bollinger, CFA, CMT
If you advance far enough, you arrive at the beginning.
Find Great Deals on Holiday Gifts at Yahoo! Shopping