I have made a little simple program in VB. Basically it loads, shows a image, stays visible for 2 seconds then unloads itself. A splash screen.
I would like this to appear BEFORE windows (i.e. explorer.exe) starts.
So using VB to edit...
Right, I've tried your method John but unfortunately it takes a very long time to load the executable file into the Array so it is not appropriate.
A very nice idea though.
Does anyone else have any suggestions or other methods of trying to solve my problem?
Thanks in advance
I need to sort an array of strings BUT need to keep a record of the original position of the string from the original array. ALSO store its position in another array (of integers).
e.g.
original array
of strings
0 B
1 B
2 A
3 C
4 F
5 G
6 D...
So does there have to be another array to store all the EXE data (in no particular order) ?
Anyone know of a sorting algorithm I can use to the specification of above?
Thanks.
I think I know what you are getting at. Here is how I have amended the code so far:
Dim Ary1()
Dim Ary2()
ReDim Ary1(0)
ReDim Ary2(0)
Dim Data As String
Dim Ary3(255)
Dim Found As Boolean
Found = False
X = 0 'X will hold number of bytes in file
Num = 0 'Used solely in the for loop below...
John, thanks for that, after a bit of tweaking that method is in fact slower than using InStr. Thanks anyways, appreciate it.
Well there is about 2500+ different strings. The executable is opened, and each string in turn is searched for in the executable file. The strings are not whole words...
I am searching for multiple strings, I currently have an array which holds all the search criteria. I then search through the FileData$ searching for each string in turn (from the array) and if a match is found stop the current process otherwise carry on to the next string in the array. The...
I tried the following:
FileData$ Like "*" & Search$ & "*"
It worked but after time analysis using LIKE has not made much difference, if anything.
Thanks for that suggestion John.
Any other suggestions?
Thanks again.
what i'm actually doing is this:
i have a EXE file located: C:\FILE.EXE
I have opened this file etc. etc. and assigned it's data to a string called FileData.
Now my search criteria is stored as Search$.
FileData is going to hold a lot of data from the EXE file. That is the dilemma in further...
I have two strings, and I am comparing them to see if one strings' contents exist in the other:
e.g.
Dim A as string
Dim B as string
A$ = "hello"
B$ = "lo"
then using: Instr(A$, B$)
I am (in my project) assigning large amounts of data to the strings.
Is there any other...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.