I am trying to download images using "Function URLDownloadToFile Lib "urlmon" When I created VB application it's working fine and I am able to get the information but when I tried to create a DLL and pass the parameters from an ASP it's not downloading the images and as well as it's not showing any error.
Private Declare Function URLDownloadToFile Lib "urlmon" _
Alias "URLDownloadToFileA" _
(ByVal pCaller As Long, _
ByVal szURL As String, _
ByVal szFileName As String, _
ByVal dwReserved As Long, _
ByVal lpfnCB As Long) As Long
Private Const ERROR_SUCCESS As Long = 0
Public Function DownloadFile(sSourceUrl As String, _
sLocalFile As String) As Boolean
DownloadFile = URLDownloadToFile(0&, _
0&) = ERROR_SUCCESS
sSourceUrl = URL
sLocalFile = "c:\deleteme.jpg"
If DownloadFile(sSourceUrl, sLocalFile) Then
DownloadFrmURL = "TRUE"
Call from ASP:
Set objCutCID = Server.CreateObject("DownL
IsCreated = objCutCID.DownloadFrmURL("https://www.xxxx.org/test.asp?x=1&y=2
if IsCreated = "TRUE"
response.write "not created"
Any help will be greatly appriciated