| View previous topic :: View next topic |
| Author |
Message |
92Garfield I'm a spammer
Reputation: 57
Joined: 20 Dec 2007 Posts: 5871 Location: Banana Republic Germany
|
Posted: Tue May 06, 2008 12:01 pm Post subject: [VB6] hopefully a lil problem |
|
|
i made a modul
| Code: | 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 |
and now i want to download for example my avatar
| Code: | | URLDownloadToFile(0, "http://www.bildhoster.org/uploads/5aebafcceb.gif", "C:\Dokumente und Einstellungen\Admin\Desktop\Neuer Ordner\avatar.gif", 0, 0) |
but then it says URLDownloadToFile isn't defined
maybe you can help me instead of insulting me for learning
i know its nothing just to be able to make trainers and thats why im trying to advance _________________
Last edited by 92Garfield on Tue May 06, 2008 12:09 pm; edited 1 time in total |
|
| Back to top |
|
 |
92Garfield I'm a spammer
Reputation: 57
Joined: 20 Dec 2007 Posts: 5871 Location: Banana Republic Germany
|
Posted: Tue May 06, 2008 12:10 pm Post subject: |
|
|
| mas8rx8 wrote: | | Put it in a form. |
you mean on form load event? its currently on a button click event _________________
|
|
| Back to top |
|
 |
92Garfield I'm a spammer
Reputation: 57
Joined: 20 Dec 2007 Posts: 5871 Location: Banana Republic Germany
|
Posted: Tue May 06, 2008 12:14 pm Post subject: |
|
|
what do you mean with "in" then?  _________________
|
|
| Back to top |
|
 |
92Garfield I'm a spammer
Reputation: 57
Joined: 20 Dec 2007 Posts: 5871 Location: Banana Republic Germany
|
|
| Back to top |
|
 |
Psy Grandmaster Cheater Supreme
Reputation: 1
Joined: 27 Mar 2008 Posts: 1366
|
Posted: Tue May 06, 2008 1:28 pm Post subject: |
|
|
| Private declare function? |
|
| Back to top |
|
 |
92Garfield I'm a spammer
Reputation: 57
Joined: 20 Dec 2007 Posts: 5871 Location: Banana Republic Germany
|
Posted: Tue May 06, 2008 1:52 pm Post subject: |
|
|
| [Psych] wrote: | | Private declare function? |
what is your question?
i thought that will define URLDownloadToFile as a function..
got it on a much easier way.. _________________
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8585 Location: 127.0.0.1
|
Posted: Tue May 06, 2008 2:45 pm Post subject: |
|
|
| Wiccaan wrote: | | Locking this and any future posts you make that ask a question about something basic. Do yourself, and all of us, a favor and go read. |
_________________
- Retired. |
|
| Back to top |
|
 |
|