调用动态库函数兑现方法,

调用动态库函数实现方法,急急急
[code=C/C++][/code]int SaveBitmap(unsigned char *lpBits, int width, int height, LPCTSTR lpszPathName);这个是封装在动态库里面的函数,主要功能是保存图像,参数有大小,宽度,高度,和文件路径名,我要调用这个函数,怎么实现,求代码.里面参数都是输出参数.我技术垃圾的很

------解决方案--------------------
动态库?dll?
LoadLibrary
GetProcessAddress
你查一下这两个函数就可以用了
如果有dll对应的lib(指生成dll目录下的那个lib而不是静态库)
也可以静态调用
------解决方案--------------------
大致上是这样的调用方法:
C/C++ code

typedef int (*SaveBitmap_FP)(unsigned char *lpBits, int width, int height, LPCTSTR lpszPathName);
HINSTANCE hinstance;
SaveBitmap_FP SaveBitmap;
hinstance = LoadLibrary("your.dll");
SaveBitmap = (SaveBitmap_FP)GetProcAddress(hinstance, "SaveBitmap");

------解决方案--------------------
参考
C:\MSVC20\SAMPLES\win32\simpldll\LOADTEST.C
C:\MSVC20\SAMPLES\win32\simpldll\LOADTEST.H

VC++2.0 MSVC20 "Microsoft Visual C++ Version 2.0" "1994 Microsoft Corporation" 
http://download.csdn.net/detail/zhao4zhong1/3253384