It is currently Wed May 22, 2013 11:49 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 232 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 16  Next
Author Message
 Post subject:
PostPosted: Wed Oct 26, 2005 10:17 am 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 4715
Location: Berlin - Germany
Heis Spiter wrote:
You're right. I've some problems with mathematics words in English :oops:. If someone can correct it in PBOSL ;).
i will change it for next version in
Code:
Result.l = RandomPrime(Maximum)

Heis Spiter wrote:
About bugs, I think I've found a bug in NTService. The function removeservice doesn't work. It's strange ! I would delete a service, so I use this function that didn't work. To see where it failed, I tried with source, and with source it works... :shock:
Sorry, i have test it with the examples, it works for me :?:

Quote:
Stest.exe /install

Service "NT-Services the easy way" is installed and
Quote:
Stest.exe /remove

Service "NT-Services the easy way" is removed
Can you post a codeexample, please?

_________________
PureBasic 5.11 | Windows 7 SP1 (x64) | Linux Mint 14 (x64) | RealSource

The use of EnableExplicit is free of charge and avoids errors.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 26, 2005 10:22 am 
Offline
Addict
Addict
User avatar

Joined: Fri Feb 13, 2004 12:45 am
Posts: 2749
Location: Bergen, Norway
I have used the remove service and that worked fine for me. Did you remember to stop it first?

_________________
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 26, 2005 11:03 am 
Offline
User
User
User avatar

Joined: Fri Aug 22, 2003 7:10 pm
Posts: 41
Location: 76 (FRANCE)
No :lol:. That explains all ;). I'm a bit absent-minded :?.
I've too a suggestion to do. My program doesn't support Pause/Resume. And I've seen that Avast service doesn't purpose those options. How can I do to delete those options to my service ? (After install, or during install)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 26, 2005 11:30 am 
Offline
Addict
Addict
User avatar

Joined: Fri Feb 13, 2004 12:45 am
Posts: 2749
Location: Bergen, Norway
I'm not really sure what you mean. Could you explain abit more?

_________________
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 26, 2005 11:54 am 
Offline
User
User
User avatar

Joined: Fri Aug 22, 2003 7:10 pm
Posts: 41
Location: 76 (FRANCE)
Ok. When you have created a service with the lib, your service has four options : Start, Pause, Resume, Stop. My programme can't support Pause and Resume. And I've seen that Avast! has only two options : Start, Stop. So, I would like to know how I can do to have only Start and Stop.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 26, 2005 11:56 am 
Offline
Addict
Addict
User avatar

Joined: Fri Feb 13, 2004 12:45 am
Posts: 2749
Location: Bergen, Norway
I see what you mean and that is a good question.
Was wondering about that myself.
I'd also like to be able to add a service, but not as automatic , but to run manually when needed.

_________________
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 26, 2005 1:04 pm 
Offline
User
User
User avatar

Joined: Fri Aug 22, 2003 7:10 pm
Posts: 41
Location: 76 (FRANCE)
GeoTrail wrote:
I'd also like to be able to add a service, but not as automatic , but to run manually when needed.
When you install your service, use this constant
Code:
#SERVICE_DEMAND_START   = $00000003
instead this constant
Code:
#SERVICE_AUTO_START     = $00000002


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 26, 2005 1:25 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Feb 13, 2004 12:45 am
Posts: 2749
Location: Bergen, Norway
That's great. Just what I needed. Thanks m8 :)

_________________
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 26, 2005 1:57 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 4715
Location: Berlin - Germany
For the next PBOSL-Update, i have added the constants to the pbosl.chm

You can also help to corrected the helpfile by creating a account on webPM, send me a PM, please
(translated by webtranslator, sorry)

_________________
PureBasic 5.11 | Windows 7 SP1 (x64) | Linux Mint 14 (x64) | RealSource

The use of EnableExplicit is free of charge and avoids errors.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 02, 2005 11:43 am 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 4715
Location: Berlin - Germany
Update: PBOSL_RandomPrime, PBOSL_PurePDF (little Bugfix)
New Version: PBOSL_SQLite3 (see examples, help is coming soon...)

_________________
PureBasic 5.11 | Windows 7 SP1 (x64) | Linux Mint 14 (x64) | RealSource

The use of EnableExplicit is free of charge and avoids errors.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 05, 2005 7:35 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Oct 20, 2004 7:16 pm
Posts: 238
Location: The Village
GeoTrail wrote:
Does anyone have some info about the status service?
GetServiceStatus() retreives a numeric value from 1 to 4. I found that 1 means disabled and 4 is enabled, but I don't know if it's running or not.

These are the constents I have taken with autocompletion typing #Service_ and looking for constents whish have a name looking as a state.
Code:
#SERVICE_STOPPED = 1
#SERVICE_INACTIVE = 2
#SERVICE_STATE_ALL = 3
#SERVICE_RUNNING = 4
#SERVICE_PAUSED = 7

Strange... there is not 5 and 6... but if someone confirme, I will add it in the help because I can test it, I am on Win 98 SE.
I know my method is not the best, but it seams to work. ;-)
Message edited, mistake with first constent.

_________________
Be seeing you! :-)

Gansta93
If you speak french, you can visite Le Monde de Gansta93 (Gansta93's World)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 05, 2005 8:16 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Oct 20, 2004 7:16 pm
Posts: 238
Location: The Village
A suggestion:
To compile the help file, only two files of HTMLHelpWorkshop are requiered : HHA.dll and HHP.exe.
Why not propose a seperated pack with thes two files if the user has not HTMLHelpWorkshop or just include thes two file in the zip archive which conteins the sources of help? If we do it, it won't be necessary to edit make.bat and it will be simply
Code:
@echo off
@generate.exe /quiet
@cd output
..\hhc.exe PBOSL.hhp
so it'll be compatible with all configurations.
What do you think? :?:

_________________
Be seeing you! :-)

Gansta93
If you speak french, you can visite Le Monde de Gansta93 (Gansta93's World)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 05, 2005 8:23 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 4715
Location: Berlin - Germany
the hhc.exe is not redistributable, only as original-setup.

_________________
PureBasic 5.11 | Windows 7 SP1 (x64) | Linux Mint 14 (x64) | RealSource

The use of EnableExplicit is free of charge and avoids errors.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 05, 2005 8:31 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Oct 20, 2004 7:16 pm
Posts: 238
Location: The Village
ts-soft wrote:
the hhc.exe is not redistributable, only as original-setup.

Oops, this is the consequence of not reading licences. :-) I'm understand, thx.

_________________
Be seeing you! :-)

Gansta93
If you speak french, you can visite Le Monde de Gansta93 (Gansta93's World)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 05, 2005 9:34 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Oct 20, 2004 7:16 pm
Posts: 238
Location: The Village
About GetServiceStatus(), I have it. :-D
Code:
#SERVICE_STOPPED = 1
#SERVICE_START_PENDING = 2
#SERVICE_STOP_PENDING = 3
#SERVICE_RUNNING = 4
#SERVICE_CONTINUE_PENDING = 5
#SERVICE_PAUSE_PENDING = 6
#SERVICE_PAUSED = 7

Here are the explications of constents (I will take thes in the help with WebPM but not if TsSoft is disagrea).
Quote:
#SERVICE_STOPPED = The service is not running.
#SERVICE_START_PENDING = The service is starting.
#SERVICE_STOP_PENDING = The service is stopping.
#SERVICE_RUNNING = The service is running.
#SERVICE_CONTINUE_PENDING = The service continue is pending.
#SERVICE_PAUSE_PENDING = The service pause is pending.
#SERVICE_PAUSED = The service is paused.

I was on a good way! :-D

_________________
Be seeing you! :-)

Gansta93
If you speak french, you can visite Le Monde de Gansta93 (Gansta93's World)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 232 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 16  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye