mIRC Home    About    Download    Register    News    Help

Print Thread
M
meier
meier
M
Hi,
i have a problem.. I have a txt File which has more than 50 000 Lines, but $lines(the.filename) return only ~600. Same if i try to search for a word within a line..it do not find any lines after the first ~600.
The error occured after breaking the 50 000 line.
Anyone has a solution, hint?

Maybe a help how to write dll functions in Visual Basic for mirc (so i could use a non-server-based database) ?

Thanks
Meier

Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
Why are you referencing a 50,000 line file? Use hash tables. A lot quicker, as well as easier imo.

R
RockHound
RockHound
R
Beats me too cause i have had over 10000 mp3's in a txt file before and it read them all fine. I would guess the txt file you are working with is so massive mirc got lazy at your request and decided the txt file was just to big. mnight depend what you have and how big the txt file is. I do know with writeini mirc has problem writing to an in i file that is over 64k so this might be something simular

M
meier
meier
M
Thanks guys, i will try the hash tables at first - but i'm still looking for a way to write dll's which mirc supports coded in visual basic.

Any hints or solutions would be really helpful - thanks smile

Greets
Meier

Joined: Dec 2002
Posts: 397
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
i think there is a tutorial on mircscripts.org on writeing dlls cheak there ;p

M
meier
meier
M
A really nice tutorial - ´badly that i am not able to code in c++
so far i think there is no possibility to write such a dll in visual basic (the tut. author listed the programming languages which creates real win32 dll's - i remember visual basic only creates activex dll's..)

Joined: Apr 2003
Posts: 413
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 413
I do know with writeini mirc has problem writing to an in i file that is over 64k so this might be something simular - now you can use the new -n switch ..
From help file: If the -n switch is specified, mIRC will attempt to write to the .ini file even if it is larger than 64k.


Joined: Nov 2003
Posts: 203
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 203
Quote:

If the -n switch is specified, mIRC will attempt to write to the .ini file even if it is larger than 64k.

This does depend on the operating system, with mIRC and windows 98 I could not make an ini file larger than 64k (with the n flag), XP does not have this problem.

C
ClownDevilBoy
ClownDevilBoy
C
I am going to try to make a dll for mIRC in Visual Basic. So if I do get it to work I will pass on the information to the community. But first I have to find my vb6 cd lol. I hope I can just so I can make the dll. I am able to read and convert most c to vb, so that might help a little. Anyway, I am off to find the cd.

R
RockHound
RockHound
R
Adrenalin

um err yeah sorry thats kinda what i meant um in alien language


Link Copied to Clipboard