How to load bitmap in vb using vc++ dll
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
hai, i am new to dll. any one please explain how to load bitmap in vb using vc++ dll
-
hai, i am new to dll. any one please explain how to load bitmap in vb using vc++ dll
To load a bitmap from a file you can use
LoadImage
function (http://msdn2.microsoft.com/en-us/library/ms648045.aspx[^]) for instance:HANDLE hBitmap = LoadImage(NULL, filepath, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);
where filepath is a string containing the path of your bitmap file. Note, you have to call
DeleteObject(hBitmap)
to perform cleanup when you've finished with the image. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.