Errors

justin mun
07-20-2003, 06:55 PM
hi,

Presently i'm saving this image file at extension BMP, after which i will convert to JPG file.

I have a Bmp2Jpg.dll include in my program.

But whenever i run my program, it always pop up a fault to me saying that Bmp2Jpg.dll file not found. and the code is as below for saving up the files.

SavePicture Picture1.Image, App.Path & "\ImageN" & Contador & ".Bmp"
BmpToJpeg "D:\" & "ImageN0.Bmp", "D:\" & "ImageN0.jpg", 100

Can u help me to fault find this matters..thank you very much.

Thinker
07-20-2003, 07:17 PM
What API declaration are you using for the BmpToJpeg function?

justin mun
07-20-2003, 07:31 PM
What API declaration are you using for the BmpToJpeg function?


hi,

the declaration is


Private Declare Function BmpToJpeg Lib "Bmp2Jpeg.dll" (ByVal BmpFilename As String, ByVal JpegFilename As String, ByVal CompressQuality As Integer) As Integer

thank you

Thinker
07-20-2003, 07:40 PM
Then the first thing to try is to put the dll in the windows system folder.
For win9x this would be windows\system and for NT/2K it would be
winnt\system32. For XP it could be windows\system32 or winnt\system32
depending on how XP was installed.

justin mun
07-20-2003, 09:29 PM
Then the first thing to try is to put the dll in the windows system folder.
For win9x this would be windows\system and for NT/2K it would be
winnt\system32. For XP it could be windows\system32 or winnt\system32
depending on how XP was installed.


I have already put the dill inside my winnt/system32.

It can work now

Thank you very much for youe help. thx

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum