Search found 18 matches

by thyr0x1ne
Sat Oct 09, 2004 6:46 pm
Forum: Coding Questions
Topic: Cleaning a txt file from dupes ...
Replies: 4
Views: 1391

I decided to make a procedure removing dupe lines *after* the file creation ; here's a working code but of course there must be some limitations ( size of text file certainly ...)


Procedure RemDupes()

OpenFile(1,"range.dic")

While Eof(1) = 0
text$=text$+Trim(ReadString())+Chr(42)
Wend ...
by thyr0x1ne
Fri Oct 08, 2004 8:58 pm
Forum: Coding Questions
Topic: Cleaning a txt file from dupes ...
Replies: 4
Views: 1391

damn :/ i cant find the right way ... i used Array as you said , but for large files the exe i did freeze like hell :/

i need a good sleep i think , will lose more neurons tomorrow for now :)

btw thks for your reply
by thyr0x1ne
Fri Oct 08, 2004 2:54 pm
Forum: Coding Questions
Topic: Cleaning a txt file from dupes ...
Replies: 4
Views: 1391

Cleaning a txt file from dupes ...

Im looking for a way to clean a txt file from all the dupes inside

For example transform :
../file.txt
amero
ameri
amerp
amero
amerp
amera

in ../file.txt
ameri
amera

so removing amerp / amero

heres a part of code i wrote :


Procedure CleanText()

totalstring.l=CountString(textdata,".") + 1 ...
by thyr0x1ne
Tue Oct 05, 2004 7:11 pm
Forum: Coding Questions
Topic: Adding String in a ListView
Replies: 3
Views: 1249

more than a hint , the right part of what i wanted to do ... just a few changes and now it works perfectly , ty very much!
by thyr0x1ne
Tue Oct 05, 2004 4:21 pm
Forum: Coding Questions
Topic: Adding String in a ListView
Replies: 3
Views: 1249

Adding String in a ListView

Im currently looking for "loading" a text file in a ListView Gadget , each line of the text on a ListView one.

My problem is that the

SendMessage_(GadgetID(#ListView_0), #LB_ADDSTRING, 0, String)

doesnt seem to work for me .. i bet i m wrong with the OpenFile command trying to retrieve each line ...
by thyr0x1ne
Fri Jun 11, 2004 1:04 pm
Forum: Coding Questions
Topic: Difficulties with NT service
Replies: 2
Views: 1275

thks for the tip , but the problem still the same

error 1503 ... cant really understand why , even after a proper reboot

well maybe its an internal problem with the exe i want make a service of

btw thks for this tip
by thyr0x1ne
Thu Jun 10, 2004 12:54 pm
Forum: Coding Questions
Topic: Difficulties with NT service
Replies: 2
Views: 1275

Difficulties with NT service

I wrote a simple mail checker and wanted add it as a NT service on my windows XP to check if mails where on my ISP account.

I of course tried the NT Service script from purearea.net allready given here : http://forums.purebasic.com/english/viewtopic.php?t=8762&highlight=nt+service

I removed the ...
by thyr0x1ne
Fri May 28, 2004 6:30 pm
Forum: Coding Questions
Topic: Trying to write a simple mirc DLL
Replies: 0
Views: 822

Trying to write a simple mirc DLL

As i often use mIRC and as im a bit addicted , i am looking to write some simple dll to test "DLL supports"
I browsed the forum and found a thread about ... sorry if i dont report here the name of this guy :


ProcedureDLL hello(mWnd,aWnd,command.s,param.s,show.b,nopause.b)


I was looking for ...
by thyr0x1ne
Fri Apr 16, 2004 1:08 pm
Forum: Coding Questions
Topic: Create/Work a database of words
Replies: 7
Views: 2228

Create/Work a database of words

Well im working since a few days on a medical database for student like me through our intranet chat program ...

I was looking to create a little routine in Purebasic to check for a word in a list ... the list is named definitions.dat , and each line has a structure like this :

"word : definition ...
by thyr0x1ne
Wed Apr 07, 2004 12:31 am
Forum: Coding Questions
Topic: problem with REG_lib and registry functions ..
Replies: 0
Views: 730

problem with REG_lib and registry functions ..

Well i tried this library and at least i must say it works really well

By the way , the registry entries i add are only from the type REG_SZ ; could you give me a hand or a tip to add a REG_DWORD value ? Or do i need to try another way ?
by thyr0x1ne
Thu Feb 19, 2004 8:33 pm
Forum: Coding Questions
Topic: Http Request
Replies: 3
Views: 1491

Nope , nothing new ... but you are surely better than me , even with a headache :?

Now have to admit that im wrong in the way i ask the http request ; and i cant use Win API ^^
So maybe if you take a look tomorrow you will find where's my bug


thanks and take care
by thyr0x1ne
Thu Feb 19, 2004 6:20 pm
Forum: Coding Questions
Topic: Http Request
Replies: 3
Views: 1491

Http Request

Im a totally beginner as i said before ... no Delphi , no C ; only PureBasic discovered a few days ago :

There is my first code :


OpenConsole()

Structure HTTPReq
head.s
langage.s
agent.s
host.s
conn.s
EndStructure

Global URL$
Global EOL$

URL$ = "http://whois.arin.net"
EOL$ = Chr(13 ...
by thyr0x1ne
Tue Feb 17, 2004 5:30 pm
Forum: Coding Questions
Topic: Returning txt in the right console ...
Replies: 2
Views: 1052

damn another big help from one of you all :)

works perfectly too ... thks ; btw i changed While ... , for Repeat | Until parameter = "" because of an error it returned
by thyr0x1ne
Tue Feb 17, 2004 11:33 am
Forum: Coding Questions
Topic: About console parameters
Replies: 5
Views: 1784

really thanks , it works perfectly
by thyr0x1ne
Tue Feb 17, 2004 11:32 am
Forum: Coding Questions
Topic: Returning txt in the right console ...
Replies: 2
Views: 1052

Returning txt in the right console ...

Well im now addicted to Purebasic nad had some troubles for my first application ... its a console-based one , and i learnd to use parameters

ex: reg.exe -n NAME -r REALNAME

btw , i would like to add a reg.exe which will give a detailled help in the same console windows on NT/XP , cause when i ...