Page 1 of 2 12>
Topic Options
#84856 - 2002-01-16 02:39 PM registering dll
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
alex/shawn,
as you can in script register the dll - like kixwinvb.dll. - can you also unregister it?
_________________________
!

download KiXnet

Top
#84857 - 2002-01-16 02:48 PM Re: registering dll
Alex.H Offline
Seasoned Scripter

Registered: 2001-04-10
Posts: 406
Loc: France
Lonkero,
The same way as registering :
regsvr32 snappin.dll /u /s
(/s for silent, as always)
but if you plan to do this in a script that use the dll, you should before close everyting and clear all variables referencing this dll or objects from this one.
_________________________
? getobject(Kixtart.org.Signature)

Top
#84858 - 2002-01-16 03:50 PM Re: registering dll
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Alex...

There is yet an easier way. If you want to register/unregister DLL/OCX/EXE (DCOM) files alot, check out this Context Menu Add-in.
http://www.codeguru.com/mfc/comments/11272.shtml

If you want to download it directly - http://www.sellsbrothers.com/tools/regsvr.reg

Have fun!

- Kent

_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#84859 - 2002-01-16 04:27 PM Re: registering dll
Alex.H Offline
Seasoned Scripter

Registered: 2001-04-10
Posts: 406
Loc: France
kdyer,
Thanks for this one, i was too lazy to search it

But if i remember correctly, in a previous thread, Lonkero was looking for the possility to register a dll in kixtart. Starting from this one, I suppose Lonkero is looking to unregistered it in the same way.

_________________________
? getobject(Kixtart.org.Signature)

Top
#84860 - 2002-01-16 06:11 PM Re: registering dll
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
alex you are right.
I was thinking about my bbcodeparser.
instead of making ppl to install winhttp sdk and kixforms, I can add those files in package and use them in the exe way...
from the scripdir.
I tested the package and it works fine.
I just need to add function to remove all other but files.
this way I can make sure user has ability to "uninstall" my software.
offcourse there is the issue that user has allready either one registered, but if I use the scriptdir in registering calls, am I right that it does not affect systems shared dll's?

cheers,

_________________________
!

download KiXnet

Top
#84861 - 2002-01-16 06:34 PM Re: registering dll
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Oi lonk,

I have had no problems yet in registering those gems (all the way from kixlib32 over every build up to 18 of kixbgi32 to latest kixforms build) by simply copying (and registering) them once in %systemroot%\system32\ and just replacing them by more recent versions .... Since the glorious days of Kixbgi32 I have now a 'SendTo'-shortcut pointing to my System32

j.

[ 16 January 2002: Message edited by: jpols ]

_________________________



Top
#84862 - 2002-01-16 06:56 PM Re: registering dll
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
but what about users wanting to uninstall the "whole" soft?
if you register from systemdirs you can't uninstall it.
_________________________
!

download KiXnet

Top
#84863 - 2002-01-16 07:09 PM Re: registering dll
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Sure you can :


shell "%ComSpec% /c regsvr32 /u /s %Systemroot%\system32\anydll.dll"

del "%Systemroot%\system32\anydll.dll"


_________________________



Top
#84864 - 2002-01-16 07:42 PM Re: registering dll
Alex.H Offline
Seasoned Scripter

Registered: 2001-04-10
Posts: 406
Loc: France
Lonkero,
beware, as it's a dangerous path :
in case the user already have the component, registering the one you provide will replace the other one for Windows.
For each component (unless they are not binary compatible and so have a different Unique ID, aka GUID AND a different file name), you have one and only one entry. You should before test to see if the dll is already here. A simple getobject("serverdll.class") would be enough, as it's value will be 0 if the class or the serverdll is not good
_________________________
? getobject(Kixtart.org.Signature)

Top
#84865 - 2002-01-17 04:04 PM Re: registering dll
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
alex, that is what I ment with can't.
If you unregister it every time script runs and delete it,
you should also in the begin check if it is there.
so if it is put in the system path, it should stay there after uninstall.

otherwise, some other script or program may fail to run.
that's what I ment with can't.

_________________________
!

download KiXnet

Top
#84866 - 2002-01-17 04:07 PM Re: registering dll
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
and jpols, where you use %comspec%?
aren't the correct ones:
code:

shell "regsvr32 /u /s %Systemroot%\system32\anydll.dll"
del "%Systemroot%\system32\anydll.dll"

or what?
using console, makes it slower...

_________________________
!

download KiXnet

Top
#84867 - 2002-01-17 04:26 PM Re: registering dll
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Damn right Lonk !

sometimes the i hack the lines w/o thinking (more and more lately )

... So just leave then the dll as is :
registered and present when 'uninstalling' a script that runs it ...

I see the problematic now ... but hey , try a count of dll's on a system running for more than half a year and compare with a similar system that has all additional Software uninstalled ... think this would be an eye-opener


J.

Treat it as 'shared component' !!!

[ 17 January 2002: Message edited by: jpols ]

_________________________



Top
#84868 - 2002-01-17 04:28 PM Re: registering dll
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
jpols, yeah, but that's the way admins can say to users that computers should be upgraded every 3:rd year !!!!

this way the user sees himself that the machine is getting too slow for his usage, right?

_________________________
!

download KiXnet

Top
#84869 - 2002-01-17 05:01 PM Re: registering dll
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Jochen,Alex,Lonkero:

I've made an executive decision. Im going to change kixforms to go back to the old execute() style of event handling. Other than us three, no one on the board has given any feedback in terms of one strategy vs the other. Either nobody cares about which strategy is used, or nobody cares about the snappins in general ... Undaunted, Im going to keep pluggin away at building them because a) they are fun to use and b) they do have pratical use. And maybe it will take some time before the pluggins are accepted by the kixtart community at large ... the one thing that doesn't help kixforms is the fact that there is no manual ... a situation i will correct after the initial beta in done ... kix on my brothers !

-Shawn

Top
#84870 - 2002-01-17 05:07 PM Re: registering dll
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
RIGHT ON MY BROTHER !!!

MANY TAK °!

so now i can go and port hearts(bgi) seriously ...

_________________________



Top
#84871 - 2002-01-17 05:10 PM Re: registering dll
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
shawn,
nice to here news from that one...

even thou that means my scripts need to be upgraded...

_________________________
!

download KiXnet

Top
#84872 - 2002-01-17 08:52 PM Re: registering dll
Will Hetrick Offline
Hey THIS is FUN

Registered: 2001-10-02
Posts: 320
Loc: Harrisburg, PA USA
Hey shawn,

Its not that none of us care about the Polling/execute, but it that I don't understand what they mean.

I just know it works and works great.

Thanks for putting the time and effort to make our jobs more satisfying and interesting.

_________________________
You have at least 2 choices. Each choice changes your destiny. Choose wisely!

Top
#84873 - 2002-01-17 09:16 PM Re: registering dll
Alex.H Offline
Seasoned Scripter

Registered: 2001-04-10
Posts: 406
Loc: France
Shawn,
Will Hetrick's question is exactly that i was afraid of.
Also, as i sent the first version of the component to some friends, the fist thing they said was : sounds good, but where is the manual ? You know last part of the story, as the first thing i sent to you after was this |beep| doc file, as at this time, i was adding the object handling in collections and so the dll wasn't working. Already said you it should be done, but well, too bad we had to come to this point.

Will,
please, don't take for yourself the statement i've done : Most kixforms and kixwinvb users don't know the debate that actually exist between Shawn and myself with the event handling, as they don't get a deeper look on the other snappin. So each time we asked the question, answer wasn't about this one. After some like that, i completely gave it up.

Also, here are the differences :

Execute() method :

code:

$object.move="Eventmove"
$object.resize="Eventresize"
... all other stuff ...
do while $object.visible=1
$=Execute($object.lastevent)
loop

exit()
function Eventmove
...
endfunction

function Eventresize
...
endfunction


Polling method :

code:

... all stuff ...
while $object.getevent
if $object.resize
' do your resize stuff
endif
if $object.move
' do your move stuff
endif
loop
exit()

Shawn, correct me if i'm wrong in my example

Jpols, please, don't $=execute("$Alex.H")

[ 18 January 2002: Message edited by: Alex.H ]

_________________________
? getobject(Kixtart.org.Signature)

Top
#84874 - 2002-01-19 12:08 AM Re: registering dll
Anonymous
Unregistered


Hi Shawn

The reason you may be reciving little feedback is because we're all busy trying to get to grips with it (oh how my head hurts) and thinking of new projects to code with it.

thanks for the port to Kix 4 BTW

Top
#84875 - 2002-01-18 01:41 PM Re: registering dll
Will Hetrick Offline
Hey THIS is FUN

Registered: 2001-10-02
Posts: 320
Loc: Harrisburg, PA USA
Hey Alex,
That little tidbit will come in handy in helping me work on my Tic tac toe game I am making with Kixwinvb.
I was working on it last night, I have to board all setup and the command buttons able to click to pick which slot you want.
Then about that time My wife come and said can I use the computer, you have had it for a while now.

Question, I have the Command button on top of a Label. When I click on the command I want to make it disappear and leave the Label box with the X or O in it. How do I make the command button dissappear after a click?

_________________________
You have at least 2 choices. Each choice changes your destiny. Choose wisely!

Top
Page 1 of 2 12>


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.13 seconds in which 0.086 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org