Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


some questions about VB6

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General programming
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

PostPosted: Tue May 06, 2008 7:39 am    Post subject: some questions about VB6 Reply with quote

1. how do i download something from a link?
2. how do i make him search a textfile for some words/letters?
3. what do i use for a part i dont know/ i dont care about
example:
i want him to search for every url begining with "www." and ending with ".gif"

_________________
Back to top
View user's profile Send private message
92Garfield
I'm a spammer
Reputation: 57

Joined: 20 Dec 2007
Posts: 5871
Location: Banana Republic Germany

PostPosted: Tue May 06, 2008 8:00 am    Post subject: Reply with quote

mas8rx8 wrote:
Google anyone? anyone? www.google.com

1) UrlDownloadFileA?

Confused and you think i havent tried google?....
not helpfull

_________________
Back to top
View user's profile Send private message
92Garfield
I'm a spammer
Reputation: 57

Joined: 20 Dec 2007
Posts: 5871
Location: Banana Republic Germany

PostPosted: Tue May 06, 2008 8:52 am    Post subject: Reply with quote

mas8rx8 wrote:
Google search string "Howto download a file in VB6"

1st link,
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


URLDownloadToFile 0, "http://www.microsoft.com/ms.htm", "c:\ms.htm", 0, 0)

lol and now tell me how it works Rolling Eyes
lets see...
i make variables...
3 long, 2 string and convert them all to one long? why?

_________________


Last edited by 92Garfield on Tue May 06, 2008 8:59 am; edited 1 time in total
Back to top
View user's profile Send private message
92Garfield
I'm a spammer
Reputation: 57

Joined: 20 Dec 2007
Posts: 5871
Location: Banana Republic Germany

PostPosted: Tue May 06, 2008 9:01 am    Post subject: Reply with quote

mas8rx8 wrote:
You should really learn the basics of VB6, declarations: 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


then you call
URLDownloadToFile 0, "http://www.microsoft.com/ms.htm", "c:\ms.htm", 0, 0)

to download something to somewhere.


I am totally serious, go learn the basics of VB6


i make variables...
3 long, 2 string and convert them all to one long? why?
then in the end i do ")" why? there is no "(" and why the much "0"s?
and the begining will cause an error wait i post screen


wait a sec im translating...
Quote:
Error while compiling:

After End Sub, End function or end properity may only be (/stand) a comment

_________________


Last edited by 92Garfield on Tue May 06, 2008 9:05 am; edited 1 time in total
Back to top
View user's profile Send private message
92Garfield
I'm a spammer
Reputation: 57

Joined: 20 Dec 2007
Posts: 5871
Location: Banana Republic Germany

PostPosted: Tue May 06, 2008 9:08 am    Post subject: Reply with quote

mas8rx8 wrote:
Give a picture of full screen, not only the msgbox.


Also, why are you ignoring my comment: "Go learn the basics of VB6"

as long as you cant explain the code by urself you shouldnt say such things
Confused
the error is clear...
i cant put
"private declare function" just below "private sub ..."
"Go learn the basics of VB6"

_________________
Back to top
View user's profile Send private message
92Garfield
I'm a spammer
Reputation: 57

Joined: 20 Dec 2007
Posts: 5871
Location: Banana Republic Germany

PostPosted: Tue May 06, 2008 10:30 am    Post subject: Reply with quote

ok here is what you want (strange full screen fetish) http://imagehoster.us/uploads/2c0114a914.jpg

the red thing is cause of the ")" without "("

_________________
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8585
Location: 127.0.0.1

PostPosted: Tue May 06, 2008 10:44 am    Post subject: Reply with quote

92Garfield wrote:
mas8rx8 wrote:
Give a picture of full screen, not only the msgbox.


Also, why are you ignoring my comment: "Go learn the basics of VB6"

as long as you cant explain the code by urself you shouldnt say such things
Confused
the error is clear...
i cant put
"private declare function" just below "private sub ..."
"Go learn the basics of VB6"


He said what he did because you ask basic questions ALL THE TIME. Every single post in this section that you ask is a basic question that you would learn if you took the time and read up on the language. And no, just because he didn't hand you the answer on a silver platter does not mean he doesn't know.

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites