user27
Posts: 6
Joined: 4/6/2008
Status: offline
|
Hi there I am trying to embed an image on my project and then to load in an imagebox or picturebox. I try loadimage and loadbitmap functions with no luck. Always the same message. "File Not Found". Do i declere the functions wrong. Do i call them wrong. My code is: 'Declarations Declare Function LoadImage Lib "coredll" Alias "LoadImageW" (ByVal hInst As Long, ByVal lpsz As Long, ByVal un1 As Long, ByVal n1 As Long, ByVal n2 As Long, ByVal un2 As Long) As Long Declare Function LoadBitmap Lib "coredll" Alias "LoadBitmapW" (ByVal HISTANCE As Long, ByVal LPCTSTR As Long) As Long 'Calling the functions ImageCtl1.Picture = LoadBitmap(App.hInstance, 1) ImageCtl1.Picture = LoadImage(App.hInstance, 1, IMAGE_BITMAP, 0, 0, 0) Please help. What i am doing wrong?
|