Re: how to protect DLL
- From: "Claude Fox" <claude.fox@xxxxxxxxxxxxx>
- Date: Tue, 19 Dec 2006 06:22:30 -0500
If your dll is a vfp web application, you might want to consider limiting
the IP where it can be used to http://localhost or http://127.0.0.1 for
trial usage and then take that out for unlimited usage. Otherwise,
something like Protection Plus (www.softwarekey.com) will work with a vfp
mtdll by time limiting its usage.
Also, the lowest level of ReFox will protect the source code of a vfp mtdll.
Not sure about the latest versions of ReFox - they may even be better...
Claude Fox
http://www.activevfp.com - free, open source foxpro web development
"Samir Ibrahim" <samir.ibrahim@xxxxxxxxxxx> wrote in message
news:uJFZwB1IHHA.3916@xxxxxxxxxxxxxxxxxxxxxxx
VFP7 XPSP2
I have created a DLL that retreive information from the internet depends
on specific creteria, what i want to protect the dll or make a demo for
other user to test it and if they like it, they can buy the full version.
The only think i could think about it is to return the value of the dll is
a messagebox instead of variable EX:
cMyresult = mydll("search") , cMyresult will open a messagebox with the
value in it while in the real version, the value is stored in cMyresult.
I have seen a activex or dll when u initialize it with createobject(), a
popup menu appear telling you that you need to register ot remove this
popup. i tried to do this but i keep getting error and i dont know what is
wrong so a little help will be appreciated.
i want:
1- how and where to call the second class (ABOUT) which is a form, when
class1 is initialized, I mean when : oMyobject =
createobject("mmm.class1") is entered. i tried to
2- is there a better way of protecting DLL?
Thanks for your help in advance
DEFINE CLASS class1 AS Custom OLEPUBLIC
*omyabout = createobject(about) : if this line is exist, when i compile
the dll it give 0 error, but when i try to use it with createobject, an
unspecified error occur.
FUNCTION class1_SEARCH
RETURN cANSWER
ENDFUNC
FUNCTION class1_GET_ADDRESS
RETURN cANSWER
ENDFUNC
HIDDEN PROCEDURE INIT
ENDPROC
HIDDEN PROCEDURE ADDOBJECT
ENDPROC
HIDDEN PROCEDURE AddProperty
ENDPROC
HIDDEN PROCEDURE Destroy
ENDPROC
HIDDEN PROCEDURE NewObject
ENDPROC
HIDDEN PROCEDURE ReadExpression
ENDPROC
HIDDEN PROCEDURE ReadMethod
ENDPROC
HIDDEN PROCEDURE RemoveObject
ENDPROC
HIDDEN PROCEDURE ResetToDefault
ENDPROC
HIDDEN PROCEDURE SaveAsClass
ENDPROC
HIDDEN PROCEDURE ShowWhatsThis
ENDPROC
HIDDEN PROCEDURE WriteExpression
ENDPROC
HIDDEN PROCEDURE WriteMethod
ENDPROC
HIDDEN PROCEDURE Error
ENDPROC
ENDDEFINE
DEFINE CLASS OK AS CommandButton
Caption = "Understood"
FontName = "Bookman old style"
height = 23
left = 100
top=140
width=85
PROCEDURE CLICK
THISFORM.RELEASE
ENDPROC
ENDDEFINE
DEFINE CLASS ABOUT AS Form
ADD OBJECT lb1 as label WITH;
Caption = 'This DLL is a part of ',;
Autosize = .f.,FontName = "Bookman old style",Height =
19,LEft=0,Width=128,TOP=4
ADD OBJECT lb2 as LABEL WITH caption = "MMC Software",;
LEFT=128,TOP=5,WIDTH=96,height=16,autosize=.t.,fontbold=.t.,FontName =
"Bookman old style"
ADD OBJECT LB3 AS LABEL WITH;
autosize=.t.,CAPTION = "Only",Fontname = "Bookman old style",;
height=19,left=0,top=24,width=30
ADD object lb4 as label with autosize=.t.,CAPTION = "GET_ADDRESS",Fontname
= "Bookman old style",;
Height=16,Left=32,Top=25,width=107,Fontbold=.t.
ADD OBJECT lb15 as label WITH;
Caption = 'Function is Working ',;
Autosize = .t.,FontName = "Bookman old style",Height =
19,LEft=144,Width=120,TOP=24
ADD OBJECT cb as OK
PROCEDURE INIT
THIS.AutoCenter = .T.
THIS.BorderStyle = 2
THIS.Caption = "About DLL"
this.ClipControls= .F.
this.Closable= .F.
this.ControlBox= .F.
this.HalfHeightCaption=.t.
this.Height=167
this.TitleBar = 1
this.Width = 294
this.Show
this.modal = 1
RETURN
ENDPROC
PROCEDURE RELEASE
ENDPROC
ENDDEFINE
.
- References:
- how to protect DLL
- From: Samir Ibrahim
- how to protect DLL
- Prev by Date: Re: [Crystal Report 8.5] Viewer not showing a correct preview
- Next by Date: Re: how to protect DLL
- Previous by thread: how to protect DLL
- Next by thread: Re: how to protect DLL
- Index(es):
Relevant Pages
|