mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2003
Posts: 3
M
meier Offline OP
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Dec 2003
Posts: 3
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: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Why are you referencing a 50,000 line file? Use hash tables. A lot quicker, as well as easier imo.


-KingTomato
Joined: Oct 2003
Posts: 80
R
Babel fish
Offline
Babel fish
R
Joined: Oct 2003
Posts: 80
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


RockHound
Joined: Dec 2003
Posts: 3
M
meier Offline OP
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Dec 2003
Posts: 3
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


Need amazing web design for low price: http://www.matrixn3t.net
Joined: Dec 2003
Posts: 3
M
meier Offline OP
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Dec 2003
Posts: 3
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: 414
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
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.



mIRC Chm Help 6.16.0.3 Full Anchored!
Joined: Nov 2003
Posts: 227
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 227
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.

Joined: Dec 2003
Posts: 2
C
Bowl of petunias
Offline
Bowl of petunias
C
Joined: Dec 2003
Posts: 2
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.


Signed Mr. W aka ClownDevilBoy
Joined: Oct 2003
Posts: 80
R
Babel fish
Offline
Babel fish
R
Joined: Oct 2003
Posts: 80
Adrenalin

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


RockHound

Link Copied to Clipboard